|
|
@@ -148,6 +148,7 @@ Page({
|
|
|
this.popup0 = this.selectComponent("#popup0");
|
|
|
this.popup3 = this.selectComponent("#popup3");
|
|
|
this.popup4 = this.selectComponent("#popup4");
|
|
|
+ this.popup5 = this.selectComponent("#popup5");
|
|
|
},
|
|
|
addRead() {
|
|
|
app._post_form("read/num", "", {
|
|
|
@@ -270,6 +271,14 @@ Page({
|
|
|
return;
|
|
|
}
|
|
|
if (util.UserLoginStatus()) {
|
|
|
+ this.popup3.showPopup();
|
|
|
+ this.setData({
|
|
|
+ maskShow: true,
|
|
|
+ isDjs: true,
|
|
|
+ timer: setInterval(that.countDown, 1000),
|
|
|
+ isShowPop: true
|
|
|
+ })
|
|
|
+ return
|
|
|
if (
|
|
|
(this.data.detail.isNeedVip && this.data.member.memberState > 0) ||
|
|
|
!this.data.detail.isNeedVip
|
|
|
@@ -296,15 +305,15 @@ Page({
|
|
|
});
|
|
|
return;
|
|
|
}
|
|
|
- wx.showToast({
|
|
|
- title: "您还不是会员,报名请联系平台客服处理",
|
|
|
- icon: "none",
|
|
|
- duration: 2000,
|
|
|
- });
|
|
|
- // this.popup.showPopup();
|
|
|
- // this.setData({
|
|
|
- // maskShow: true,
|
|
|
+ // wx.showToast({
|
|
|
+ // title: "您还不是会员,报名请联系平台客服处理",
|
|
|
+ // icon: "none",
|
|
|
+ // duration: 2000,
|
|
|
// });
|
|
|
+ that.popup.showPopup();
|
|
|
+ that.setData({
|
|
|
+ maskShow: true,
|
|
|
+ });
|
|
|
}
|
|
|
}
|
|
|
},
|
|
|
@@ -363,7 +372,8 @@ Page({
|
|
|
isDjs: false,
|
|
|
maskShow: false,
|
|
|
});
|
|
|
- this.signUp();
|
|
|
+ // this.signUp();
|
|
|
+ this.popup4.showPopup();
|
|
|
}
|
|
|
// if (!this.data.isDjs) {}
|
|
|
},
|
|
|
@@ -385,6 +395,13 @@ Page({
|
|
|
},
|
|
|
});
|
|
|
},
|
|
|
+ usePoints() {
|
|
|
+ this.setData({
|
|
|
+ isShowPop: false
|
|
|
+ })
|
|
|
+ this.popup.hidePopup();
|
|
|
+ this.signUp();
|
|
|
+ },
|
|
|
signUp() {
|
|
|
let that = this;
|
|
|
wx.showLoading({
|
|
|
@@ -432,6 +449,8 @@ Page({
|
|
|
setTimeout(() => {
|
|
|
that.loadData()
|
|
|
}, 500);
|
|
|
+ } else if (res.code == 500 && res.msg == "积分不足") {
|
|
|
+ that.popup5.showPopup();
|
|
|
} else if (res.msg == "请完善学籍认证后进行报名操作") {
|
|
|
wx.hideToast();
|
|
|
that.popup2.showPopup();
|
|
|
@@ -482,20 +501,19 @@ Page({
|
|
|
let that = this;
|
|
|
if (e.currentTarget.dataset.name == "popup0") {} else if (e.currentTarget.dataset.name == "popup4") {
|
|
|
if (that.data.detail.isNeedVip && that.data.member.memberState > 0) {
|
|
|
- that.popup3.showPopup();
|
|
|
- that.setData({
|
|
|
- maskShow: true,
|
|
|
- isDjs: true,
|
|
|
- timer: setInterval(that.countDown, 1000),
|
|
|
- });
|
|
|
+ // that.popup3.showPopup();
|
|
|
+ // that.setData({
|
|
|
+ // maskShow: true,
|
|
|
+ // isDjs: true,
|
|
|
+ // timer: setInterval(that.countDown, 1000),
|
|
|
+ // });
|
|
|
+ this.signUp();
|
|
|
console.log("会员");
|
|
|
} else {
|
|
|
// that.popup3.hidePopup();
|
|
|
- // that.setData({
|
|
|
- // isDjs: false,
|
|
|
- // maskShow: false,
|
|
|
- // time: 5
|
|
|
- // })
|
|
|
+ that.setData({
|
|
|
+ isShowPop: false
|
|
|
+ })
|
|
|
that.signUp();
|
|
|
console.log("非会员");
|
|
|
}
|
|
|
@@ -503,13 +521,16 @@ Page({
|
|
|
wx.navigateTo({
|
|
|
url: "/pages/my/myStudy/myStudy",
|
|
|
});
|
|
|
+ } else if (e.currentTarget.dataset.name == "popup5") {
|
|
|
+ wx.navigateTo({
|
|
|
+ url: "/pages/checkin/index",
|
|
|
+ });
|
|
|
} else {
|
|
|
wx.navigateTo({
|
|
|
url: e.currentTarget.dataset.name == "popup" ?
|
|
|
"/pages/myMember/myMember" : "/pages/my/myData/myData",
|
|
|
});
|
|
|
}
|
|
|
-
|
|
|
this.setData({
|
|
|
maskShow: false,
|
|
|
});
|