wx.addPhoneContact 添加通讯录时,华为添加不进去,也不报错
addPhoneContact(suc) { //suc:传入的通讯录信息 wx.addPhoneContact({ photoFilePath: suc.savedFilePath, firstName: this.data.name, mobilePhoneNumber: this.data.mobile, addressStreet: this.data.address, organization: this.data.company, title: this.data.position, email: this.data.email, url: this.data.url, success: () => { wx.showToast({ title: '联系人添加成功', }); this.removeSavedFile(); }, fail: err => { console.log(err) wx.showToast({ title: '联系人添加失败,请稍候重试', }); } }) }