Browse Source

支持满减

shish 5 tháng trước cách đây
mục cha
commit
3b175307cd

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

@@ -34,7 +34,9 @@
                         <view>
                         <view>
                             <view>{{item.name}}</view>
                             <view>{{item.name}}</view>
                             <view style="display:flex;justify-content: space-between;padding-right:2upx;">
                             <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>
                         </view>
                     </view>
                     </view>