确认订单更新

This commit is contained in:
2025-09-28 10:11:54 +08:00
parent 766d7f5b3b
commit 53dcd1f788
3 changed files with 20 additions and 29 deletions

View File

@@ -82,7 +82,7 @@
<view class="val">
<view></view>
<view style="font-size: 28rpx;"></view>
<view>{{packfee }}</view>
<view>{{cartStore.orderCostSummary.packFee }}</view>
</view>
</view>
@@ -312,10 +312,6 @@
type: Boolean,
default: false
},
packfee: {
type: [Number, String],
default: 0
},
freeCheck: {
type: Boolean
},

View File

@@ -918,17 +918,10 @@
url: '/pages/product/index'
})
}
//打包费
const packfee = computed(() => {
const historyOrderPackfee = listinfo.packFeess ? listinfo.packFeess * 1 : 0;
const nowCartsPackFee = is_type.value ? cartStore.totalPackFee * 1 : 0;
const total = historyOrderPackfee + nowCartsPackFee
return total
})
//不计算各种折扣前的实付金额
const shifu = computed(() => {
const payAmount = listinfo.payAmount ? listinfo.payAmount * 1 : 0
return payAmount + cartStore.totalPrice * 1 + packfee.value * 1
return payAmount + cartStore.totalPrice * 1 + 0;
})
//减去各种折扣后的金额
const lastPayMoney = computed(() => {

View File

@@ -400,22 +400,24 @@
const goToPay = async () => {
// 余额支付
if (paymentmethod.payType == 'accountPay') {
if (orderVIP.value.isVip == 0) {
uni.showModal({
title: '提示',
content: '您还不是会员,是否去注册会员?',
success: (res) => {
if (res.confirm) {
uni.pro.navigateTo('user/member/index', {
shopId: orderVIP.value.shopId,
type: 'detail'
})
} else if (res.cancel) {
console.log('用户点击取消');
}
}
})
} else if (orderVIP.value.payPwd == '') {
// if (orderVIP.value.isVip == 0) {
// uni.showModal({
// title: '提示',
// content: '您还不是会员,是否去注册会员?',
// success: (res) => {
// if (res.confirm) {
// uni.pro.navigateTo('user/member/index', {
// shopId: orderVIP.value.shopId,
// type: 'detail'
// })
// } else if (res.cancel) {
// console.log('用户点击取消');
// }
// }
// })
//return
// }
if (orderVIP.value.payPwd == '') {
uni.showModal({
title: '提示',
content: '您还未设置支付密码,是否去设置?',