wangguoyu 1 month ago
parent
commit
a5c5f23cba
1 changed files with 13 additions and 13 deletions
  1. 13 13
      pages/chanpinneirong/index.vue

+ 13 - 13
pages/chanpinneirong/index.vue

@@ -28,9 +28,9 @@
 			<view class="xx-scroll-body">
 				<view class="xx-item-list">
 					<view class="xx-item-title">— 以下为当前等级课程目录 —</view>
-					<view v-for="danyuanItem in danyuanList" :key="danyuanItem.danyuanId">
+					<scroll-view  v-for="danyuanItem in danyuanList" :key="danyuanItem.danyuanId">
 						<view class="item-dy-box" @click="handleClickDanyuan">
-							<view class="dy-left-box">L{{danyuanItem.danyuanId}}</view>
+							<view class="dy-left-box">L{{banbenInfo.dengjiId}}</view>
 							<view class="dy-right-box">
 								<view class="dy-name">{{danyuanItem.danyuanName}}</view>
 								<view>{{danyuanItem.danyuanIntro}}</view>
@@ -47,14 +47,14 @@
 							</view>
 							<view class="xx-item-btn"></view>
 						</view>
-					</view>
+					</scroll-view >
 				</view>
 
 			</view>
 
 		</view>
 		<view v-if="!existData">
-			
+
 		</view>
 		<danyuanInfoVue ref="dyRef" v-if="isShow" @close="isShow= false"></danyuanInfoVue>
 		<custom-tab-bar :show="true" :current-index="currentTabIndex" />
@@ -96,8 +96,8 @@
 				currentTabIndex: 1,
 				cacheManagerLocal: null,
 				hasCache: false, // 是否有缓存的标志
-				needRefresh: false ,// 是否需要刷新数据的标志
-				existData:true
+				needRefresh: false, // 是否需要刷新数据的标志
+				existData: true
 			}
 		},
 		components: {
@@ -105,7 +105,7 @@
 			danyuanInfoVue
 		},
 		onShow() {
-		//	console.log('学习页面显示,使用缓存数据')
+			//	console.log('学习页面显示,使用缓存数据')
 			this.currentTabIndex = 1
 			const cacheData = cacheManager.get('xuexi-shuxue');
 			// cacheData && this.shouldUseCache(options, cacheData)
@@ -138,7 +138,7 @@
 
 		},
 		onLoad(options) {
-		//	debugger
+			//	debugger
 			uni.hideTabBar()
 		},
 		methods: {
@@ -196,7 +196,7 @@
 						this.curProcess = res.data.curProcess;
 						this.danyuanList = res.data.danyuanList || [];
 
-						if(!this.danyuanList){
+						if (!this.danyuanList) {
 							this.existData = false
 						}
 						// 保存到缓存(新增了参数保存)
@@ -241,12 +241,12 @@
 			},
 			// 统一保存和跳转方法
 			async saveAndNavigate(jieId, type) {
-				
-				if(!this.banbenId ||!this.danyuanId){
+
+				if (!this.banbenId || !this.danyuanId) {
 					toast("banbenId或者danyuanId 丢失")
 					return false
 				}
-				
+
 				let req = {
 					"banbenId": this.banbenId,
 					"danyuanId": this.danyuanId,
@@ -309,7 +309,7 @@
 				this.saveAndNavigate(jieId, da.type);
 			},
 			handleClickDanyuan() {
-				if(!this.danyuanId){
+				if (!this.danyuanId) {
 					toast("this.danyuanId丢失")
 					return false
 				}