瀏覽代碼

添加缺少参数

sunshibo 4 周之前
父節點
當前提交
0cda13af70
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      pages/orderInfo/orderDetail.vue

+ 1 - 1
pages/orderInfo/orderDetail.vue

@@ -53,7 +53,7 @@
         <view class="info-item info-item--coupon">
           <view class="info-item-label">优惠券</view>
           <view class="info-item-value coupon-value">
-            <text v-if="priceDetail.discountRate != null && priceDetail.discountRate !== ''" class="coupon-amount">{{ priceDetail.discountRate }}折</text>
+            <text v-if="couponDisplayText !== '—'" class="coupon-amount">{{ couponDisplayText }}</text>
             <text v-else class="coupon-placeholder">—</text>
           </view>
         </view>