wangguoyu 1 month ago
parent
commit
10a2e01c93
1 changed files with 9 additions and 6 deletions
  1. 9 6
      pages/chanpinneirong/index.vue

+ 9 - 6
pages/chanpinneirong/index.vue

@@ -5,7 +5,7 @@
 		</view>
 		</view>
 		<!-- 吸顶单元标题 -->
 		<!-- 吸顶单元标题 -->
 		<ezyActiveVue
 		<ezyActiveVue
-			v-if="currentStickyTitle"
+			v-if="currentStickyTitle &&existData"
 			class="item-dy-box item-fixed"
 			class="item-dy-box item-fixed"
 			@aclick="handleClickDanyuan(currentDanyuanId)"
 			@aclick="handleClickDanyuan(currentDanyuanId)"
 		>
 		>
@@ -87,10 +87,12 @@
 			</view>
 			</view>
 		</scroll-view>
 		</scroll-view>
 		<!-- 回到顶部 -->
 		<!-- 回到顶部 -->
-		<view v-if="currentStickyTitle" class="go-top-btn" @click="goTopBtn"></view>
+		<view v-if="currentStickyTitle&&existData" class="go-top-btn" @click="goTopBtn"></view>
 
 
 		<!-- 无数据占位 -->
 		<!-- 无数据占位 -->
-		<view v-if="!existData" class="ezy-page-body xuexi-page-body"></view>
+		<view v-if="!existData" class="ezy-page-body xuexi-page-body">
+					
+		</view>
 
 
 		<!-- 弹窗组件 -->
 		<!-- 弹窗组件 -->
 		<danyuanInfoVue ref="dyRef" v-if="isShow" @close="isShow = false"></danyuanInfoVue>
 		<danyuanInfoVue ref="dyRef" v-if="isShow" @close="isShow = false"></danyuanInfoVue>
@@ -185,7 +187,7 @@
 			},
 			},
 
 
 			initFromOptions(options) {
 			initFromOptions(options) {
-				console.log('options', options);
+				//console.log('options', options);
 				this.chanpinId = options.chanpinId;
 				this.chanpinId = options.chanpinId;
 				this.danyuanId = options.danyuanId;
 				this.danyuanId = options.danyuanId;
 				this.banbenId = options.banbenId;
 				this.banbenId = options.banbenId;
@@ -220,9 +222,10 @@
 						this.banbenInfo = res.data;
 						this.banbenInfo = res.data;
 						this.curProcess =res.data.curProcess * 100;
 						this.curProcess =res.data.curProcess * 100;
 						this.danyuanList = res.data.danyuanList || [];
 						this.danyuanList = res.data.danyuanList || [];
-
-						if (!this.danyuanList.length) {
+						if (this.danyuanList.length ==0) {
 							this.existData = false
 							this.existData = false
+						}else{
+							this.existData = true
 						}
 						}
 						// 保存到缓存(新增了参数保存)
 						// 保存到缓存(新增了参数保存)
 						const cacheData = {
 						const cacheData = {