fix: 修改余额抵用券抵扣

This commit is contained in:
whitechiina 2025-04-11 15:53:00 +08:00
parent 387c73f9ac
commit ff7aa74ab1
3 changed files with 8 additions and 7 deletions

View File

@ -28,7 +28,7 @@
</view>
<!-- 积分 -->
<view class="shop_home-commodity-infor-price shop_home-commodity-infor-bottom">
<text class="yang">积分:</text>
<text class="yang">预估积分:</text>
<!-- <text class="price">{{RetainDecimalPoint(item['pay_price'] - item['max_deduction'])}}</text> -->
<text class="price">{{item['integral']}}</text>
</view>
@ -78,7 +78,7 @@
</view>
<!-- 积分 -->
<view class="shop_home-commodity-infor-price shop_home-commodity-infor-bottom">
<text class="yang">积分:</text>
<text class="yang">预估积分:</text>
<!-- <text class="price">{{RetainDecimalPoint(item['pay_price'] - item['max_deduction'])}}</text> -->
<text class="price">{{item['integral']}}</text>
</view>
@ -114,7 +114,7 @@
</view>
<!-- 积分 -->
<view class="shop_home-commodity-infor-price shop_home-commodity-infor-bottom">
<text class="yang">积分:</text>
<text class="yang">预估积分:</text>
<!-- <text class="price">{{RetainDecimalPoint(item['pay_price'] - item['max_deduction'])}}</text> -->
<text class="price">{{item['integral']}}</text>
</view>

View File

@ -385,12 +385,10 @@
// 使
isCoin() {
this.use_coin = !this.use_coin;
this.getCart()
},
isBroker() {
this.use_broker = !this.use_broker;
this.getCart()
},
/**
@ -468,7 +466,6 @@
});
}
// let redirect_url = '/pages/restaurant/order/order-details/details';
// uni.hideLoading();
// //

View File

@ -65,13 +65,17 @@ class Payment {
.map(([key, value]) => `${key}=${encodeURIComponent(JSON.stringify(value))}`)
.join('&');
wx.miniProgram.navigateTo({
url: `/pages/extension/shop/wxPay/wxPay?${queryString}`
});
// 延迟两秒后H5内部跳转
setTimeout(()=>{
uni.hideLoading();
// 支付完成返回点餐首页
window.history.back();
// if(return_url){
// // 是否需要关闭调起支付的页面
// if(redirect){