效果图
1、先写一个点击事件
<view @click="callPhone('12315')">
<image src="/static/images/mall/kefu.png"
style="width:15px;height:15px;margin-left: 16px;">
在线客服</image>
</view>
2、点击事件
//打电话
callPhone() {
wx.makePhoneCall({
phoneNumber: '122211' //仅为示例,并非真实的电话号码
})
},