作者 jinglong
1 个管道 的构建 通过 耗费 0 秒

调式分享

1 <div class="share"> 1 <div class="share">
2 <ul> 2 <ul>
3 <li class="share1"> 3 <li class="share1">
4 - <div class="share1_Img weixin" onclick="wx_share()"> 4 + <div class="share1_Img weixin" id="wx_share">
5 <img src="__TMPL__/public/assets/images/bicon_04.png" alt="" /> 5 <img src="__TMPL__/public/assets/images/bicon_04.png" alt="" />
6 </div> 6 </div>
7 <p class="share1_Txt">{$share.post_share_wx}</p> 7 <p class="share1_Txt">{$share.post_share_wx}</p>
@@ -38,7 +38,7 @@ @@ -38,7 +38,7 @@
38 <script src="http://res2.wx.qq.com/open/js/jweixin-1.4.0.js"></script> 38 <script src="http://res2.wx.qq.com/open/js/jweixin-1.4.0.js"></script>
39 <script> 39 <script>
40 $(function () { 40 $(function () {
41 - function wx_share(){ 41 + $('#wx_share').click(function(){
42 var appid = ''; 42 var appid = '';
43 var timestamp = ''; 43 var timestamp = '';
44 var nonceStr = ''; 44 var nonceStr = '';
@@ -84,8 +84,7 @@ @@ -84,8 +84,7 @@
84 } 84 }
85 }) 85 })
86 }); 86 });
87 - }  
88 - 87 + });
89 }); 88 });
90 89
91 </script> 90 </script>