HTML5 & tel & make a phone call
咋呼叫呀,网页怎么打电话?
{
key: "exploreCorpPhone",
title: "企业电话",
width: 150,
align: "center",
render: (h, params) => {
let tel = params.row.exploreCorpPhone;
if (tel) {
return h("div", [
h("Icon", {
props: {
name: "ios-call"
}
}),
h("a", {
attrs: {
"data-tel": tel,
href: `tel: ${tel}`,
},
}, tel),
]);
} else {
return h("div", [
h("Icon", {
props: {
name: "ios-call"
}
}),
]);
}
},
},
render: (h, params) => {
let tel = params.row.exploreCorpPhone;
if (tel) {
return h("div", [
h("Icon", {
props: {
name: "ios-call"
}
}),
h("a", {
attrs: {
"data-tel": tel,
href: `tel: ${tel}`,
},
}, tel),
]);
} else {
return h("div", [
h("Icon", {
props: {
name: "ios-call"
}
}),
]);
}
},
window.open('tel:12345');
https://*.com/questions/16781772/trigger-phone-call-with-javascript
<a href="tel: 18123456789">18123456789</a>
<!DOCTYPE html>
<html lang="zh-Hans">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta http-equiv="X-UA-Compatible" content="ie=edge">
<meta name="author" content="xgqfrms">
<meta name="generator" content="VS code">
<title>make a phone call in js</title>
</head>
<body>
<section>
<h1>js & make a call</h1>
<a href="tel: 18123456789">18123456789</a>
<a href="tel: 021 88888888">021 88888888</a>
</section>
</body>
</html>
https://zhidao.baidu.com/question/455762432046249965.html
- 调后台提供的接口
点呼叫弹出呼叫窗口,确认后调后台提供的接口就可以,后台会去调钉钉发起电话
https://blog.csdn.net/cengjingcanghai123/article/details/47951003
input type=tel,
< input type="tel"></input>