You need to sign in or sign up before continuing.
提交 ef7d5f59 编写于 作者: zhaofengliang920817's avatar zhaofengliang920817

更新 makePhoneCall 示例。

上级 2d3140c0
...@@ -1493,7 +1493,7 @@ ...@@ -1493,7 +1493,7 @@
} }
}, },
// #endif // #endif
// #ifdef WEB || MP-WEIXIN || APP-HARMONY // #ifdef WEB || MP-WEIXIN || APP-HARMONY || APP-IOS || APP-ANDROID
{ {
"path": "pages/API/make-phone-call/make-phone-call", "path": "pages/API/make-phone-call/make-phone-call",
"group": "1,6,9", "group": "1,6,9",
......
...@@ -33,6 +33,13 @@ ...@@ -33,6 +33,13 @@
phoneNumber: this.inputValue, phoneNumber: this.inputValue,
success: () => { success: () => {
console.log("成功拨打电话") console.log("成功拨打电话")
},
fail: (err) => {
console.log(err.errCode)
uni.showToast({
title: err.errCode,
icon: "error"
})
} }
}) })
} }
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册