如图

微信开发者工具预览时可以添加成功然后真机预览时没有反应
************************解决方案
<button bindtap="addTel">保存电话</button>
information:{
name:"1111",
tel:"222222222"
},
},
addTel(){
var that = this
that.getAuthorize()
wx.addPhoneContact({
firstName:this.data.information.name,
mobilePhoneNumber: this.data.information.tel,
success(res) {
},
fail(fail){
}
})
},
getAuthorize: function () {
wx.getSetting({
success: function (res) {
if (!res.authSetting['scope.writeContacts']) {
wx.authorize({
scope: 'scope.writeContacts',
success: function () {
console.log('授权成功')
},
fail: function () {
console.log('授权失败')
}
})
}
}
})
},