diff --git a/weixin/fastclick.html b/weixin/fastclick.html index 37fc6b5..4a1788c 100644 --- a/weixin/fastclick.html +++ b/weixin/fastclick.html @@ -36,7 +36,7 @@ diff --git a/weixin/script/fastclick.js b/weixin/script/fastclick.js index 1f0e3a4..c178083 100644 --- a/weixin/script/fastclick.js +++ b/weixin/script/fastclick.js @@ -2,7 +2,7 @@ * @Author: 12050231 * @Date: 2014-08-20 09:35:18 * @Last Modified by : 12050231 -* @Last Modified time: 2014-08-22 09:37:23 +* @Last Modified time: 2014-08-22 09:43:42 */ // (function(){ @@ -41,10 +41,12 @@ "img_url": window.shareData.imgUrl, "img_width": "200", "img_height": "200", - "link": window.shareData.timeLineLink, + "link": window.shareData.timeLineLink || window.location.href, "desc": window.shareData.descContent, "title": window.shareData.shareTitle - }, onShareComplete); + }, function(res) { + //_report('send_msg', res.err_msg); + }); }); WeixinJSBridge.on('menu:share:timeline', function(argv) { @@ -52,16 +54,17 @@ "img_url": window.shareData.imgUrl, "img_width": "200", "img_height": "200", - "link": window.shareData.timeLineLink, + "link": window.shareData.timeLineLink || window.location.href, "desc": window.shareData.descContent, "title": window.shareData.shareTitle - }, onShareComplete); + }, function(res) { + //_report('send_msg', res.err_msg); + }); }); + document.addEventListener('WeixinJSBridgeReady', function onBridgeReady() { + WeixinJSBridge.call('hideToolbar'); + }); }, false); - - function onShareComplete(res){ - - } var tmpl = '