|
|
@@ -30,15 +30,15 @@
|
|
|
<view class="xx-item-list">
|
|
|
<view class="xx-item-title">— 以下为当前等级课程目录 —</view>
|
|
|
|
|
|
- <view v-for="(item, index) in jieList" :key="item.jieId">
|
|
|
+ <view v-for="(item, index) in danyuanList" :key="item.jieId">
|
|
|
<!-- 节列表 -->
|
|
|
<ezyActiveVue class="ezy-list-item-active xx-item-box" :class="item.lock?'xx-disabled-item-box':''" @aclick="handlePlay(item,'play')">
|
|
|
<view class="xx-item-status"
|
|
|
:class="item.wanchengFlag == 1 ? 'completed-status' : 'uncompleted-status'"></view>
|
|
|
<img :src="item.cover" />
|
|
|
<view class="xx-text-box">
|
|
|
- <view>{{ item.jieName }}</view>
|
|
|
- <view>{{ item.jieIntro }}</view>
|
|
|
+ <view>{{ item.danyuanName }}</view>
|
|
|
+ <view>{{ item.danyuanIntro }}</view>
|
|
|
</view>
|
|
|
<view v-if="item.lock" class="xx-item-lock-btn"></view>
|
|
|
<view v-else class="xx-item-btn"></view>
|
|
|
@@ -94,7 +94,7 @@
|
|
|
return {
|
|
|
canExitApp: false,
|
|
|
|
|
|
- jieList: [],
|
|
|
+ danyuanList: [],
|
|
|
neirongInfo: {},
|
|
|
banbenId: '',
|
|
|
jieId: '',
|
|
|
@@ -136,7 +136,7 @@
|
|
|
})
|
|
|
},
|
|
|
initData(banbenId) {
|
|
|
- console.log('阿斯顿发送到发送到饭撒的');
|
|
|
+ console.log('33333');
|
|
|
const cacheData = cacheManager.get('contentInfo');
|
|
|
if (cacheData) {
|
|
|
console.log('使用缓存数据');
|
|
|
@@ -176,11 +176,11 @@
|
|
|
...cacheData
|
|
|
};
|
|
|
this.curProcess = cacheData.curProcess;
|
|
|
- this.jieList = [...(cacheData.jieList || [])];
|
|
|
+ this.danyuanList = [...(cacheData.danyuanList || [])];
|
|
|
this.banbenId = cacheData.banbenId
|
|
|
|
|
|
|
|
|
- if (this.jieList.length == 0) {
|
|
|
+ if (this.danyuanList.length == 0) {
|
|
|
this.existData = false
|
|
|
} else {
|
|
|
this.existData = true
|
|
|
@@ -200,7 +200,7 @@
|
|
|
this.banbenId = banbenId
|
|
|
this.neirongInfo = {}
|
|
|
this.curProcess = ''
|
|
|
- this.jieList = []
|
|
|
+ this.danyuanList = []
|
|
|
const req = {
|
|
|
banbenId: banbenId
|
|
|
}
|
|
|
@@ -210,8 +210,8 @@
|
|
|
this.neirongInfo = res.data;
|
|
|
this.neirongInfo.jieId = res.data.curJieId;
|
|
|
this.curProcess = res.data.curProcess * 100;
|
|
|
- this.jieList = res.data.jieList || [];
|
|
|
- if (this.jieList.length == 0) {
|
|
|
+ this.danyuanList = res.data.danyuanList || [];
|
|
|
+ if (this.danyuanList.length == 0) {
|
|
|
this.existData = false
|
|
|
} else {
|
|
|
this.existData = true
|