...
|
...
|
@@ -11,6 +11,7 @@ |
|
|
<h1>分享主题</h1>
|
|
|
</body>
|
|
|
</html>
|
|
|
<script src="__TMPL__/public/assets/js/jquery-2.1.0.js"></script>
|
|
|
<script src="http://res2.wx.qq.com/open/js/jweixin-1.4.0.js"></script>
|
|
|
<script>
|
|
|
$(function () {
|
...
|
...
|
@@ -22,7 +23,7 @@ |
|
|
signature: '{$data.signature}',
|
|
|
jsApiList: [
|
|
|
'updateAppMessageShareData',
|
|
|
// 'updateTimelineShareData',
|
|
|
'updateTimelineShareData',
|
|
|
]
|
|
|
});
|
|
|
wx.ready(function () { //需在用户可能点击分享按钮前就先调用
|
...
|
...
|
@@ -33,7 +34,7 @@ |
|
|
imgUrl: '', // 分享图标
|
|
|
success: function (e) {
|
|
|
// 设置成功
|
|
|
alert('分享朋友');
|
|
|
alert(e);
|
|
|
}
|
|
|
})
|
|
|
});
|
...
|
...
|
|