un-app使用uni.chooseAddress()做选择收货地址没反应的问题

调用小程序提供的 chooseAddress() API 实现选择收货地址的功能

现在需要在manifest.json或者app.json requiredPrivateInfos配置项里面添加配置

        /* 小程序特有相关 */
        "appid" : "wx8606b8af9e3b6cf5",
        "setting" : {
            "urlCheck" : true,
            "checkSiteMap": false
        },
        "usingComponents" : true,
        "permission": {
          "scope.userLocation": {
            "desc": "你的位置信息将用于小程序位置接口的效果展示"
          }
        },
        "requiredPrivateInfos": [
          "chooseLocation",
          "getLocation", 
          "chooseAddress"
          ]
    },

  然后重新运行编译就可以了

posted @ 2022-09-27 18:02  虫虫不想长肉肉  阅读(372)  评论(0)    收藏  举报