|
|
@@ -83,9 +83,14 @@ export default {
|
|
|
onAlertTap(alert) {
|
|
|
uni.showModal({
|
|
|
title: alert.title,
|
|
|
- content: alert.message,
|
|
|
- confirmText: '知道了',
|
|
|
- showCancel: false
|
|
|
+ content: alert.message + '\n\n紧急心理援助热线:400-161-9995',
|
|
|
+ confirmText: '拨打热线',
|
|
|
+ cancelText: '知道了',
|
|
|
+ success: function(res) {
|
|
|
+ if (res.confirm) {
|
|
|
+ uni.makePhoneCall({ phoneNumber: '400-161-9995' })
|
|
|
+ }
|
|
|
+ }
|
|
|
})
|
|
|
},
|
|
|
|