From 3e2b3a9fdf8bda5b04bd4704703cb06ea44b24c1 Mon Sep 17 00:00:00 2001 From: xjs Date: Tue, 16 Dec 2025 15:49:48 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E5=A2=9E=E5=8A=A0=E7=94=B5=E8=AF=9D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../components/SchoolIntroduce.vue | 23 ++++++++++++------- src/pages-sub/me/evaluation.vue | 2 +- src/pages-sub/me/starSchool.vue | 2 +- src/pages-sub/me/wishlist.vue | 2 +- 4 files changed, 18 insertions(+), 11 deletions(-) diff --git a/src/pages-sub/information/components/SchoolIntroduce.vue b/src/pages-sub/information/components/SchoolIntroduce.vue index b860097..c2304b9 100644 --- a/src/pages-sub/information/components/SchoolIntroduce.vue +++ b/src/pages-sub/information/components/SchoolIntroduce.vue @@ -16,12 +16,18 @@ const props = defineProps({ } }) -const contacts = computed(() => [ +const officePhoneList = computed(() => { + return JSON.parse(props.schoolDetail.admissionOfficePhone || '[]') +}) + +const contacts = computed(() => { + + const phone = officePhoneList.value.length > 0 ? officePhoneList.value[0]["phone"] : '暂无电话' + return [ { - title: '招办电话', msg: props.schoolDetail.admissionOfficePhone, type: 'phone', typeLabel: '拨打', eventClick: () => { - // visible.value = true; - // renderType.value = 'phone' - makePhoneCall(props.schoolDetail.admissionOfficePhone) + title: '招办电话', msg: phone, type: 'phone', typeLabel: '拨打', eventClick: () => { + visible.value = true; + renderType.value = 'phone'; } }, { @@ -48,7 +54,8 @@ const contacts = computed(() => [ renderType.value = 'gzh'; } } -]) +] +}) const visible = ref(false) @@ -86,8 +93,8 @@ const makePhoneCall = (val: string) => { - 4000616985 + v-for="value in officePhoneList" :key="value" @click="makePhoneCall(value.phone)"> + {{ value.name }}:{{ value.phone }} 取消 diff --git a/src/pages-sub/me/evaluation.vue b/src/pages-sub/me/evaluation.vue index e7b8e4e..c6c7348 100644 --- a/src/pages-sub/me/evaluation.vue +++ b/src/pages-sub/me/evaluation.vue @@ -22,7 +22,7 @@ onShow(() => {