增加签到,修改0元支付问题

This commit is contained in:
GaoHao
2024-12-19 10:00:04 +08:00
parent c401d2695d
commit 8e7d038dba
9 changed files with 151 additions and 35 deletions

View File

@@ -1457,11 +1457,15 @@
this.$forceUpdate()
},
//选择播放
selectPlay(item) {
selectPlay(item,type) {//price //videoUrl
// 根据选择的courseDetailsId拿到meunList列表中的相同数据的下标
const index = this.meunList.findIndex(menu => menu.courseDetailsId === item.courseDetailsId);
this.videoList = [this.meunList[index]]
this.current = 0
if ( this.videoList[this.current].videoUrl == '' && this.videoList[this.current].price <= 0 && !type ) {
this.getDataList(this.courseId, this.courseDetailsId, true, 'select')
return;
}
//重新计算一下当前观看的是哪个视频
this.comNumVideo()
this.setWxUrl()
@@ -1493,7 +1497,7 @@
},
// 资源详情
getDataList(id, courseDetailsId, type) {
getDataList(id, courseDetailsId, type, t) {
console.log('getDataList');
let data = {
id,
@@ -1660,7 +1664,9 @@
})
if ( t == 'select') {
this.selectPlay(this.videoList[this.current],true)
}
}
} else {
uni.showToast({