wangguoyu 1 month ago
parent
commit
1dc40d113a
1 changed files with 14 additions and 5 deletions
  1. 14 5
      pages/chanpinneirong/index.vue

+ 14 - 5
pages/chanpinneirong/index.vue

@@ -4,7 +4,7 @@
 			<!-- <view @click="handleBack" class="nav-bar-icon"></view> -->
 			<text class="nav-bar-title">学习</text>
 		</view>
-		<view class="ezy-page-body xuexi-page-body">
+		<view class="ezy-page-body">
 			<view class="change-dy-box">
 				<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>
 				</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 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> -->
 
@@ -64,6 +65,7 @@
 
 <script>
 	import CustomTabBar from '@/components/custom-tabbar/custom-tabbar.vue';
+	import cacheManager from "@/utils/cacheManager.js";
 	import {
 		shuxueChanpinDanyuanInfo
 	} from "@/api/chanpinneirong.js"
@@ -120,6 +122,13 @@
 					this.fontDanyuanId = res.data.fontDanyuanId
 					this.nextDanyuanId = res.data.nextDanyuanId
 					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) {
 					// 	this.currentUnitName = this.danyuanList[0].danyuanName