<button type="button" v-on:click="phoneCall('110')" >预约热线:110</button>
export default {
methods: {
phoneCall: function (msg) {
console.log(msg)
//window.location.href = 'tel://0755637'
//window.location.href="tel:110"
}
}
}
<a :href="'tel:'+store_tel">
<div class="shangjiadianhua">
<img src="../../../../static/img/mobile/shangjia.png" alt="">
商家电话
</div>
</a>
vue项目之 拨打电话
最新推荐文章于 2024-06-22 11:57:18 发布