feat:付款码全链路诊断化(?vc=1 弹窗显示卡点),接线 vconsole
- onPayCode 每步落诊断点:UA/SDK加载/桥就绪耗时/loginWay/qrCodePay异常 - 调试模式(?vc=1)卡点用弹窗展示完整诊断;普通用户仍是运营口径轻提示,行为不变 - main.js 接线 vconsole(URL 带 ?vc=1 启用,可看 console/网络/存储) Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
This commit is contained in:
co-authored by
Claude Fable 5
parent
2b57392ce0
commit
bda2639d78
@@ -5,6 +5,12 @@ import { injectUpSdk } from '@/common/petrolVoucher.js'
|
||||
// 在 App 挂载前(document-start 最早 JS 点)注入,逼近静态 head 加载时机(石油券支付修复)
|
||||
injectUpSdk()
|
||||
|
||||
// xuchao: 真机调试开关——URL 带 ?vc=1 时加载 vconsole,可看 console/网络/存储;
|
||||
// 普通用户链接无此参数,零影响
|
||||
if (typeof window !== 'undefined' && /[?&#]vc=1/.test(window.location.href || '')) {
|
||||
import('vconsole').then(m => { const V = m.default || m.VConsole; if (V) new V() }).catch(() => {})
|
||||
}
|
||||
|
||||
// #ifndef VUE3
|
||||
import Vue from 'vue'
|
||||
import './uni.promisify.adaptor'
|
||||
|
||||
Reference in New Issue
Block a user