|
@@ -2,6 +2,7 @@
|
|
|
import { watch, watchEffect } from 'vue'
|
|
|
import AnimatedOverlay from '../../components/dialog/AnimatedOverlay.vue'
|
|
|
import { useContactMeLogic, usePreLeaveInfo } from '../../utils/hooks.js'
|
|
|
+import { showToast } from '../../utils/toast'
|
|
|
import ContentCard from './components/content-card.vue'
|
|
|
import PhoneConfirmDialog from './components/PhoneConfirmDialog.vue'
|
|
|
import PhoneEditDialog from './components/PhoneEditDialog.vue'
|
|
@@ -53,7 +54,12 @@ const {
|
|
|
})
|
|
|
|
|
|
function contactMeEvent(phone) {
|
|
|
+ const phonePass = checkPhonePass(phone)
|
|
|
+ if (!phonePass) {
|
|
|
+ return showToast('联系电话格式不正确')
|
|
|
+ }
|
|
|
configInfo.phone = phone
|
|
|
+ changePhoneDialog.phoneNumber = phone
|
|
|
contactMe()
|
|
|
}
|
|
|
|