af-mobile-client-vue3 1.3.79 → 1.3.80
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/src/utils/mobileUtil.ts +9 -0
package/package.json
CHANGED
package/src/utils/mobileUtil.ts
CHANGED
|
@@ -42,6 +42,15 @@ export class mobileUtil {
|
|
|
42
42
|
export class mobileTools {
|
|
43
43
|
// 打电话
|
|
44
44
|
static callPhone(phone: any) {
|
|
45
|
+
if (!phone || !phone.user_phone) {
|
|
46
|
+
showConfirmDialog({
|
|
47
|
+
title: '电话提示',
|
|
48
|
+
message: '未检测到手机号,无法进行拨打电话',
|
|
49
|
+
confirmButtonText: '确定',
|
|
50
|
+
showCancelButton: false,
|
|
51
|
+
})
|
|
52
|
+
return
|
|
53
|
+
}
|
|
45
54
|
mobileUtil.execute({
|
|
46
55
|
funcName: 'makePhoneCall',
|
|
47
56
|
param: { phoneNumber: phone.user_phone },
|