wx.openSetting,打不开设置页面

小程序 文章 2022-03-01 17:40 681 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群

相关文章
我在小程序首页设置里改名了,但微信小程序首页顶端的小程序名称还是没有改变?
公众号认证了一个月不行?!
添加分账接收方接口,如果是小程序下的单要分账,接口中的公众账号ID是不是填 小程序的appid?
一行有两个view,怎么一个左对齐,一个右对齐?
违法DB网站没人管吗前天中午12:47就通过微信客户端和moment@tencent.com投诉了?
随便看看
教育科技公司申请微信支付被拒绝? 3877
微信公众号免300认证教程 4976
小程序已经上线,作为管理员无法在小程序数据助手查看数据? 4093
小程序广告组件通过审核,但是小程序内没有显示广告? 4273
企业微信通讯录账号被管理员误/恶意删除,怎么办? 8054
问题? 7280
如何快速搭建抽奖助手小程序(无需代码知识) 5063
许涛 大哥在吗, 要解冻小程序的时候提示信息主体不一致, 能帮忙看下吗? 6018
小程序搜一搜全称搜索不显示 麻烦解决一下!谢谢 5631
我的小程序广告收款主体是个体工商户,每个月邮寄两次发票很是麻烦,我年底的时候打包邮寄一次可以么? 5223