- 关于小程序的隐私弹窗设置问题,我看了下最新讨论,实在是没想通,跪求合适的解决方案?
1、onNeedPrivacyAuthorization触发时机:开发者调用需要授权的方法有组件(camera等)和api(getLocation等)形式,是在组件初始化、API调用时触发?还是要开发者主动调用requirePrivacyAuthorize才会触发,未授权的时候组件、API都无法调用? 1.1、如果是在组件初始化、API调用时触发onNeedPrivacyAuthorization,camera、getLocation之类的自带的弹窗和自定义授权的弹窗是否会冲突? 1.2 、如果需要开发者提交requirePrivacyAuthorize去触发,组件是否需要通过wx:if先隐藏,等用户同意后再渲染? ps: 隐私弹窗组件先加载了,但是这时候还没调用相关隐私接口,再调用的时候,提示未同意隐私授权。 如果想要调用隐私接口后再展示隐私弹窗,控制台又会先提示未同意隐私授权。 到底要咋整,还是以上三个问题,虽然给了个回调,但是回调有毛线用呀,还是解决不了问题。
2023-09-12 - 视频号小店通过接口绑定分享员,获取不到分享员订单,请问是什么情况呢?
1、通过接口绑定的分享员,通过接口可以获取到分享员列表,但是视频号小店后台看不到分享员列表 邀请分享员:https://developers.weixin.qq.com/doc/channels/API/sharer/bindsharer.html 2、通过接口绑定分享员之后,分享员分享如下场景(橱窗、直播间、视频号主页和短视频),然后用户下单,也查询不到分享订单的记录 分享员订单列表:https://developers.weixin.qq.com/doc/channels/API/sharer/get_sharer_order_list.html 请问该接口目前属于开放阶段还是未开放,或者说是内测? 接口地址:https://developers.weixin.qq.com/doc/channels/API/sharer/bindsharer.html 接口调用正常,就是查询不到订单数据,希望得到回复,谢谢了。
2023-02-04 - 小程序文件上传、真机预览和调试都没有问题、体验版和正式版就不行、求解!
[图片] 工具测试一切正常、体验版和正式版就不行了、有没有大神遇到过、求解! 这是代码片段: [代码]chooseImage: [代码][代码]function[代码] [代码]() {[代码][代码] [代码][代码]let that = [代码][代码]this[代码][代码] [代码][代码]wx.chooseImage({[代码][代码] [代码][代码]success: [代码][代码]function[代码] [代码](res) {[代码][代码] [代码][代码]let file = res.tempFilePaths[0][代码][代码] [代码][代码]wx.uploadFile({[代码][代码] [代码][代码]url: config.uploads,[代码][代码] [代码][代码]filePath: file,[代码][代码] [代码][代码]name: [代码][代码]'file'[代码][代码],[代码][代码] [代码][代码]header: {[代码][代码] [代码][代码]'content-type'[代码][代码]: [代码][代码]'application/json'[代码][代码],[代码][代码] [代码][代码]'Authorization'[代码][代码]: wx.getStorageSync([代码][代码]'token_type'[代码][代码]) + [代码][代码]' '[代码] [代码]+ wx.getStorageSync([代码][代码]'access_token'[代码][代码]),[代码][代码] [代码][代码]},[代码][代码] [代码][代码]formData:{[代码][代码] [代码][代码]type: [代码][代码]'cover'[代码][代码] [代码][代码]},[代码][代码] [代码][代码]success: (res)=>{[代码][代码] [代码][代码]res = JSON.parse(res.data)[代码][代码] [代码][代码]if[代码] [代码](res.resultCode == 200){[代码][代码] [代码][代码]that.setData({[代码][代码] [代码][代码]head: file,[代码][代码] [代码][代码]avatar: res.data[代码][代码] [代码][代码]})[代码][代码] [代码][代码]}[代码][代码] [代码][代码]}[代码][代码] [代码][代码]})[代码][代码] [代码][代码]},[代码][代码] [代码][代码]})[代码][代码] [代码][代码]}[代码]
2018-11-20 - 小程序页面注册问题、点击事件无效、求大神解答?
先上目录结构 [图片] 当前操作目录是: pages/seller/coupons/lists/index 我要跳转到: pages/seller/coupons/created/index 代码如下: wxml <view class='add' bindtap='created_coupons'>添加卡券</view> js created_coupons:function(){ wx.navigateTo({ url: '/pages/seller/coupons/created/index' }) } 报错信息如下: Do not have created_coupons handler in current page: pages/seller/coupons/lists/index. Please make sure that created_coupons handler has been defined in pages/seller/coupons/lists/index, or pages/seller/coupons/lists/index has been added into app.json 小弟参考了如下(更多)文章: https://www.cnblogs.com/web1/archive/2018/04/24/8930667.html https://www.jianshu.com/p/75a1c6a8a316 没有找到解决办法、特来社区求大神解救!感激不尽
2018-09-12 - 小程序页面注册问题、点击事件无效、求大神解答?
先上目录结构 [图片] 当前操作目录是: pages/seller/coupons/lists/index 我要跳转到: pages/seller/coupons/created/index 代码如下: wxml <view class='add' bindtap='created_coupons'>添加卡券</view> js created_coupons:function(){ wx.navigateTo({ url: '/pages/seller/coupons/created/index' }) } 报错信息如下: Do not have created_coupons handler in current page: pages/seller/coupons/lists/index. Please make sure that created_coupons handler has been defined in pages/seller/coupons/lists/index, or pages/seller/coupons/lists/index has been added into app.json 小弟参考了如下(更多)文章: https://www.cnblogs.com/web1/archive/2018/04/24/8930667.html https://www.jianshu.com/p/75a1c6a8a316 没有找到解决办法、特来社区求大神解救!感激不尽
2018-09-11