增加确认订单是否输入密码判断

This commit is contained in:
2025-09-29 21:25:20 +08:00
parent 1b57cc9653
commit 31e386bd3c
2 changed files with 15 additions and 31 deletions

View File

@@ -333,8 +333,6 @@
const storeMemberpay = Memberpay();
import {
productStore
} from '@/stores/user.js';
@@ -354,7 +352,7 @@
} from '@dcloudio/uni-app';
// 输入支付密码
const ispws = ref(false)
const userInfo= uni.cache.get('userInfo')
// 会员信息
const orderVIP = ref(uni.cache.get('orderVIP'))
@@ -800,25 +798,6 @@
const goToPay = async (isCreateOrder = false) => {
// 余额支付
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('用户点击取消');
// }
// }
// })
// return
// }
if (orderVIP.value.payPwd == '') {
uni.showModal({
title: '提示',
@@ -834,16 +813,15 @@
}
}
})
// } else if (orderVIP.value.amount == 0) {
// uni.showToast({
// title: '您的余额不足',
// icon: 'none'
// })
// } else {
} else {
return
}
console.log('userInfo.usePayPwd',userInfo.usePayPwd);
if(userInfo.usePayPwd){
ispws.value = true
return
}
return false
accountPayevent()
return
}
const canPayRes = await search_pay_lock()
@@ -959,7 +937,6 @@
const accountPayevent = async (pwd) => {
ispws.value = false;
let checkOrderPay = {
userId: uni.cache.get('userInfo').id,
orderId: listinfo.id,