超v课程 添加购买

This commit is contained in:
@fawn-nine
2024-06-25 11:34:27 +08:00
parent 6dd47a5638
commit 0e28140768
6 changed files with 432 additions and 24 deletions

View File

@@ -39,14 +39,15 @@
<view class="endBox" v-if="librayList[curIndex].isBuy == 1 && userMsg.vip == '0'">
<view class="" >
<view class="flexbox" v-if="librayList[curIndex].startTime == null">
<text >当前目录还未开始学习</text><uni-tag type="warning" text="去学习"></uni-tag>
<text >当前目录还未开始学习</text>
<!-- <uni-tag type="warning" text="去学习"></uni-tag> -->
</view>
<view class="flexbox" v-else>
<text >课程观看有效期截止到2025-06-14 00:00 </text><uni-tag type="primary" text="继续学习"></uni-tag>
<text >课程观看有效期截止到{{librayList[curIndex].endTime}} </text><uni-tag type="primary" text="继续学习"></uni-tag>
</view>
</view>
</view>
<view class="item" v-for="(item, index) in courseList" :key="index" @click="chooseChapter(item, index)">
<view class="item" v-for="(item, index) in courseList" :key="index" @click="gotoDetail(item, index)">
<text>{{item.title}}</text>
<uni-tag v-if="librayList[curIndex].isBuy == 1 && item.isLearned == 0" style="" :inverted="true" text="未学"
size="mini" type="primary" />
@@ -193,6 +194,9 @@
this.getData(e.id)
// this.getSayList()
},
onPullDownRefresh() {
uni.stopPullDownRefresh()
},
onPageScroll(e) {
this.scrollTop = e.scrollTop;
if (this.scrollTop > 100) {
@@ -235,7 +239,21 @@
});
// }
},
// 评论
gotoDetail(v, video, index) {
console.log("v at line 668:", v);
// if (
// this.cateList[this.currentCateIndex].isBuy == 1 ||
// v.isAudition == 1 ||
// this.vip.type != "0"
// ) {
uni.navigateTo({
// url: '../bookShop/commodityDetail?id=' + item.id
url: `/pages/course/chapterDetail?navTitle=${this.pageTitle}&title=${v.title}&id=${v.id}&conditions=${v.conditions}&videoId=${video.id}`,
});
// } else {
// this.$commonJS.showToast("请先购买课程");
// }
},
// 加载更多子评论
showMoreChildren(i,val){
console.log('更多评论');