فهرست منبع

增加空数据显示

htc 1 سال پیش
والد
کامیت
694f800934
1فایلهای تغییر یافته به همراه12 افزوده شده و 7 حذف شده
  1. 12 7
      pagesHouse/Verification/recordCy.vue

+ 12 - 7
pagesHouse/Verification/recordCy.vue

@@ -10,14 +10,19 @@
 			<view class="right">共{{totalNum}}单 收入¥{{totalAmount}}</view>
 		</view>
 		<view class="list">
-			<view class="item" v-for="(item,index) in data" :key="index">
-				<image :src="item.productImg|delArr"></image>
-				<view class="mid">
-					<text>{{item.productName}}</text>
-					<text>核销时间:{{item.writeOffTime}}</text>
+			<block v-if="data.length>0">
+				<view class="item" v-for="(item,index) in data" :key="index">
+					<image :src="item.productImg|delArr"></image>
+					<view class="mid">
+						<text>{{item.productName}}</text>
+						<text>核销时间:{{item.writeOffTime}}</text>
+					</view>
+					<view class="price">¥{{item.realityPay}}</view>
 				</view>
-				<view class="price">¥{{item.realityPay}}</view>
-			</view>
+			</block>
+			<block v-else>
+				<NoData/>
+			</block>
 		</view>
 		<u-datetime-picker @confirm="confirmDate" @cancel="show=false" :show="show" v-model="value1"
 			visibleItemCount="6" mode="year-month"></u-datetime-picker>