Jelajahi Sumber

下架状态添加

wcni 5 tahun lalu
induk
melakukan
2dcbbc9489
1 mengubah file dengan 5 tambahan dan 1 penghapusan
  1. 5 1
      pages/index/shop.vue

+ 5 - 1
pages/index/shop.vue

@@ -37,7 +37,11 @@
 					<text class="price-tip">¥</text>
 					<text class="price" style="color: #D9332E;">{{datalist.goods_price}}</text>
 					<text class="m-price">¥{{datalist.goods_marketprice}}</text>
-					<text class="price-tip" style="color: #D9332E;" v-if="datalist.goods_storage == 0">已下架</text>
+					<text class="price-tip" style="color: #D9332E;" 
+					v-if="datalist.goods_storage == 0 ||
+					datalist.store_id == 1 
+					|| datalist.goods_state != 1
+					">已下架</text>
 				</view>
 				<view>
 					<text style="color: #909399">月销售{{datalist.sale_number}}</text>