|
@@ -174,13 +174,8 @@
|
|
if (window.wechaturl !== undefined) {
|
|
if (window.wechaturl !== undefined) {
|
|
wechaturl = window.wechaturl;
|
|
wechaturl = window.wechaturl;
|
|
}
|
|
}
|
|
- alert('shareUrl='+shareUrl);
|
|
|
|
-// var url = window.location.href.split('#')[0];
|
|
|
|
-// var plainUrl = url;
|
|
|
|
-// var href="https://wx.ttkuaiban.com/minigame/index.html";
|
|
|
|
- url = escape(originUrl);
|
|
|
|
-// alert(url)
|
|
|
|
- $.post("./user/getWxConfigParam?url="+wechaturl, {}, function(resp) {
|
|
|
|
|
|
+ var url = escape(wechaturl);
|
|
|
|
+ $.post("./user/getWxConfigParam?url="+url, {}, function(resp) {
|
|
if (resp.code == 'error') {
|
|
if (resp.code == 'error') {
|
|
console.log(resp.code);
|
|
console.log(resp.code);
|
|
}else{
|
|
}else{
|
|
@@ -200,11 +195,11 @@
|
|
imgUrl: "https://wx.ttkuaiban.com/minigame/images/share_picture.png",
|
|
imgUrl: "https://wx.ttkuaiban.com/minigame/images/share_picture.png",
|
|
link: shareUrl,
|
|
link: shareUrl,
|
|
success: function() {
|
|
success: function() {
|
|
- alert("分享成功")
|
|
|
|
|
|
+// alert("分享成功")
|
|
window.location.href = "https://wx.ttkuaiban.com/minigame/lottery.html";
|
|
window.location.href = "https://wx.ttkuaiban.com/minigame/lottery.html";
|
|
},
|
|
},
|
|
cancel: function() {
|
|
cancel: function() {
|
|
- alert("分享失败")
|
|
|
|
|
|
+// alert("分享失败")
|
|
}
|
|
}
|
|
};
|
|
};
|
|
wx.onMenuShareAppMessage(share);
|
|
wx.onMenuShareAppMessage(share);
|