Skip to content

Commit

Permalink
微信
Browse files Browse the repository at this point in the history
  • Loading branch information
PPPanda committed Aug 22, 2014
1 parent 2fd8fc4 commit 923efc7
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 11 deletions.
2 changes: 1 addition & 1 deletion weixin/fastclick.html
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@
<script type="text/javascript">
// 提交数据
Mdata.win(function(total){
alert("游戏结束,您最终获得了" + total + "分");
// alert("游戏结束,您最终获得了" + total + "分");
// 提交数据
});
</script>
Expand Down
23 changes: 13 additions & 10 deletions weixin/script/fastclick.js
Original file line number Diff line number Diff line change
Expand Up @@ -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(){
Expand Down Expand Up @@ -41,27 +41,30 @@
"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) {
WeixinJSBridge.invoke('shareTimeline', {
"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 = '<ul>' +
'{# for ( var i = 0; i <' + 4 +'; i++) { #}' +
'<li></li>' +
Expand Down Expand Up @@ -207,7 +210,7 @@
//微信分享操作
//

new pageShare(shareData);
// new pageShare(shareData);

// }());

0 comments on commit 923efc7

Please sign in to comment.