This commit is contained in:
@fawn-nine
2024-09-26 15:43:57 +08:00
parent 86a1f754c2
commit b2221666e1
13 changed files with 132 additions and 73 deletions

View File

@@ -113,7 +113,7 @@
<!-- end -->
<template v-if="librayList[curIndex]">
<view :class="['endBox',(userMsg.vip == 1 || userMsg.vip == 2) ? 'vipBgColor':'']"
v-if="librayList[curIndex].isBuy == 1 || userMsg.vip != 0">
v-if="librayList[curIndex].isBuy == 1 || userMsg.vip == 2 || userMsg.vip == 1">
<!-- 已经可以观看的情况 -->
<view class="box">
<view class="flexbox" v-if="userMsg.vip == 1 || userMsg.vip == 2">
@@ -181,7 +181,7 @@
</view>
<view class="shitingTag">
<u-icon
v-if="librayList[curIndex].isBuy == 0 && userMsg.vip == 0 && item.isAudition == 0"
v-if="librayList[curIndex].isBuy == 0 && (userMsg.vip == 0 || userMsg.vip == 3) && item.isAudition == 0"
name="lock" color="#258feb" size="28"></u-icon>
</view>
@@ -1293,13 +1293,7 @@
this.$forceUpdate();
this.pageTitle = this.course.title;
this.librayList = [...res.data.catalogues];
console.log('获取课程详情=》',res.data);
// for (let i = 0; i < that.librayList.length; i++) {
// var list = await that.getChapterList(that.librayList[i]);
// console.log("list at line 1222:", list);
// that.courseList[i] = [...list];
// // console.log("that.courseList at line 1238:", that.courseList);
// }
console.log('获取课程详情=》',res.data);
that.$forceUpdate();
if (this.librayList.length > 0) {
if(this.catalogueId){