# callTel
weex 拨打电话接口( Promise 返回)
# 请求参数
| Prop | Type | Required | Default | Description |
|---|---|---|---|---|
param | Object | Y | {}属性: tel:{Type: String, Default: N/A, Description: 拨打的电话号码 } title:{Type: String, Default: N/A, Description: 确认框的标题,如 客户服务} desc:{Type: String, Default: N/A, Description: 确认框的描述,如 拨打热线电话} isDirectCall:{Type: Boolean, Default: false, Description: 是否不弹提示窗,直接拨打电话 } | 请求参数 |
# 接口调用示例
this.$bridge
.callTel(params)
.then(res => {
this.$alert(res)
})
.catch(err => {
this.$toast(err)
})
1
2
3
4
5
6
7
8
2
3
4
5
6
7
8