소스 검색

判断有无数据显示tag

xiaohaizhao 1 년 전
부모
커밋
367069134c
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  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">