Parcourir la source

修复bug3534

sunshibo il y a 1 mois
Parent
commit
28a24033f1
1 fichiers modifiés avec 1 ajouts et 1 suppressions
  1. 1 1
      pages/coupon/components/RulesModal.vue

+ 1 - 1
pages/coupon/components/RulesModal.vue

@@ -40,7 +40,7 @@
       <view class="rules-content">
         <view class="rules-item">
           <text class="rules-label">有效期</text>
-          <text class="rules-value">{{ couponData?.specifiedDay ?? '' }}</text>
+          <text class="rules-value">{{ (couponData?.specifiedDay != null && couponData?.specifiedDay !== '') ? (couponData.specifiedDay + '天') : (couponData?.specifiedDay ?? '') }}</text>
         </view>
         
         <view class="rules-item">