guhongwei 2 vuotta sitten
vanhempi
commit
80bd4dec62
3 muutettua tiedostoa jossa 6 lisäystä ja 6 poistoa
  1. 1 1
      pages/market/index.vue
  2. 2 2
      pages/week/index.vue
  3. 3 3
      pagesHome/order/order.vue

+ 1 - 1
pages/market/index.vue

@@ -86,7 +86,7 @@
 													</view>
 												</view>
 												<view class="info">
-													<text v-if="gs.gift.length>0" class="gift">赠品</text>
+													<text v-if="gs.gift&&gs.gift.length>0" class="gift">赠品</text>
 													<text v-if="gs.sp_price" class="act">特价</text>
 												</view>
 											</view>

+ 2 - 2
pages/week/index.vue

@@ -229,7 +229,7 @@
 				const that = this;
 				that.$set(that, `marketList`, []);
 				that.$set(that, `skip`, 0)
-				that.$set(that, `limit`, 6)
+				that.$set(that, `limit`, 10)
 				that.$set(that, `page`, 0)
 			},
 			// 清空总信息
@@ -240,7 +240,7 @@
 				that.$set(that, `typeList`, [])
 				that.$set(that, `active`, '0')
 				that.$set(that, `skip`, 0)
-				that.$set(that, `limit`, 6)
+				that.$set(that, `limit`,10)
 				that.$set(that, `page`, 0)
 			},
 			// 搜索商品

+ 3 - 3
pagesHome/order/order.vue

@@ -48,7 +48,7 @@
 												规格:{{tag.goodsSpec_name}}
 											</view>
 											<view class="label">
-												<text v-if="tag.gift.length>0" class="label_1">赠品</text>
+												<text v-if="tag.gift&&tag.gift.length>0" class="label_1">赠品</text>
 												<text v-if="tag.sp_price" class="label_2">特价</text>
 											</view>
 										</view>
@@ -67,8 +67,8 @@
 											</view>
 										</view>
 									</view>
-									<view class="list_2_2" v-if="tag.gift.length>0">赠品</view>
-									<view class="list_2_3" v-if="tag.gift.length>0" v-for="(tags,indexx) in tag.gift"
+									<view class="list_2_2" v-if="tag.gift&&tag.gift.length>0">赠品</view>
+									<view class="list_2_3" v-if="tag.gift&&tag.gift.length>0" v-for="(tags,indexx) in tag.gift"
 										:key="indexx">
 										<view class="left">
 											<view class="name">