var shareData = {
sTitle: "Let's go! ",
sDesc: "我的牙都酸倒啦",
sContent: "你还等什么!!!",
sImgurl: "",
sLink: "",
sCallback: "http://mp.weixin.qq.com/s?__biz=MjM5NDE0MTEyNg==&mid=201488063&idx=1&sn=1ad91eb4dc1627fc0c8027e6472d646d#rd"
};
document.addEventListener("WeixinJSBridgeReady",
function(a) {
var b = shareData.sDesc.replace(/(\s)+/g, "");
if (userScore > 0) {
b += ",求超越!"
}
WeixinJSBridge.invoke("sendAppMessage", {
img_url: shareData.sImgurl,
link: shareData.sLink,
desc: b,
title: shareData.sTitle
},
function(c) {
document.location.href = shareData.sCallback
})
function(a) {
var b = shareData.sContent.replace(/(\s)+/g, "");
if (userScore > 0) {
b = shareData.sDesc.replace(/(\s)+/g, "");
b += ",求超越!"
}
WeixinJSBridge.invoke("shareTimeline", {
img_url: shareData.sImgurl,
img_width: "100",
img_height: "100",
link: shareData.sLink,
desc: b,
content: b,
title: b
},
function(c) {
document.location.href = shareData.sCallback
})
function(a) {
WeixinJSBridge.invoke("shareWeibo", {
content: shareData.sDesc,
url: shareData.sLink
},
function(b) {
document.location.href = shareData.sCallback
})
})
},
sTitle: "Let's go! ",
sDesc: "我的牙都酸倒啦",
sContent: "你还等什么!!!",
sImgurl: "",
sLink: "",
sCallback: "http://mp.weixin.qq.com/s?__biz=MjM5NDE0MTEyNg==&mid=201488063&idx=1&sn=1ad91eb4dc1627fc0c8027e6472d646d#rd"
};
document.addEventListener("WeixinJSBridgeReady",
function() {
//分享给朋友
WeixinJSBridge.on("menu:share:appmessage",function(a) {
var b = shareData.sDesc.replace(/(\s)+/g, "");
if (userScore > 0) {
b += ",求超越!"
}
WeixinJSBridge.invoke("sendAppMessage", {
img_url: shareData.sImgurl,
link: shareData.sLink,
desc: b,
title: shareData.sTitle
},
function(c) {
document.location.href = shareData.sCallback
})
});
//分享到朋友圈
WeixinJSBridge.on("menu:share:timeline",function(a) {
var b = shareData.sContent.replace(/(\s)+/g, "");
if (userScore > 0) {
b = shareData.sDesc.replace(/(\s)+/g, "");
b += ",求超越!"
}
WeixinJSBridge.invoke("shareTimeline", {
img_url: shareData.sImgurl,
img_width: "100",
img_height: "100",
link: shareData.sLink,
desc: b,
content: b,
title: b
},
function(c) {
document.location.href = shareData.sCallback
})
});
//分享到微博
WeixinJSBridge.on("menu:share:weibo",function(a) {
WeixinJSBridge.invoke("shareWeibo", {
content: shareData.sDesc,
url: shareData.sLink
},
function(b) {
document.location.href = shareData.sCallback
})
})
},
false);
欢迎大家收看我的在线Java全套免费教学超清视频:
http://v.youku.com/v_show/id_XODQ1NjU0NDc2.html 这是其中的一个视频连接,大家可以拖动到优酷视频下方,订阅我的账号,因为以后我会有更多视频免费提供
百度搜索:输入Fcs_D调的码农 ,或者输入"胡博君"就能看到我的很多视频
或者加我的微信号:fcsboy 我可以及时通过微信通知你们
QQ学习群:237053693