增加确认订单是否输入密码判断
This commit is contained in:
@@ -333,8 +333,6 @@
|
|||||||
|
|
||||||
const storeMemberpay = Memberpay();
|
const storeMemberpay = Memberpay();
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
import {
|
import {
|
||||||
productStore
|
productStore
|
||||||
} from '@/stores/user.js';
|
} from '@/stores/user.js';
|
||||||
@@ -354,7 +352,7 @@
|
|||||||
} from '@dcloudio/uni-app';
|
} from '@dcloudio/uni-app';
|
||||||
// 输入支付密码
|
// 输入支付密码
|
||||||
const ispws = ref(false)
|
const ispws = ref(false)
|
||||||
|
const userInfo= uni.cache.get('userInfo')
|
||||||
|
|
||||||
// 会员信息
|
// 会员信息
|
||||||
const orderVIP = ref(uni.cache.get('orderVIP'))
|
const orderVIP = ref(uni.cache.get('orderVIP'))
|
||||||
@@ -800,25 +798,6 @@
|
|||||||
const goToPay = async (isCreateOrder = false) => {
|
const goToPay = async (isCreateOrder = false) => {
|
||||||
// 余额支付
|
// 余额支付
|
||||||
if (paymentmethod.payType == 'accountPay') {
|
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 == '') {
|
if (orderVIP.value.payPwd == '') {
|
||||||
uni.showModal({
|
uni.showModal({
|
||||||
title: '提示',
|
title: '提示',
|
||||||
@@ -834,16 +813,15 @@
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
// } else if (orderVIP.value.amount == 0) {
|
return
|
||||||
// uni.showToast({
|
}
|
||||||
// title: '您的余额不足',
|
console.log('userInfo.usePayPwd',userInfo.usePayPwd);
|
||||||
// icon: 'none'
|
if(userInfo.usePayPwd){
|
||||||
// })
|
|
||||||
// } else {
|
|
||||||
} else {
|
|
||||||
ispws.value = true
|
ispws.value = true
|
||||||
|
return
|
||||||
}
|
}
|
||||||
return false
|
accountPayevent()
|
||||||
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
const canPayRes = await search_pay_lock()
|
const canPayRes = await search_pay_lock()
|
||||||
@@ -959,7 +937,6 @@
|
|||||||
const accountPayevent = async (pwd) => {
|
const accountPayevent = async (pwd) => {
|
||||||
ispws.value = false;
|
ispws.value = false;
|
||||||
|
|
||||||
|
|
||||||
let checkOrderPay = {
|
let checkOrderPay = {
|
||||||
userId: uni.cache.get('userInfo').id,
|
userId: uni.cache.get('userInfo').id,
|
||||||
orderId: listinfo.id,
|
orderId: listinfo.id,
|
||||||
|
|||||||
@@ -69,6 +69,7 @@
|
|||||||
import {
|
import {
|
||||||
productStore
|
productStore
|
||||||
} from '@/stores/user.js';
|
} from '@/stores/user.js';
|
||||||
|
import {APIuser} from '@/common/api/api.js'
|
||||||
const storeuser = productStore();
|
const storeuser = productStore();
|
||||||
const shopUserInfo = reactive({
|
const shopUserInfo = reactive({
|
||||||
shopInfo: uni.cache.get('orderVIP'),
|
shopInfo: uni.cache.get('orderVIP'),
|
||||||
@@ -217,6 +218,12 @@
|
|||||||
title:'修改成功'
|
title:'修改成功'
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
onMounted(()=>{
|
||||||
|
APIuser().then(res=>{
|
||||||
|
uni.cache.set('userInfo', res);
|
||||||
|
form.usePayPwd=res.usePayPwd
|
||||||
|
})
|
||||||
|
})
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<style lang="scss" scoped>
|
<style lang="scss" scoped>
|
||||||
|
|||||||
Reference in New Issue
Block a user