|
|
@@ -19,7 +19,7 @@
|
|
|
<view class="xx-progress-btn-box">
|
|
|
<view class="xx-progress-box">
|
|
|
<view>当前学习进度</view>
|
|
|
- <progress :percent="20" class="xx-progress" stroke-width="10" backgroundColor="#3c7dfd"
|
|
|
+ <progress :percent="curProcess" class="xx-progress" stroke-width="10" backgroundColor="#3c7dfd"
|
|
|
activeColor="#ffd11c" />
|
|
|
</view>
|
|
|
<view class="jxxx-btn" @click="handlePlay(danyuanInfo,'jixu')"></view>
|
|
|
@@ -87,6 +87,7 @@
|
|
|
nextDanyuanId: '',
|
|
|
dengjiId: '',
|
|
|
customType: '',
|
|
|
+ curProcess: '',
|
|
|
cacheManagerLocal: null
|
|
|
|
|
|
|
|
|
@@ -126,6 +127,7 @@
|
|
|
this.cacheManagerLocal = cacheManager.get('xuexi-' + this.chanpinId)
|
|
|
// 使用缓存
|
|
|
this.danyuanInfo = this.cacheManagerLocal
|
|
|
+ this.curProcess = this.cacheManagerLocal.curProcess
|
|
|
this.fontDanyuanId = this.cacheManagerLocal.fontDanyuanId
|
|
|
this.nextDanyuanId = this.cacheManagerLocal.nextDanyuanId
|
|
|
this.dagangList = this.cacheManagerLocal.dagangList || []
|
|
|
@@ -135,6 +137,8 @@
|
|
|
methods: {
|
|
|
handleSelectDanyuan(item) {
|
|
|
console.log('切换单元', item)
|
|
|
+ this.danyuanId =item.danyuanId
|
|
|
+ this.loadDataFromApi()
|
|
|
},
|
|
|
handleClickMulu() {
|
|
|
this.$refs.dyMlRef.showPopup(this.banbenId)
|
|
|
@@ -151,6 +155,7 @@
|
|
|
}
|
|
|
shuxueChanpinDanyuanInfo(req).then(res => {
|
|
|
this.danyuanInfo = res.data
|
|
|
+ this.curProcess = res.data.curProcess
|
|
|
this.fontDanyuanId = res.data.fontDanyuanId
|
|
|
this.nextDanyuanId = res.data.nextDanyuanId
|
|
|
this.dagangList = res.data.dagangList || []
|
|
|
@@ -160,11 +165,7 @@
|
|
|
banbenId: this.banbenId,
|
|
|
danyuanId: this.danyuanId,
|
|
|
dengjiId: this.dengjiId
|
|
|
- })
|
|
|
- // 初始化当前单元
|
|
|
- // if (this.danyuanList.length > 0) {
|
|
|
- // this.currentUnitName = this.danyuanList[0].danyuanName
|
|
|
- // }
|
|
|
+ })
|
|
|
})
|
|
|
},
|
|
|
|