在开发小程序中,有一个将手机号存入通讯录的需求,这里小程序提供了addPhoneContact方法
uni.addPhoneContact({
nickName: '昵称',
lastName: '姓',
firstName: '名',
remark: '备注',
mobilePhoneNumber: '11443234322', //手机号
weChatNumber: 'wx123',
success: function () {
console.log('success');
},
fail: function () {
console.log('fail');
}
});