当前位置:网站首页>Wechat applet to make calls
Wechat applet to make calls
2022-07-27 17:52:00 【Can stars count human beings】
Click the phone ID in the applet to launch the call page request :
wxml:
<i class="fa fa-phone phoneIcon" aria-hidden="true" bindtap="phoneClick" data-phoneNumber="{
{item.phoneNumber}}"></i>
js:
/** * Phone Click * @param {*} event */
phoneClick: function(event){
wx.makePhoneCall({
phoneNumber: event.target.dataset.phonenumber,
success(){
},
fail(){
}
})
}
notes : If you don't write success and fail The following exceptions will be reported !
makePhonCall : fail cancel
Cancel the exception triggered when making a call 
边栏推荐
猜你喜欢

数据库超话(一)

Why is domestic Xinguan oral medicine a drug for the treatment of AIDS

Microsoft silently donated $10000 to curl, which was not notified until half a year later

【cf】#681 A. Kids Seating (Div. 2, based on VK Cup 2019-2020 - Final)

Windows与网络基础-15-本地安全策略

About paths mapping in SAP ui5 application ui5.yaml

微信小程序 实现位置地图显示,引入map地图,不含导航

奇瑞欧萌达也太像长安UNI-T了,但长得像,产品力就像吗?

美团到餐“祖传数仓”标准化治理笔记

神经网络实现手写数字分类matlab
随机推荐
Taishan Office Technology Lecture: word strange paragraph borders
Talk about the new trend of machine translation, and the second maverick translation forum is about to open
小于n的最大数
Hegong sky team vision training Day8 - vision, target recognition
【数据库系统概论(王珊)】第4章——数据库安全性
【数据库系统概论(王珊)】第5章——数据库完整性
Kubernetes Part 7: using kubernetes to deploy prometheus+grafana monitoring system (kubernetes work practice class)
【数据库系统概论(王珊)】第1章——绪论
Understanding service governance in distributed development
美团到餐“祖传数仓”标准化治理笔记
密集光流提取dense_flow理解
DDD (Domain Driven Design) layered architecture
微信小程序 实现位置地图显示,引入map地图,不含导航
Neural network implementation of handwritten numeral classification matlab
JSP custom tag (bottom)
(2) CBAM integrated two stream project construction - data preparation
How far can invisible orthodontics go under the tuyere?
阿里巴巴鹰眼系统简介
数据库超话(一)
Initial polymorphism