|
@@ -4,7 +4,7 @@
|
|
|
<!-- <view @click="handleBack" class="nav-bar-icon"></view> -->
|
|
<!-- <view @click="handleBack" class="nav-bar-icon"></view> -->
|
|
|
<text class="nav-bar-title">学习</text>
|
|
<text class="nav-bar-title">学习</text>
|
|
|
</view>
|
|
</view>
|
|
|
- <view class="ezy-page-body xuexi-page-body">
|
|
|
|
|
|
|
+ <view class="ezy-page-body">
|
|
|
<view class="change-dy-box">
|
|
<view class="change-dy-box">
|
|
|
<view class="arrow-icon left-icon" :class="{ 'disabled': currentIndex == 0 }" @click="prev"> </view>
|
|
<view class="arrow-icon left-icon" :class="{ 'disabled': currentIndex == 0 }" @click="prev"> </view>
|
|
|
<!-- 显示内容 -->
|
|
<!-- 显示内容 -->
|
|
@@ -47,12 +47,13 @@
|
|
|
<view @click="handlePlay(section,'play')" class="xx-item-btn"></view>
|
|
<view @click="handlePlay(section,'play')" class="xx-item-btn"></view>
|
|
|
</view>
|
|
</view>
|
|
|
</view>
|
|
</view>
|
|
|
- <!-- 底部占位 -->
|
|
|
|
|
- <view v-if="currentIndex != dagangList.length - 1" class="xx-next-btn" @click="next">学习下一单元</view>
|
|
|
|
|
- <!-- <view class="xx-xw-text">课程已学完</view> -->
|
|
|
|
|
</view>
|
|
</view>
|
|
|
- </view>
|
|
|
|
|
|
|
|
|
|
|
|
+ </view>
|
|
|
|
|
+ <!-- 底部占位 -->
|
|
|
|
|
+ <view style="height: 100px;" v-if="currentIndex != dagangList.length - 1" class="xx-next-btn" @click="next">
|
|
|
|
|
+ 学习下一单元</view>
|
|
|
|
|
+ <!-- <view class="xx-xw-text">课程已学完</view> -->
|
|
|
|
|
|
|
|
<!-- <scroll-view scroll-y class="scroll-view" :scroll-top="scrollTop" @scroll="onScroll"> </scroll-view> -->
|
|
<!-- <scroll-view scroll-y class="scroll-view" :scroll-top="scrollTop" @scroll="onScroll"> </scroll-view> -->
|
|
|
|
|
|
|
@@ -64,6 +65,7 @@
|
|
|
|
|
|
|
|
<script>
|
|
<script>
|
|
|
import CustomTabBar from '@/components/custom-tabbar/custom-tabbar.vue';
|
|
import CustomTabBar from '@/components/custom-tabbar/custom-tabbar.vue';
|
|
|
|
|
+ import cacheManager from "@/utils/cacheManager.js";
|
|
|
import {
|
|
import {
|
|
|
shuxueChanpinDanyuanInfo
|
|
shuxueChanpinDanyuanInfo
|
|
|
} from "@/api/chanpinneirong.js"
|
|
} from "@/api/chanpinneirong.js"
|
|
@@ -120,6 +122,13 @@
|
|
|
this.fontDanyuanId = res.data.fontDanyuanId
|
|
this.fontDanyuanId = res.data.fontDanyuanId
|
|
|
this.nextDanyuanId = res.data.nextDanyuanId
|
|
this.nextDanyuanId = res.data.nextDanyuanId
|
|
|
this.dagangList = res.data.dagangList || []
|
|
this.dagangList = res.data.dagangList || []
|
|
|
|
|
+ cacheManager.set('xuexi-' + this.typeId, res.data)
|
|
|
|
|
+ cacheManager.updateObject('auth', {
|
|
|
|
|
+ typeId: this.typeId,
|
|
|
|
|
+ banbenId:this.banbenId,
|
|
|
|
|
+ danyuanId:this.danyuanId
|
|
|
|
|
+
|
|
|
|
|
+ })
|
|
|
// 初始化当前单元
|
|
// 初始化当前单元
|
|
|
// if (this.danyuanList.length > 0) {
|
|
// if (this.danyuanList.length > 0) {
|
|
|
// this.currentUnitName = this.danyuanList[0].danyuanName
|
|
// this.currentUnitName = this.danyuanList[0].danyuanName
|