feat:付款码仅放行云闪付免密登录——验证码/未登录点付款码给引导提示
- 免密登录记 loginWay=ysf、验证码登录记 loginWay=sms,纳入账号缓存清理键(换账号不残留) - 详情页付款码桥就绪后校验登录方式,非 ysf 按登录态弹对应引导,不拉起容器付款码 Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
This commit is contained in:
co-authored by
Claude Fable 5
parent
d1e87498f5
commit
69a42cd6fc
@@ -175,6 +175,21 @@
|
||||
window.upsdk.pluginReady(() => {
|
||||
bridged = true
|
||||
clearTimeout(timer)
|
||||
// xuchao: 付款码依赖云闪付账号与社保卡的绑定关系——只对免密登录(ysf)会话开放;
|
||||
// 验证码登录/未登录时容器钱包账号与本活动身份可能不一致,提示而不是拉起
|
||||
const way = uni.getStorageSync('loginWay')
|
||||
if (way !== 'ysf') {
|
||||
const logged = !!uni.getStorageSync('phone')
|
||||
uni.showModal({
|
||||
title: '暂无法使用付款码',
|
||||
content: logged
|
||||
? '当前为手机号验证码登录,付款码立减需通过云闪付App的活动入口进入(自动免密登录,与钱包账号一致)后使用。'
|
||||
: '请在云闪付App中通过本活动入口进入页面(自动免密登录)后,再使用付款码享优惠。',
|
||||
showCancel: false,
|
||||
confirmText: '知道了'
|
||||
})
|
||||
return
|
||||
}
|
||||
try { window.upsdk.qrCodePay() }
|
||||
catch (e) { uni.showToast({ title: '拉起付款码失败,请重试', icon: 'none' }) }
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user