Mmuwei
Mmuwei
  • 发布:2023-02-18 23:51
  • 更新:2023-02-19 10:52
  • 阅读:578

【报Bug】uni.chooseAddress()获取收货地址失败

分类:uni-app

产品分类: uniapp/小程序/微信

PC开发环境操作系统: Windows

PC开发环境操作系统版本号: Windows 11 家庭版 22H2

HBuilderX类型: 正式

HBuilderX版本号: 3.6.18

第三方开发者工具版本号: 1.06.2301160win32-x64

基础库版本号: 2.30.0

项目创建方式: HBuilderX

操作步骤:

const [err, succ] = await uni.chooseAddress().catch((err) => err)
console.log(err);
// 用户成功的选择了收货地址
if (err === null && succ.errMsg === 'chooseAddress:ok') {
// 为 data 里面的收货地址对象赋值
// this.address = succ

      // 调用 Store 中提供的 updateAddress 方法, 将 address 保存到 Store 里面  
      this.updateAddress(succ)  
    }

预期结果:

跳转查看收货地址页面

实际结果:

控制台打印
errMsg: "chooseAddress:fail the api need to be declared in the requiredPrivateInfos field in app.json/ext.json"

bug描述:

使用到uni.chooseAddress(OBJECT)接口获取用户收货地址时,无法跳转到收货地址页面获取。
打印接口返回信息,显示 "chooseAddress:fail the api need to be declared in the requiredPrivateInfos field in app.json/ext.json"

2023-02-18 23:51 负责人:无 分享
已邀请:
唐家三少

唐家三少 - 我要写代码

该问题目前已经被锁定, 无法添加新回复