官方文檔
wx.makePhoneCall(Object object)
撥打電話
參數
Object object
示例代碼
實際應用
對應的wxml
<view class='footer_list2' data-id='4' catchtap='freeTell' data-current="4" bindtap="chooseImg">
<image class="footer-image2" src="../images/tell.png"></image>
</view>
在對應的js檔案中定義 freeTell 處理程式
freeTell: function(){
wx.makePhoneCall({
phoneNumber: '03123688777',
})
}
模拟預覽效果:
在手機上看到的效果