From a9227419b27e70df31e39f596343d7291c99f963 Mon Sep 17 00:00:00 2001 From: xjs Date: Thu, 11 Jun 2026 13:46:23 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E5=A2=9E=E5=8A=A0=E6=8B=9B=E7=94=9F?= =?UTF-8?q?=E6=95=B0=E6=8D=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../components/SchoolIntroduce.vue | 106 ++++++++++++------ src/pages/index/index.vue | 25 ++++- 2 files changed, 95 insertions(+), 36 deletions(-) diff --git a/src/pages-sub/information/components/SchoolIntroduce.vue b/src/pages-sub/information/components/SchoolIntroduce.vue index c09dbbb..08d5e5d 100644 --- a/src/pages-sub/information/components/SchoolIntroduce.vue +++ b/src/pages-sub/information/components/SchoolIntroduce.vue @@ -11,7 +11,15 @@ const props = defineProps({ schoolNature: "", overview: "", admissionOfficePhone: "", - officialWebsite: "" + officialWebsite: "", + childdto:{ + planDataOutput:{ + admissionCount:0, + planCount:0, + scoreLine:0, + year:"" + } + } }) } }) @@ -21,40 +29,40 @@ const officePhoneList = computed(() => { }) const contacts = computed(() => { - - const phone = officePhoneList.value.length > 0 ? officePhoneList.value[0]["phone"] : '暂无电话' + + const phone = officePhoneList.value.length > 0 ? officePhoneList.value[0]["phone"] : '暂无电话' return [ - { - title: '招办电话', msg: phone, type: 'phone', typeLabel: '拨打', eventClick: () => { - visible.value = true; - renderType.value = 'phone'; + { + title: '招办电话', msg: phone, type: 'phone', typeLabel: '拨打', eventClick: () => { + visible.value = true; + renderType.value = 'phone'; + } + }, + { + title: '学校官网', msg: props.schoolDetail.officialWebsite, type: 'view', typeLabel: '复制', eventClick: () => { + uni.setClipboardData({ + data: props.schoolDetail.officialWebsite + }) + } + }, + { + title: '就读地址', msg: props.schoolDetail.address, type: 'navigation', typeLabel: '导航', eventClick: () => { + uni.openLocation({ + longitude: Number.parseFloat(props.schoolDetail.lng), + latitude: Number.parseFloat(props.schoolDetail.lat), + address: props.schoolDetail.address, + name: props.schoolDetail.address, + scale: 5 + }) + } + }, + { + title: '公众号', msg: props.schoolDetail.schoolName, type: 'gzh', typeLabel: '查看', eventClick: () => { + visible.value = true; + renderType.value = 'gzh'; + } } - }, - { - title: '学校官网', msg: props.schoolDetail.officialWebsite, type: 'view', typeLabel: '复制', eventClick: () => { - uni.setClipboardData({ - data: props.schoolDetail.officialWebsite - }) - } - }, - { - title: '就读地址', msg: props.schoolDetail.address, type: 'navigation', typeLabel: '导航', eventClick: () => { - uni.openLocation({ - longitude: Number.parseFloat(props.schoolDetail.lng), - latitude: Number.parseFloat(props.schoolDetail.lat), - address: props.schoolDetail.address, - name: props.schoolDetail.address, - scale: 5 - }) - } - }, - { - title: '公众号', msg: props.schoolDetail.schoolName, type: 'gzh', typeLabel: '查看', eventClick: () => { - visible.value = true; - renderType.value = 'gzh'; - } - } -] + ] }) const visible = ref(false) @@ -72,10 +80,42 @@ const makePhoneCall = (val: string) => {