当前位置:网站首页>uni-app打电话功能
uni-app打电话功能
2022-07-15 15:13:00 【北乎下周】
效果图

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' //仅为示例,并非真实的电话号码
})
},边栏推荐
猜你喜欢
随机推荐
争议中的换电:头部玩家的有限游戏
Niuke 2021 summer training 1-h-hash function
[flutter -- actual combat] Introduction to flutter
Niuke 2021 summer training 4-j-average
3、 Index optimization
《遥远的救世主》遵守客观规律(三)——文化属性
Dream CMS foreground SQL injection
动作捕捉协助中国电力科学研究院建立边云协同电力自主巡检系统
Redis01 : NoSQL和Redis简介
下采样 - 信号相位和混叠
Power change in dispute: a limited game for head players
【SpaceNet】SN6:Multi-Sensor All-Weather Mapping
[detailed tutorial] a thorough article on mongodb aggregation query
牛客2021暑期训练4-J-Average
动态代理
Construction and compilation of uboot environment
LeetCode_动态规划_中等_718.最长重复子数组
聊一聊Spark实现TopN的几种方式
[QT] operation of Jason in QT
栈的应用—









