feat:付款码仅放行云闪付免密登录——验证码/未登录点付款码给引导提示

- 免密登录记 loginWay=ysf、验证码登录记 loginWay=sms,纳入账号缓存清理键(换账号不残留)
- 详情页付款码桥就绪后校验登录方式,非 ysf 按登录态弹对应引导,不拉起容器付款码

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
This commit is contained in:
jacobxu666
2026-10-26 17:36:00 +08:00
co-authored by Claude Fable 5
parent d1e87498f5
commit 69a42cd6fc
4 changed files with 22 additions and 1 deletions
+2
View File
@@ -138,6 +138,8 @@
// 就会变成 Bearer [object Object],把所有鉴权接口全打挂
const issued = typeof res.data.accessToken === 'string' ? res.data.accessToken : ''
if (issued) uni.setStorageSync('token', issued)
// xuchao: 标记本次会话为云闪付免密登录——商户详情付款码按此放行
uni.setStorageSync('loginWay', 'ysf')
this.$u.api.getEligibility({ phone: res.data.mobile, identityNo: res.data.idNo || '', name: res.data.name || '' }).then(eRes => {
if (eRes.errcode === 0) {
uni.setStorageSync('isAuth', eRes.data.isAuth)