Commit 121cdab7 by zhangxw

确认订单置灰bug修复

1 parent 082b7cba
...@@ -134,8 +134,8 @@ Page({ ...@@ -134,8 +134,8 @@ Page({
}) })
}, },
checkOut() { checkOut() {
let { money, walletObj, contactInfo } = this.data let { total, walletObj, contactInfo } = this.data
if (money > walletObj?.currentScore) return // 积分不足 if (total > walletObj?.currentScore) return // 积分不足
if (!Object.keys(contactInfo)?.length) return wx.p.wxApi.showToast('请选择收货地址') if (!Object.keys(contactInfo)?.length) return wx.p.wxApi.showToast('请选择收货地址')
this.setData({ this.setData({
showModal: true showModal: true
......
...@@ -92,7 +92,7 @@ ...@@ -92,7 +92,7 @@
</view> </view>
</view> </view>
</view> </view>
<view class="btn text-center {{money > walletObj.currentScore ? 'disabled' : ''}}" bindtap="checkOut">立即兑换</view> <view class="btn text-center {{total > walletObj.currentScore ? 'disabled' : ''}}" bindtap="checkOut">立即兑换</view>
</view> </view>
</goods-action> </goods-action>
</block> </block>
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!