Commit 281b5cfd authored by zhangjinzhou's avatar zhangjinzhou

代码暂存

parent 317e3bf9
...@@ -54,7 +54,7 @@ Page({ ...@@ -54,7 +54,7 @@ Page({
nearchaprize: "",//再召唤xx好友得奖励x nearchaprize: "",//再召唤xx好友得奖励x
isVip: false, isVip: false,
vipLink: "", vipLink: "",
clickVip:false, clickVip:"",
giftype: 3,//1-新手礼盒,2-惊喜礼盒,3-锦鲤礼盒,0-都不显示 giftype: 3,//1-新手礼盒,2-惊喜礼盒,3-锦鲤礼盒,0-都不显示
ptimgbig: "",//选中的鞋子big ptimgbig: "",//选中的鞋子big
...@@ -270,12 +270,14 @@ Page({ ...@@ -270,12 +270,14 @@ Page({
console.log("onshow=========>"); console.log("onshow=========>");
let clickVip = this.data.clickVip; let clickVip = this.data.clickVip;
if(clickVip){ if(clickVip=="xinshou"){
this.setData({
clickVip:false
});
this.checkBackNgift(); this.checkBackNgift();
}else if(clickVip=="zhuli"){
this.checkIsVip();
} }
this.setData({
clickVip:""
});
// 页面显示 // 页面显示
}, },
onHide() { onHide() {
...@@ -681,12 +683,15 @@ Page({ ...@@ -681,12 +683,15 @@ Page({
if (this.data.isVip) { if (this.data.isVip) {
} else { } else {
this.openGift(); // this.openGift();
// commonToast('1秒成为会员,即可参与游戏哦', 2000); commonToast('3秒成为会员,即可参与游戏哦', 2000);
// let vipLink = this.data.vipLink; let vipLink = this.data.vipLink;
// setTimeout(() => { setTimeout(() => {
// navigateToOutside(vipLink) this.setData({
// }, 1000) clickVip:"xinshou"
});
navigateToOutside(vipLink)
}, 1000)
return; return;
} }
this.changeBtnReady(false); this.changeBtnReady(false);
...@@ -738,11 +743,11 @@ Page({ ...@@ -738,11 +743,11 @@ Page({
this.closeSp(); this.closeSp();
this.doHelp(); this.doHelp();
} else { } else {
commonToast('1秒成为会员,即可为TA助力哦', 2000); commonToast('3秒成为会员,即可为TA助力哦', 2000);
let vipLink = this.data.vipLink; let vipLink = this.data.vipLink;
setTimeout(() => { setTimeout(() => {
this.setData({ this.setData({
clickVip:true clickVip:"zhuli"
}); });
navigateToOutside(vipLink); navigateToOutside(vipLink);
}, 1000) }, 1000)
......
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