- errMsg: "operateCamera:fail operate fail"?
CameraContext.stopRecord(Object object)调用报错errMsg: "operateCamera:fail operate fail" 真机调试和体验版都会报这个错 [图片]真机调试[图片] [图片]体验版
2022-12-27 - navigator跳转其他小程序(非内置小程序)?
<navigator target="miniProgram" open-type="navigate" app-id="wx111111" path="/pages/tests/xxx/xxx" extra-data="{{qrinfo}}" version="release" class="jump-applet"><button bindtap="getCode">电子营业执照认证</button></navigator> 开发过程中发现点击navigator就会直接弹出下图; 需求描述:需求是点击navigator的时候,先发调用getCode发送请求获取qrinfo,请求完成后在弹出下图窗口(动态取参数);因为版本限制wx.navigateToMiniProgram无法使用; [图片]
2022-08-16 - iPhoneX中wx.getLocation返回失败?
ios版本15.5,微信版本8.0.25,已经开启了微信定位,但是在调用wx.getLocation一直返回失败[图片][图片] 代码片段 获取位置 authPowerSetting是wx.getSetting返回的结果 fetchLocation: async function () { const sysInfo = await wx.getSystemInfoSync(); const locationEnabled = sysInfo['locationEnabled']; wx.getLocation({ type: 'wgs84', success (res) { wx.hideLoading(); if (res.errMsg == "getLocation:ok") { console.log(res) } else { try { if (!locationEnabled) { wx.showToast({ title: '请手动开启手机系统定位功能', icon: 'none', duration: 2000, }); return; } } catch (error) {}; try { let authPowerSetting = _this.data.authPowerSetting; if (!authPowerSetting || !authPowerSetting.getUserLocation) { wx.showToast({ title: '请在小程序右上角“...”-“设置”开起定位功能', icon: 'none', duration: 2000, }); return; } } catch (error) {}; } console.log(res) }, fail(err) { wx.hideLoading(); try { if (!locationEnabled) { wx.showToast({ title: '请手动开启手机系统定位功能', icon: 'none', duration: 2000, }); return; } } catch (error) {}; try { let authPowerSetting = _this.data.authPowerSetting; if (!authPowerSetting || !authPowerSetting.getUserLocation) { wx.showToast({ title: '请在小程序右上角“...”-“设置”开起定位功能', icon: 'none', duration: 2000, }); return; } } catch (error) {}; console.log(err) }, }); }
2022-07-21