智能名片小程序名片详情页功能实现键码一键复制信息功能复制到剪贴板wx.getClipboardData({success(res){console.log(res.data)}})一键拨号功能拨打电话wx.makePhoneCall({phoneNumber:'1340000'//只是一个例子,不是真实的电话号码})定位导航功能使用内置的地图微信查看位置wx.getLocation({type:'gcj02',//返回经纬度成功(res){constlatitude=res.latitudeconstlongitude=res.longitudewx.openLocation({latitude,longitude,scale:18})}})存储在wx.openLocation中进入手机通讯录功能,在手机通讯录中添加联系人。用户可以选择以“添加新联系人”或“添加到现有联系人”的形式将表单写入手机系统通讯录。wx.addPhoneContact({firstName:ifirstName,mobilePhoneNumber:mobilePhoneNumber,weChatNumber:weChatNumber,organization:organization,title:title,addressStreet:addressStreet,email:email});在分享功能页面发起转发。通过给按钮组件设置属性open-type="share",可以在用户点击按钮后触发Page.onShareAppMessage事件。相关组件:按钮。onShareAppMessage:function(){//用户分享时返回自定义分享数据。},智能名片小程序名片详情页功能实现关键代码
