Ver Fonte

支持满减

shish há 4 meses atrás
pai
commit
3b175307cd
1 ficheiros alterados com 3 adições e 1 exclusões
  1. 3 1
      ghsPad/src/pages/home/components/rightItem.vue

+ 3 - 1
ghsPad/src/pages/home/components/rightItem.vue

@@ -34,7 +34,9 @@
                         <view>
                             <view>{{item.name}}</view>
                             <view style="display:flex;justify-content: space-between;padding-right:2upx;">
-                                <text>¥{{parseFloat(item.price)}}</text><text>剩{{parseFloat(item.stock)}}</text>
+                                <text>¥{{parseFloat(item.price)}}</text>
+                                <text v-if="Number(item.reachNumDiscount)>0 && Number(item.reachNum)>0" style="color:#FFEB3B;">{{ item.reachNum }}↓{{ item.reachNumDiscount?parseFloat(item.reachNumDiscount):0 }}</text>
+                                <text>剩{{parseFloat(item.stock)}}</text>
                             </view>
                         </view>
                     </view>