Parcourir la source

判断有无数据显示tag

xiaohaizhao il y a 1 an
Parent
commit
367069134c
1 fichiers modifiés avec 1 ajouts et 1 suppressions
  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">