修复支付未设置密码时关闭支付前需要输入密码未立即生效问题,修复会员页面周期福利弹窗显示问题

This commit is contained in:
2025-11-13 16:57:13 +08:00
parent bfdd099840
commit 9ee6586e9e
9 changed files with 1185 additions and 370 deletions

View File

@@ -413,7 +413,7 @@ import { onShow, onBackPress } from "@dcloudio/uni-app";
import { onHide } from "@dcloudio/uni-app";
// 输入支付密码
const ispws = ref(false);
const userInfo = uni.cache.get("userInfo");
let userInfo = uni.cache.get("userInfo");
// 会员信息
const orderVIP = ref(uni.cache.get("orderVIP"));
@@ -891,8 +891,10 @@ const goToPay = async (payParams) => {
}
return;
}
// 余额支付
if (payParams.payType == "accountPay") {
console.log("orderVIP.value", orderVIP.value);
if (orderVIP.value.payPwd == "" &&userInfo.usePayPwd) {
uni.showModal({
title: "提示",
@@ -1032,6 +1034,7 @@ function closeSocket() {
}
onShow(() => {
userInfo = uni.cache.get("userInfo");
if (cartsSocket) {
cartsSocket.connect();
}