-
Notifications
You must be signed in to change notification settings - Fork 4.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
支付宝小程序扫描普通二维码获取不到 qrCode 值 #10528
Comments
以下为支付宝扫码普通二维码打开小程序页面过程的日志 日志代码为
taro/packages/taro-runtime/src/dsl/common.ts Lines 100 to 121 in c4169aa
taro/packages/taro-runtime/src/dsl/common.ts Lines 163 to 173 in c4169aa
taro/packages/taro-runtime/src/dsl/react.ts Lines 293 to 301 in c4169aa
framework: App onHide
framework: page onHide pages/index/index
framework: App onHide
framework: App onShow
onShow2: this.$taroParams -> undefined
onShow2: Current.router.params -> {qrCode: "https://domain.com/mp/inbox/9ca5db16-c334-4ad5-b029-27a9d9ee99dc"}
framework: page onUnload pages/index/index
framework: page onLoad pages/inboxes/inboxes
onLoad: this.$taroParams -> {$taroTimestamp: 1635739041686}
onLoad: Current.router.params -> {qrCode: "https://domain.com/mp/inbox/9ca5db16-c334-4ad5-b029-27a9d9ee99dc"}
onShow: this.$taroParams -> {$taroTimestamp: 1635739041686}
onShow: Current.router.params -> {$taroTimestamp: 1635739041686}
framework: page onShow pages/inboxes/inboxes
framework:pages/inboxes/inboxes: transfer costs 14ms, render costs 7ms.
framework: page onReady pages/inboxes/inboxes
framework:pages/inboxes/inboxes: transfer costs 20ms, render costs 12ms.
framework:pages/inboxes/inboxes: transfer costs 18ms, render costs 9ms.
framework:pages/inboxes/inboxes: transfer costs 6ms, render costs 29ms. |
相关平台
支付宝小程序
复现仓库
无
小程序基础库: 2.16.0
使用框架: React
复现步骤
useRouter().params.qrCode
代码获取不到对应参数期望结果
通过
useRouter().params.qrCode
获取对应支付宝小程序参数实际结果
获取不到
环境信息
The text was updated successfully, but these errors were encountered: