This commit is contained in:
@@ -124,12 +124,12 @@
|
||||
doLogin();
|
||||
};
|
||||
|
||||
const handleScanLogin = async () => {
|
||||
const handleScanLogin = async () => {
|
||||
// #ifdef H5
|
||||
const ready = await initWxSdk();
|
||||
console.log(ready);
|
||||
if (!ready) {
|
||||
uni.showToast({ title: '扫一扫功能暂不可用', icon: 'none' });
|
||||
const result = await initWxSdk();
|
||||
console.log('微信SDK初始化结果:', result);
|
||||
if (!result.success) {
|
||||
uni.showToast({ title: result.error || '扫一扫功能暂不可用', icon: 'none' });
|
||||
return;
|
||||
}
|
||||
wx.scanQRCode({
|
||||
|
||||
Reference in New Issue
Block a user