achao 2 năm trước cách đây
mục cha
commit
fc42e00572
1 tập tin đã thay đổi với 4 bổ sung3 xóa
  1. 4 3
      pages/business/record.vue

+ 4 - 3
pages/business/record.vue

@@ -26,9 +26,10 @@
 						<image :src="item1" mode="aspectFill" v-for="(item1,index) in item.imgList"
 						<image :src="item1" mode="aspectFill" v-for="(item1,index) in item.imgList"
 							@tap="previewImage(item,index)" class="img">
 							@tap="previewImage(item,index)" class="img">
 						</image>
 						</image>
-						<image v-if='item.imgList.length%3==1||item.imgList.length%3==2' class="img"
-							style='background:#fff;'></image>
-						<image v-if='item.imgList.length%3==1' class="img" style='background:#fff;'></image>
+						<image v-if='item.imgList&&item.imgList.length%3==1||item.imgList&&item.imgList.length%3==2'
+							class="img" style='background:#fff;'></image>
+						<image v-if='item.imgList&&item.imgList.length%3==1' class="img" style='background:#fff;'>
+						</image>
 					</view>
 					</view>
 					<view class="row4">
 					<view class="row4">
 						<u-icon name="map-fill" color="#AFB3BF" size="28" bold></u-icon>
 						<u-icon name="map-fill" color="#AFB3BF" size="28" bold></u-icon>