diff --git a/pages/shop/detail.vue b/pages/shop/detail.vue
index 68a9a60..45a59c9 100644
--- a/pages/shop/detail.vue
+++ b/pages/shop/detail.vue
@@ -29,7 +29,7 @@
{{ shop.brandType || shop.category }}
营业时间:{{ shop.businessTime }}
-
+
付款码
@@ -147,11 +147,12 @@
},
// xuchao: 付款码——对齐 ysf 项目首页做法:upsdk.qrCodePay() 由云闪付容器原生拉起付款码,无 web 跳转。
// SDK 加载复用加油页验证过的注入模式;拉不起的场景(非容器/加载失败/非免密登录)统一弹 payGuide
- onPayCode() {
- // xuchao: 付款码诊断版——每步落诊断点;?vc=1 时卡点用弹窗展示完整诊断,普通用户仍是轻提示
+ onPayCode(forceDiag) {
+ // xuchao: 付款码诊断——短按=正常流程(轻提示);长按 或 ?vc=1=诊断弹窗(每步状态可见)。
+ // 云闪付内不便加 URL 参数,长按即真机诊断入口
const diag = []
const t0 = Date.now()
- const dbg = /[?]vc=1/.test(typeof window !== 'undefined' ? window.location.href : '')
+ const dbg = forceDiag === true || /[?]vc=1/.test(typeof window !== 'undefined' ? window.location.href : '')
diag.push('UA=' + String(navigator.userAgent || '').slice(0, 90))
const fail = (why) => {
diag.push('结果=' + why + ' 耗时' + (Date.now() - t0) + 'ms')