一直提示这个错误,{errMsg: "chooseLicensePlate:fail api scope is not declared in the privacy agreement", errno: 112},已经在开放平台添加了车牌号隐私设置了
下面是代码
<button hidden="{{addCarBut}}" class="btn-pink PinkBtn-one btn-pink-{{theme}}" bindtap='gotoAddPage' hover-class="{{theme?'':'btn-pink-hover'}}">添加车牌</button>
gotoAddPage() {
// wx.navigateTo({
// url: '/pages/myCarNo/addCardNo/addCardNo',
// })
console.log("---------");
wx.chooseLicensePlate({
success:(e)=>{
console.log('e',e);
},
fail:(e1)=>{
console.log('e1',e1);
},
complete:(e2)=>{
console.log('e2',e2);
}
});
},
基础库版本调到2.32.3以下再看看