一些修改
This commit is contained in:
@@ -440,16 +440,22 @@
|
||||
},
|
||||
//课程详情
|
||||
async gotoDetail(v, index) {
|
||||
if (
|
||||
this.cateList[this.currentCateIndex].isBuy == 1 ||
|
||||
v.isAudition == 1 || this.cateList[this.currentCateIndex].type==0 ||
|
||||
this.userVip!=null
|
||||
) {
|
||||
if(this.userVip){
|
||||
uni.navigateTo({
|
||||
url: `/pages/curriculum/order/detail?navTitle=${this.options.navTitle}&title=${v.title}&id=${v.id}&conditions=${v.conditions}&detailOid=${v.detailOid}&curriculumImgUrl=${this.curriculumData.image}`,
|
||||
});
|
||||
} else {
|
||||
this.$commonJS.showToast("请先购买课程");
|
||||
}else{
|
||||
if(v.isAudition == 1||this.cateList[this.currentCateIndex].isBuy == 1){
|
||||
uni.navigateTo({
|
||||
url: `/pages/curriculum/order/detail?navTitle=${this.options.navTitle}&title=${v.title}&id=${v.id}&conditions=${v.conditions}&detailOid=${v.detailOid}&curriculumImgUrl=${this.curriculumData.image}`,
|
||||
});
|
||||
}else{
|
||||
if(this.cateList[this.currentCateIndex].type != 0){
|
||||
this.$commonJS.showToast("请先购买课程");
|
||||
}else{
|
||||
this.$commonJS.showToast("请先领取课程");
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
//获取章节
|
||||
@@ -1320,6 +1326,7 @@
|
||||
}
|
||||
.hidden2{
|
||||
line-height: 20px;
|
||||
max-height: 60px;
|
||||
max-height: 40px;
|
||||
height: auto;
|
||||
}
|
||||
</style>
|
||||
Reference in New Issue
Block a user