Commit 281b5cfd authored by zhangjinzhou's avatar zhangjinzhou

代码暂存

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