uni-app 实现点击后拨打电话号码demo效果(整理)

uni-app 内部提供了一个makePhoneCall函数。
效果图:
在这里插入图片描述

<template>
	<view @click = "phone">15054054533</view>
</template>

<script>
	export default {
    
    
		data() {
    
    
			return {
    
    
			}
		},
		onLoad() {
    
    
	
		},
		methods: {
    
    
	        phone() {
    
    
				uni.makePhoneCall({
    
    
					phoneNumber: '150-5405-4533'
				})
			}
		}
	}
</script>

<style>
</style>

猜你喜欢

转载自blog.csdn.net/qq_38881495/article/details/125366737