|
|
<div class="share">
|
|
|
<ul>
|
|
|
<li class="share1">
|
|
|
<div class="share1_Img weixin">
|
|
|
<div class="share1_Img weixin" onclick="wx_share()">
|
|
|
<img src="__TMPL__/public/assets/images/bicon_04.png" alt="" />
|
|
|
</div>
|
|
|
<p class="share1_Txt">{$share.post_share_wx}</p>
|
...
|
...
|
@@ -38,6 +38,7 @@ |
|
|
<script src="http://res2.wx.qq.com/open/js/jweixin-1.4.0.js"></script>
|
|
|
<script>
|
|
|
$(function () {
|
|
|
function wx_share(){
|
|
|
var appid = '';
|
|
|
var timestamp = '';
|
|
|
var nonceStr = '';
|
...
|
...
|
@@ -69,8 +70,7 @@ |
|
|
signature: signature,
|
|
|
jsApiList: [
|
|
|
'checkJsApi',
|
|
|
'onMenuShareTimeline',
|
|
|
'onMenuShareAppMessage'
|
|
|
'updateAppMessageShareData',
|
|
|
]
|
|
|
});
|
|
|
wx.ready(function () { //需在用户可能点击分享按钮前就先调用
|
...
|
...
|
@@ -84,6 +84,8 @@ |
|
|
}
|
|
|
})
|
|
|
});
|
|
|
}
|
|
|
|
|
|
});
|
|
|
|
|
|
</script> |
...
|
...
|
|