当前位置:网站首页>Uniapp implements the function of clicking to make a call
Uniapp implements the function of clicking to make a call
2022-06-24 10:16:00 【Ma Xiaotiao coding】
uniapp Click to make a call
Use uniapp Self contained api:uni.makePhoneCall
The following is the implementation code :
<view class="btn" @click="telFun()"> Telephone consultation </view>
methods: {
// Make a phone call :
telFun() {
uni.makePhoneCall({
phoneNumber: '12345', // Phone number
success: function(e) {
console.log(e);
},
fail: function(e) {
console.log(e);
}
})
},
}

边栏推荐
- Detailed explanation of PHP singleton mode
- tf.errors
- How to improve the efficiency of network infrastructure troubleshooting and bid farewell to data blackouts?
- 2.登陆退出功能开发
- 微信小程序学习之 实现列表渲染和条件渲染.
- 利用pandas读取SQL Sever数据表
- Engine localization adaptation & Reconstruction notes
- 包装类型与基本类型的区别
- CVPR 2022 Oral | 英伟达提出自适应token的高效视觉Transformer网络A-ViT,不重要的token可以提前停止计算
- Producer / consumer model
猜你喜欢

411 stack and queue (20. valid parentheses, 1047. delete all adjacent duplicates in the string, 150. inverse Polish expression evaluation, 239. sliding window maximum, 347. the first k high-frequency

Nvisual digital infrastructure operation management software platform

How to standardize data center infrastructure management process

SQL Server AVG函数取整问题

canvas掉落的小球重力js特效动画

微信小程序學習之 實現列錶渲染和條件渲染.

How large and medium-sized enterprises build their own monitoring system

2.登陆退出功能开发

微信小程序学习之 实现列表渲染和条件渲染.

canvas无限扫描js特效代码
随机推荐
2.登陆退出功能开发
学习使用KindEditor富文本编辑器,点击上传图片遮罩太大或白屏解决方案
物联网?快来看 Arduino 上云啦
Wechat applet learning to achieve list rendering and conditional rendering
静态链接库和动态链接库的区别
Engine localization adaptation & Reconstruction notes
H5网页如何在微信中自定义分享链接
SQL Sever关于like操作符(包括字段数据自动填充空格问题)
numpy.logical_and()
Get the QR code of wechat applet with parameters - and share the source code of modifying the QR code logo
Leetcode - 498: traversée diagonale
YOLOv6:又快又准的目标检测框架开源啦
解决微信小程序rich-text富文本标签内部图片宽高自适应的方法
Cicflowmeter source code analysis and modification to meet requirements
利用pandas读取SQL Sever数据表
3. addition, deletion, modification and query of employees
Arbre binaire partie 1
消息队列的作用
学习整理在php中使用KindEditor富文本编辑器
Detailed explanation of PHP singleton mode