Selaa lähdekoodia

fix: 优惠券页面报错

cuiyalong 3 vuotta sitten
vanhempi
commit
1a242da97c

+ 1 - 3
src/web/staticres/frontRouter/pc/coupon/js/coupon-item-template.js

@@ -14,8 +14,6 @@ var couponItemString = `
                 </span>
                 <span class="info-condition">满{{ full }}可用</span>
             </div>
-            <div class="info-content c-i-h-p-voucher" key="content" v-else-if="attribute.indexOf('实物') != -1">实物券</div>
-            <div class="info-content c-i-h-others" key="content" v-else>优惠券</div>
         </div>
         <div class="c-i-h-date">
             <span class="c-i-h-date-l">{{ useDate }}</span>
@@ -27,7 +25,7 @@ var couponItemString = `
             <span class="ch-label">适用产品:</span>
             <span class="ch-text ellipsis">{{ productionsListStr }}</span>
             <el-popover
-                v-if="productionsListStr.length >= 15"
+                v-if="productionsListStr && productionsListStr.length >= 15"
                 class="ch-icon"
                 :placement="popoverConf.placement"
                 :width="popoverConf.width"