Переглянути джерело

Merge branch 'deploy' of http://git.chelingzhu.com/chelingzhu-web/storeCheck-app into deploy

lilei 4 роки тому
батько
коміт
f5b9a34112
1 змінених файлів з 5 додано та 5 видалено
  1. 5 5
      pages/shopTourDetails/shopTourDetails.vue

+ 5 - 5
pages/shopTourDetails/shopTourDetails.vue

@@ -1,12 +1,12 @@
 <template>
 	<view class="shopTourDetails">
 		<view class="shopTourDetails-wrap">
-			<scroll-view scroll-y class="scroll-con-l">
+			<scroll-view scroll-y class="scroll-con-l" v-if="itemList.length != 0">
 				<view class="item-con" v-for="(item, index) in itemList" :key="index">
 					<view :class="['item-tit', nowInd==index ? 'active' : '']" @click="changeType(index)">{{item.assessItemName}}</view>
 				</view>
 			</scroll-view>
-			<scroll-view scroll-y class="scroll-con-r">
+			<scroll-view scroll-y class="scroll-con-r" v-if="itemList.length > 0">
 				<view class="item-con" v-for="(item, index) in evaluationItemsList" :key="index">
 					<view class="item-tit">{{item.assessTargetName}}</view>
 					<view class="item-main">
@@ -18,9 +18,9 @@
 				</view>
 				<u-empty text="暂无数据" img-width="120" v-if="itemList.length > 0 && evaluationItemsList.length == 0" mode="list"></u-empty>
 			</scroll-view>
-		</view>
-		<view style="width: 100%;padding-top: 10vh;" v-if="itemList.length == 0">
-			<u-empty text="暂无数据" img-width="120" mode="list"></u-empty>
+			<view style="width: 100%;" v-if="itemList.length == 0">
+				<u-empty text="暂无数据" img-width="120" mode="list"></u-empty>
+			</view>
 		</view>
 		<!-- 查看评论 -->
 		<comment-popup :openPopup="openPopup" :comments="comments" :taskTargetPhotoList="taskTargetPhotoList" @close="closePopup" />