fix button status

This commit is contained in:
quantulr
2024-05-24 17:17:01 +08:00
parent 5c547bdd69
commit c5011c53d7
10 changed files with 259 additions and 192 deletions

View File

@ -23,6 +23,14 @@
findGoods: findGoods,
}
</wxs>
<wxs module="num">
function toFixed(num, precise) {
return typeof (num) === "undefined" ? num : num.toFixed(precise)
}
module.exports = {
toFixed: toFixed,
}
</wxs>
<!-- 倒计时 -->
<view wx:if='{{goods.status==1}}'>
<view class="djs" wx:if="{{ticker!=''}}">还剩余<text>{{ticker}}</text>订单将自动取消</view>
@ -100,7 +108,7 @@
<view class="data">
<view class="data-t display_J_B display_A_C">
<view class="t-l">商品合计</view>
<view class="t-r t-r__1">{{goods.orderPayWay!=2?'¥'+total:goods.orderOtherPay+'积分'}}</view>
<view class="t-r t-r__1">{{goods.orderPayWay!=2?'¥'+ num.toFixed(total, 2) : goods.orderOtherPay+'积分'}}</view>
</view>
<view class="data-t display_J_B display_A_C">
<view class="t-l">运费</view>
@ -130,7 +138,7 @@
</view>
<view class="data-t display_J_B display_A_C">
<view class="t-l">实际支付</view>
<view class="t-r t-r__4">{{goods.orderPayWay!=2?'¥'+goods.orderActualPay:goods.orderOtherPay+'积分'}}</view>
<view class="t-r t-r__4">{{goods.orderPayWay!=2?'¥'+num.toFixed(goods.orderActualPay, 2):goods.orderOtherPay+'积分'}}</view>
</view>
</view>