当前位置:网站首页>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);
}
})
},
}

边栏推荐
- p5.js千纸鹤动画背景js特效
- 小程序 rich-text中图片点击放大与自适应大小问题
- Floating point notation (summarized from cs61c and CMU CSAPP)
- Wechat applet learning to achieve list rendering and conditional rendering
- Regular matching mobile number
- Why is JSX syntax so popular?
- 百度网盘下载一直请求中问题解决
- Status of the thread pool
- Regular matching mailbox
- Role of message queuing
猜你喜欢
随机推荐
线程的 sleep() 方法与 wait() 方法的区别
分布式 | 如何与 DBLE 进行“秘密通话”
学习使用KindEditor富文本编辑器,点击上传图片遮罩太大或白屏解决方案
Leetcode - 498: traversée diagonale
3. addition, deletion, modification and query of employees
SQL Server AVG function rounding
How to standardize data center infrastructure management process
利用pandas读取SQL Sever数据表
Operator details
Machine learning perceptron and k-nearest neighbor
numpy.logical_or
Indexeddb local storage, homepage optimization
Leetcode-1089: replication zero
Wechat applet learning to achieve list rendering and conditional rendering
Impdp leading schema message ora-31625 exception handling
Engine localization adaptation & Reconstruction notes
Desktop software development framework reward
1. project environment construction
JS proxy mode
被困英西中学的师生安全和食物有保障









