Commit 22c82e86 authored by 孙高杰's avatar 孙高杰

拦截修改

parent b4266955
...@@ -177,7 +177,6 @@ export default { ...@@ -177,7 +177,6 @@ export default {
console.log("getuserInfo"); console.log("getuserInfo");
let res = await get(API.userInfo, {}); let res = await get(API.userInfo, {});
if (res.success) { if (res.success) {
this.weixinQrcode = res.data.sellerWxQrCode;
this.sellerId = res.data.sellerId; this.sellerId = res.data.sellerId;
} }
else{ else{
...@@ -317,34 +316,38 @@ export default { ...@@ -317,34 +316,38 @@ export default {
} }
}, },
async shareGame(item){ async shareGame(item){
if(!this.weixinQrcode) { let res_ = await get(API.userInfo, {});
if (res_.success) {
this.weixinQrcode = res_.data.sellerWxQrCode;
this.sellerId = res_.data.sellerId;
}
if (!this.weixinQrcode) {
this.showInterceptModal = true; this.showInterceptModal = true;
} else { return;
console.log(item); }
this.hiding = false; this.hiding = false;
this.$emit("close"); this.$emit("close");
if(this.hiding){ if(this.hiding){
localStorage.setItem("guider", 1); localStorage.setItem("guider", 1);
}
let params = {
contentId: item.id
};
let res = await get(API.getScId, params);
if (res.success) {
let id = res.data;
console.log(item.text);
let obj = JSON.parse(item.text);
if(obj.lottery == 1){
wx.miniProgram.navigateTo({url:`/pages/activity/setting/main?scid=${id}`});
} }
let params = { else{
contentId: item.id let url = `/pages/share/main?scid=${id}`;
}; if(step){
let res = await get(API.getScId, params); url = url + "&shareGuide=true";
if (res.success) {
let id = res.data;
console.log(item.text);
let obj = JSON.parse(item.text);
if(obj.lottery == 1){
wx.miniProgram.navigateTo({url:`/pages/activity/setting/main?scid=${id}`});
}
else{
let url = `/pages/share/main?scid=${id}`;
if(step){
url = url + "&shareGuide=true";
}
wx.miniProgram.navigateTo({url: url});
} }
} wx.miniProgram.navigateTo({url: url});
}
} }
} }
}, },
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment