Browse Source

查看保单 没数据显示 empty

Qukatie 3 days ago
parent
commit
d6263ec6b3
1 changed files with 7 additions and 5 deletions
  1. 7 5
      pages/home/insurance/itemDetails.vue

+ 7 - 5
pages/home/insurance/itemDetails.vue

@@ -2,8 +2,6 @@
 	<view>
 		<!-- <uni-notice-bar v-if='dataList.length' text="左滑删除单据,删除后可返回注册页重新生成" /> -->
 		<view class="list" style="margin-bottom: 30rpx;" v-for="(item, index) in dataList" :key="index">
-			<u-empty v-if='dataList.length==0' mode="data">
-			</u-empty>
 			<view class="tab-bar-item" style="margin-top: 30rpx;" @click="inEdit(item)">
 				<view class="list-item">
 					<view style="font-weight: 800;">
@@ -18,7 +16,7 @@
 						{{item.tireDescription||'暂无描述'}}
 					</view>
 					<view class="">
-            保单号:{{item.claimNo||'暂无保单号'}}
+						保单号:{{item.claimNo||'暂无保单号'}}
 					</view>
 				</view>
 				<view class="list-item-end">
@@ -44,6 +42,8 @@
 				</view>
 			</view>
 		</view>
+		<u-empty v-if='dataList.length==0' mode="data" style="margin-top:400rpx;">
+		</u-empty>
 	</view>
 </template>
 
@@ -157,13 +157,15 @@
 </script>
 
 <style lang="scss" scoped>
-	::v-deep .uni-noticebar__content-text{
+	::v-deep .uni-noticebar__content-text {
 		font-size: 24rpx !important;
 	}
+
 	::v-deep .uni-noticebar {
 		padding: 10rpx 62rpx !important;
 		text-align: right;
 	}
+
 	.loading,
 	.no-more {
 		text-align: center;
@@ -223,4 +225,4 @@
 			}
 		}
 	}
-</style>
+</style>