gjy 2 年之前
父節點
當前提交
41a51eed72
共有 1 個文件被更改,包括 2 次插入2 次删除
  1. 2 2
      pages/business/businessNew.vue

+ 2 - 2
pages/business/businessNew.vue

@@ -60,9 +60,9 @@
 							<image :src="item1" mode="aspectFill" v-for="(item1,index) in item.imgList"
 								@tap="previewImage(item,index)" class="img">
 							</image>
-							<image v-if='item.imgList.length%3==1||item.imgList.length%3==2' class="img"
+							<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.length%3==1' class="img" style='background:#fff;'></image>
+							<image v-if='item.imgList&&item.imgList.length%3==1' class="img" style='background:#fff;'></image>
 							<!-- 	<u-row justify="space-between" gutter="10">
 								<u-col span="4">
 									<view class="demo-layout bg-purple">