|
@@ -990,53 +990,52 @@ function saveText() {
|
|
|
history.pushState("", "Title", href);
|
|
|
}
|
|
|
|
|
|
- $("#cover").show();
|
|
|
-
|
|
|
+ shareWeixin(msg.data.message);
|
|
|
//海报页面的微信分享
|
|
|
- $.post("./user/getWxConfigParam?url=" + href, {}, function(resp) {
|
|
|
- if (resp.code == 'error') {
|
|
|
- console.log(resp.code);
|
|
|
- }else{
|
|
|
- wx.config({
|
|
|
- debug: false,
|
|
|
- appId: 'wx749c84daac654e1e',
|
|
|
- timestamp: resp.data.timestamp,
|
|
|
- nonceStr: resp.data.noncestr,
|
|
|
- signature: resp.data.sign,
|
|
|
- jsApiList: ['onMenuShareTimeline', 'onMenuShareAppMessage', 'onMenuShareQQ', 'onMenuShareWeibo', 'onMenuShareQZone', 'showOptionMenu', 'hideAllNonBaseMenuItem', 'showAllNonBaseMenuItem']
|
|
|
- });
|
|
|
- wx.ready(function(){
|
|
|
- const share = {
|
|
|
- title: "我为你精心准备的美味,快享用吧!",
|
|
|
- desc: "",
|
|
|
- imgUrl: "http://wx.ttkuaiban.com/minigame/images/share_picture.png",
|
|
|
- link: href,
|
|
|
- success: function() {
|
|
|
- $.post("./prize/luckDrawAddShare", {uid: id}, function(resp) {
|
|
|
- if (resp.code == 'error') {
|
|
|
- console.log(resp.code);
|
|
|
- }else{
|
|
|
- window.location.href = "http://wx.ttkuaiban.com/minigame/lottery.html";
|
|
|
- }
|
|
|
- });
|
|
|
- },
|
|
|
- cancel: function() {}
|
|
|
- };
|
|
|
- wx.onMenuShareAppMessage(share);
|
|
|
- wx.onMenuShareTimeline(share);
|
|
|
- wx.onMenuShareQQ(share);
|
|
|
- wx.onMenuShareQZone(share);
|
|
|
- wx.onMenuShareWeibo(share);
|
|
|
- });
|
|
|
- wx.error(function(res){
|
|
|
- console.log(res);
|
|
|
- });
|
|
|
- };
|
|
|
- });
|
|
|
+// $.post("./user/getWxConfigParam?url=" + href, {}, function(resp) {
|
|
|
+// if (resp.code == 'error') {
|
|
|
+// console.log(resp.code);
|
|
|
+// }else{
|
|
|
+// wx.config({
|
|
|
+// debug: false,
|
|
|
+// appId: 'wx749c84daac654e1e',
|
|
|
+// timestamp: resp.data.timestamp,
|
|
|
+// nonceStr: resp.data.noncestr,
|
|
|
+// signature: resp.data.sign,
|
|
|
+// jsApiList: ['onMenuShareTimeline', 'onMenuShareAppMessage', 'onMenuShareQQ', 'onMenuShareWeibo', 'onMenuShareQZone', 'showOptionMenu', 'hideAllNonBaseMenuItem', 'showAllNonBaseMenuItem']
|
|
|
+// });
|
|
|
+// wx.ready(function(){
|
|
|
+// const share = {
|
|
|
+// title: "我为你精心准备的美味,快享用吧!",
|
|
|
+// desc: "",
|
|
|
+// imgUrl: "http://wx.ttkuaiban.com/minigame/images/share_picture.png",
|
|
|
+// link: href,
|
|
|
+// success: function() {
|
|
|
+// $.post("./prize/luckDrawAddShare", {uid: id}, function(resp) {
|
|
|
+// if (resp.code == 'error') {
|
|
|
+// console.log(resp.code);
|
|
|
+// }else{
|
|
|
+// window.location.href = "http://wx.ttkuaiban.com/minigame/lottery.html";
|
|
|
+// }
|
|
|
+// });
|
|
|
+// },
|
|
|
+// cancel: function() {}
|
|
|
+// };
|
|
|
+// wx.onMenuShareAppMessage(share);
|
|
|
+// wx.onMenuShareTimeline(share);
|
|
|
+// wx.onMenuShareQQ(share);
|
|
|
+// wx.onMenuShareQZone(share);
|
|
|
+// wx.onMenuShareWeibo(share);
|
|
|
+// });
|
|
|
+// wx.error(function(res){
|
|
|
+// console.log(res);
|
|
|
+// });
|
|
|
+// };
|
|
|
+// });
|
|
|
//if(type == 1) {
|
|
|
- setTimeout(function(){
|
|
|
- window.location.href = "http://wx.ttkuaiban.com/minigame/lottery.html";
|
|
|
- }, 10000);
|
|
|
+// setTimeout(function(){
|
|
|
+// window.location.href = "http://wx.ttkuaiban.com/minigame/lottery.html";
|
|
|
+// }, 10000);
|
|
|
//}
|
|
|
}else{
|
|
|
console.log("错误"+xhr.status)
|