wx.openSetting,打不开设置页面

小程序 文章 2022-03-01 17:40 800 0 全屏看文

AI助手支持GPT4.0

wx.openSetting,打不开设置页面wx.openSetting, can't open the settings page

wx.openSetting,打不开设置页面
框架类型 问题类型 API/组件名称 终端类型 微信版本 基础库版本
小程序 Bug wx.openSetting,打不开设置页面 工具 最新 最新

wx.openSetting,打不开设置页面。

比如我们有个页面,需要上传功能,用户点击了按钮,弹出授权信息,不小心点击了拒绝,这时候再点击按钮,调用了wx.openSetting方法,但是却没有跳转到相应的页面,按理说,我调用这个方法,就应该正常打开设置页面。

要不然用户会一直没法进行拍照操作,形成一个BUG。

相同的代码,我在Taro上却能正常调用起来,但是在微信原生上却不行,这个有办法处理吗。

Framework type problem type API / component name terminal type wechat version basic library version applet bug Wx Opensetting, unable to open the latest Wx Opensetting, unable to open the setting page. For example, we have a page that needs to be uploaded. The user clicks the button and the authorization information pops up. He accidentally clicks reject. At this time, he clicks the button and invokes Wx Opensetting method, but it does not jump to the corresponding page. Logically, if I call this method, I should open the setting page normally. Otherwise, the user will not be able to take photos and form a bug. I can call the same code normally on taro, but not on wechat native. Is there a way to deal with this.

回答:

社区技术运营专员-CJiang:

请具体描述问题出现的流程,并提供能复现问题的简单代码片段(https://developers.weixin.qq.com/miniprogram/dev/devtools/minicode.html)。

前端喵:

Taro.openSetting()能正常调用

brave:

提供下可以复现问题的代码片段 https://developers.weixin.qq.com/miniprogram/dev/devtools/minicode.html

-EOF-

AI助手支持GPT4.0


国内超级便宜服务器

摸鱼人热门新闻聚合

钻级赞助商 我要加入

开发者在线工具

第三方支付技术请加QQ群

相关文章
如何通过点击按钮退出当前小程序?
寻求支付分订单同步 JAVA demo
关于vue import的方式引入的企业微信api js-sdk
我的管理后台是nginx已经在使用证书,现在对接微信退款还需要一个微信的证书,这两证书同时都配置?
小程序可以触发添加微信好友吗?
随便看看
ssl.captcha.qq.com 是腾讯自己的域名,在小程序里面为啥还拦截呢?@官方大大 1365
主播在直播时无法将直播分享到朋友圈,是什么原因呢? 1078
input 双向绑定 没用效果,具体怎么实现? 773
根据接口返回的图片path,请求图片资源,但是无法访问? 608
小程序js文件内如何在page外部某一函数里获取到page函数内部data的值? 2189
页面跳转问题? 603
请问小程序如何收费啊? 645
我想确定一下,小程序<web-view>打开的H5页面可以回退到小程序原生界面吗? 915
建议:小程序云端数据库规则 641
图标? 564