正在显示
3 个修改的文件
包含
22 行增加
和
6 行删除
@@ -138,6 +138,22 @@ $(function(){ | @@ -138,6 +138,22 @@ $(function(){ | ||
138 | $("#searchForm").submit();//处理事件 | 138 | $("#searchForm").submit();//处理事件 |
139 | } | 139 | } |
140 | }); | 140 | }); |
141 | + | ||
142 | + var share_url = encodeURIComponent(location.href); | ||
143 | + var share_title = encodeURIComponent(document.title); | ||
144 | + //分享到微博 | ||
145 | + $('.weibo').click(function(){ | ||
146 | + var param = { | ||
147 | + url: share_url, | ||
148 | + title: share_title, | ||
149 | + rnd: new Date().valueOf() | ||
150 | + }; | ||
151 | + var temp = []; | ||
152 | + for (var p in param) { | ||
153 | + temp.push(p + '=' + encodeURIComponent(param[p] || '')) | ||
154 | + } | ||
155 | + window.open('http://v.t.sina.com.cn/share/share.php?' + temp.join('&')); | ||
156 | + }); | ||
141 | }); | 157 | }); |
142 | 158 | ||
143 | //点赞收藏 | 159 | //点赞收藏 |
@@ -17,12 +17,12 @@ | @@ -17,12 +17,12 @@ | ||
17 | </notempty> | 17 | </notempty> |
18 | </div> | 18 | </div> |
19 | <!-- wx分享 --> | 19 | <!-- wx分享 --> |
20 | - <div class="wx_go"> | 20 | + <div class="wx_go weixin"> |
21 | <img src="__TMPL__/public/assets/starImg/bicon_04.png" alt=""> | 21 | <img src="__TMPL__/public/assets/starImg/bicon_04.png" alt=""> |
22 | <p>168</p> | 22 | <p>168</p> |
23 | </div> | 23 | </div> |
24 | <!-- wb分享 --> | 24 | <!-- wb分享 --> |
25 | - <div class="wb_go"> | 25 | + <div class="wb_go weibo"> |
26 | <img src="__TMPL__/public/assets/starImg/bicon_05.png" alt=""> | 26 | <img src="__TMPL__/public/assets/starImg/bicon_05.png" alt=""> |
27 | <p>168</p> | 27 | <p>168</p> |
28 | </div> | 28 | </div> |
@@ -190,10 +190,10 @@ $(function() { | @@ -190,10 +190,10 @@ $(function() { | ||
190 | }); | 190 | }); |
191 | 191 | ||
192 | //分享到微信 | 192 | //分享到微信 |
193 | - $('.weixin').click(function(){ | ||
194 | - var target_url = "http://qr.liantu.com/api.php?text="+share_url; | ||
195 | - window.open(target_url, 'weixin', 'height=320, width=320'); | ||
196 | - }); | 193 | + // $('.weixin').click(function(){ |
194 | + // var target_url = "http://qr.liantu.com/api.php?text="+share_url; | ||
195 | + // window.open(target_url, 'weixin', 'height=320, width=320'); | ||
196 | + // }); | ||
197 | }); | 197 | }); |
198 | 198 | ||
199 | //弹框 | 199 | //弹框 |
-
请 注册 或 登录 后发表评论