Просмотр исходного кода

fix: 选择优惠券显示bug修复

zhanghui 2 лет назад
Родитель
Сommit
8acd4566e3
1 измененных файлов с 3 добавлено и 3 удалено
  1. 3 3
      orderPages/useCoupons/index.vue

+ 3 - 3
orderPages/useCoupons/index.vue

@@ -12,7 +12,7 @@
         </view>
         <view  :style="{'height':scrollViewHeight}">
             <scroll-view class="scroll " :style="{'height':scrollViewHeight}" scroll-y>
-                <view  class="row-list flex-row justify-start" :class="{'grayscale' : item.discountsPrice>standardPrice }" v-for="(item,index) in countsList" @click="clickCoupons(item,index)" :key="index">
+                <view  class="row-list flex-row justify-start" :class="{'grayscale' : item.discountsPrice*1 >standardPrice*1 }" v-for="(item,index) in countsList" @click="clickCoupons(item,index)" :key="index">
                     <view class="h-text flex-col justify-center ">
                         <view class="money">
                             <text>¥{{item.discountsPrice}}</text>
@@ -40,7 +40,7 @@
 
                     <view class="h-right-content flex-col justify-center">
 
-                        <view class="flex-row justify-center" v-if="item.discountsPrice>standardPrice">
+                        <view class="flex-row justify-center" v-if="item.discountsPrice*1 >standardPrice*1 ">
                             <view class="h-btn-img">
                                 <image class="h-btn-img" src="/static/coupon/u2110.png" mode=""></image>
                             </view>
@@ -115,7 +115,7 @@ export default {
       },
       clickCoupons(item,index){
 
-          if (item.discountsPrice > this.standardPrice){
+          if (item.discountsPrice*1 > this.standardPrice*1){
               return
           }