|
@@ -899,6 +899,17 @@
|
|
let {
|
|
let {
|
|
data
|
|
data
|
|
} = res.data;
|
|
} = res.data;
|
|
|
|
+ if(data && data.endTime > parseInt(new Date().getTime() / 1000)){
|
|
|
|
+ uni.showModal({
|
|
|
|
+ showCancel: false,
|
|
|
|
+ title: "提示",
|
|
|
|
+ content: "当前无法学习,"+ this.$method.timestampToTime(data.endTime,false) +"过后可继续学习",
|
|
|
|
+ success: (resultst) => {
|
|
|
|
+ uni.navigateBack();
|
|
|
|
+ },
|
|
|
|
+ });
|
|
|
|
+ return
|
|
|
|
+ }
|
|
if (!data.sectionId) {
|
|
if (!data.sectionId) {
|
|
data = this.menuAllList[0];
|
|
data = this.menuAllList[0];
|
|
}
|
|
}
|
|
@@ -1068,7 +1079,7 @@
|
|
return Promise.resolve();
|
|
return Promise.resolve();
|
|
},
|
|
},
|
|
async isCanLearn() {
|
|
async isCanLearn() {
|
|
- this.option.isQ !== "" && (await this.qCheckIsCanLearn());
|
|
|
|
|
|
+ await this.qCheckIsCanLearn();
|
|
await this.getGradeInfo();
|
|
await this.getGradeInfo();
|
|
await this.getGoodsDetail();
|
|
await this.getGoodsDetail();
|
|
},
|
|
},
|
|
@@ -1636,7 +1647,7 @@
|
|
this.goodsData = data.data;
|
|
this.goodsData = data.data;
|
|
if (data.data.firstChoiceStatus) {
|
|
if (data.data.firstChoiceStatus) {
|
|
uni.redirectTo({
|
|
uni.redirectTo({
|
|
- url: `/pages3/polyv/preference?courseId=${this.courseId}&goodsId=${data.data.goodsId}&orderGoodsId=${this.orderGoodsId}&gradeId=${data.data.gradeId}&periodWaitTime=${this.option.periodWaitTime ? 1 : ""}&isQ=${this.option.isQ}&minClassHour=${data.data.minClassHour || 0}`,
|
|
|
|
|
|
+ url: `/pages3/polyv/preference?courseId=${this.courseId}&goodsId=${data.data.goodsId}&orderGoodsId=${this.orderGoodsId}&gradeId=${data.data.gradeId}&minClassHour=${data.data.minClassHour || 0}`,
|
|
});
|
|
});
|
|
return
|
|
return
|
|
}
|
|
}
|
|
@@ -1647,7 +1658,7 @@
|
|
await this.userConfirmInfoDetail();
|
|
await this.userConfirmInfoDetail();
|
|
}
|
|
}
|
|
if (this.erJianErZao) {
|
|
if (this.erJianErZao) {
|
|
- this.option.periodWaitTime && (await this.checkFinishRequiredCourse());
|
|
|
|
|
|
+ await this.checkFinishRequiredCourse()
|
|
}
|
|
}
|
|
this.goodsData.buyNote && this.baseHandoutTipList();
|
|
this.goodsData.buyNote && this.baseHandoutTipList();
|
|
!this.gradeId && (this.gradeId = this.goodsData.gradeId);
|
|
!this.gradeId && (this.gradeId = this.goodsData.gradeId);
|