wangguoyu 1 månad sedan
förälder
incheckning
18886b800e
1 ändrade filer med 8 tillägg och 38 borttagningar
  1. 8 38
      pages/chanpinneirong/index.vue

+ 8 - 38
pages/chanpinneirong/index.vue

@@ -98,21 +98,16 @@
 		components: {
 			CustomTabBar,
 			danyuanInfoVue
-		
 		},
 		onShow() {
 			console.log('学习页面显示,尝试恢复滚动位置')
-	
-			
 		},
 		onHide() {
 
 			console.log('学习页面隐藏,保存滚动位置')
 		},
-
 		onLoad(options) {
 			console.log('options', options);
-
 			if (!cacheManager.get('xuexi-shuxue')) {
 				console.log('没有缓存');
 				this.customType = options.customType
@@ -132,20 +127,15 @@
 				// 使用缓存
 				this.banbenInfo = this.cacheManagerLocal
 				this.curProcess = this.cacheManagerLocal.curProcess
-				this.fontDanyuanId = this.cacheManagerLocal.fontDanyuanId
-				this.nextDanyuanId = this.cacheManagerLocal.nextDanyuanId
 				this.danyuanList = this.cacheManagerLocal.danyuanList || []
-				const result = this.jisuanWanchengStatus(this.danyuanList);
-				if (result.allCompleted) {
-					console.log('全部完成');
-				} else {
-					this.banbenInfo.curJieId = result.firstUncompleted.jieId
-					console.log('未完成项目:', result.firstUncompleted);
-					console.log('未完成项目jieId:', result.firstUncompleted.jieId);
-				}
-
-
-
+				// const result = this.jisuanWanchengStatus(this.danyuanList);
+				// if (result.allCompleted) {
+				// 	console.log('全部完成');
+				// } else {
+				// 	this.banbenInfo.curJieId = result.firstUncompleted.jieId
+				// 	console.log('未完成项目:', result.firstUncompleted);
+				// 	console.log('未完成项目jieId:', result.firstUncompleted.jieId);
+				// }
 			}
 		},
 
@@ -166,14 +156,6 @@
 					};
 				}
 			},
-
-
-			handleSelectDanyuan(item) {
-				console.log('切换单元', item)
-				this.danyuanId = item.danyuanId
-				this.loadDataFromApi()
-			},
-		
 			handleBack() {
 				uni.navigateTo({
 					url: `/pages/chanpinXuanze/banben?dengjiId=` + this.dengjiId
@@ -236,18 +218,6 @@
 					this.$refs.dyRef.handleShow(this.danyuanId)
 				}, 100)
 			},
-
-
-
-
-
-
-			// 滚动事件处理
-			onScroll(e) {
-				const scrollTop = e.detail.scrollTop;
-				// 更新滚动位置
-				this.scrollTop = scrollTop;
-			}
 		}
 	}
 </script>