|
|
|
@ -213,12 +213,9 @@ const openWxScan = () => { |
|
|
|
// 当前仅预留调用骨架,需配合服务端 szyptGetToken 接口获取签名 |
|
|
|
const fullUrl = window.location.href; |
|
|
|
const paramUrl = fullUrl.split('#')[0]; |
|
|
|
|
|
|
|
showToast('正在调起微信扫码...'); |
|
|
|
|
|
|
|
// 以下为 wx.config + wx.scanQRCode 的标准流程 |
|
|
|
// 实际使用时需先调用服务端接口获取 config 参数 |
|
|
|
/* |
|
|
|
szyptGetToken({ url: paramUrl }, (res) => { |
|
|
|
const data = res.data; |
|
|
|
wx.config({ |
|
|
|
@ -237,7 +234,7 @@ const openWxScan = () => { |
|
|
|
showFailToast('微信配置失败,请重试'); |
|
|
|
}); |
|
|
|
}); |
|
|
|
*/ |
|
|
|
|
|
|
|
|
|
|
|
// 开发阶段直接尝试调用(在微信浏览器内有效) |
|
|
|
wxClickScan(); |
|
|
|
|