基本信息
源码名称:开心消消乐微信游戏源码
源码大小:2.05M
文件格式:.rar
开发语言:CSS
更新时间:2018-12-20
   友情提示:(无需注册或充值,赞助后即可获取资源下载链接)

     嘿,亲!知识可是无价之宝呢,但咱这精心整理的资料也耗费了不少心血呀。小小地破费一下,绝对物超所值哦!如有下载和支付问题,请联系我们QQ(微信同号):813200300

本次赞助数额为: 2 元 
   源码介绍

休闲游戏,开心消消乐的前端代码,



<script>
var mebtnopenurl = "http://sc.chinaz.com";
var tit = "";
var DFW = {
appId: "",
TLImg: "kaixinlian.jpg",
url: "http://sc.chinaz.com/",
title: "开心消消乐-多多游戏",
desc: "我消,我消,我消...!"
};
var onBridgeReady = function () {
WeixinJSBridge.on('menu:share:appmessage', function (argv) {
WeixinJSBridge.invoke('sendAppMessage', {
"appid": DFW.appId,
"img_url": DFW.TLImg,
"img_width": "120",
"img_height": "120",
"link": DFW.url,
"title": DFW.title tit,
"desc": DFW.desc
}
);
});
WeixinJSBridge.on('menu:share:timeline', function (argv) {
WeixinJSBridge.invoke('shareTimeline', {
"appid": DFW.appId,
"img_url": DFW.TLImg,
"img_width": "120",
"img_height": "120",
"link": DFW.url,
"title": DFW.title tit,
"desc": DFW.desc
}
);
});
};
if (document.addEventListener) {
document.addEventListener('WeixinJSBridgeReady', onBridgeReady, false);
} else if (document.attachEvent) {
document.attachEvent('WeixinJSBridgeReady', onBridgeReady);
document.attachEvent('onWeixinJSBridgeReady', onBridgeReady);
}
function do_share(score) {
document.title = "我获得了" score "分,一起来消星星吧!";
document.getElementById("share").style.display = "";
window.DFW.title = document.title;
}
function dp_submitScore(level,score) {
//alert("你获得" score "分");
if (score > 5000) {
if (confirm("你获得了" score " 要不要通知下小伙伴们呢?")) {
do_share(score);
}
}
}
</script>