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(() => {