Explorar o código

判断有无数据显示tag

xiaohaizhao hai 1 ano
pai
achega
367069134c
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      store/product/detail.vue

+ 1 - 1
store/product/detail.vue

@@ -12,7 +12,7 @@
         </swiper>
         <view class="head">
             <view class="name u-line-1">{{ detail.name || '--' }}</view>
-            <view class="tag u-line-1">
+            <view class="tag u-line-1" v-if="detail.tag">
                 {{ detail.tag }}
             </view>
             <view v-if="detail.pricetype == '一口价'" class="price-box">