diff --git a/busan/components/FastConsultFocus.vue b/busan/components/FastConsultFocus.vue index a6c64a9..cbfc315 100644 --- a/busan/components/FastConsultFocus.vue +++ b/busan/components/FastConsultFocus.vue @@ -19,12 +19,12 @@ :key="idx" href="#consult-section" class="focus-card" - :title="`${regionDong} ${item.title} 상담 신청`" + :title="`${item.title} 상담 신청`" >
{ { tag: '밀착 피드백', title: `${dong}초등 ${sub}과외 - 숙제검사`, - desc: '매일 1:1 오답 점검과 꼼꼼한 피드백 피드백', + desc: '매일 1:1 오답 점검과 꼼꼼한 피드백 클리닉', image: '/images/focus/elem-3-homework.svg' }, { diff --git a/busan/components/InternalLinkHub.vue b/busan/components/InternalLinkHub.vue new file mode 100644 index 0000000..3d32d91 --- /dev/null +++ b/busan/components/InternalLinkHub.vue @@ -0,0 +1,237 @@ + + + + + diff --git a/busan/components/NearbySchools.vue b/busan/components/NearbySchools.vue index a661e59..e884e05 100644 --- a/busan/components/NearbySchools.vue +++ b/busan/components/NearbySchools.vue @@ -8,18 +8,18 @@

- -
+ +
- {{ regionDong }} 인근 주요 고등학교 내신 대비 현황 + {{ regionDong }} 인근 주요 {{ targetSchoolType }} 내신 대비 현황 NEIS 학교정보 연동
@@ -172,6 +172,34 @@ const nearbyHighSchools = computed(() => { } return [] }) + +// 학년에 맞춘 학교 목록 (중학생인 경우 중학교 명칭 자동 매칭 및 보완) +const displaySchools = computed(() => { + const highList = nearbyHighSchools.value + if (isMiddle.value) { + const middleList = [] + const cleanDong = (props.regionDong || '').replace(/(동|읍|면|리)$/, '') + if (cleanDong) { + middleList.push({ + code: 'mid-dong-1', + name: `${cleanDong}중학교`, + type: '공립' + }) + } + highList.forEach((sch, idx) => { + const midName = sch.name.replace(/여자고등학교$/, '여자중학교').replace(/고등학교$/, '중학교') + if (!middleList.some(m => m.name === midName)) { + middleList.push({ + code: `mid-${sch.code || idx}`, + name: midName, + type: sch.foundation ? `${sch.foundation}` : '중학' + }) + } + }) + return middleList.slice(0, 8) + } + return highList +}) diff --git a/daegu/components/NearbySchools.vue b/daegu/components/NearbySchools.vue index a661e59..e884e05 100644 --- a/daegu/components/NearbySchools.vue +++ b/daegu/components/NearbySchools.vue @@ -8,18 +8,18 @@

- -
+ +
- {{ regionDong }} 인근 주요 고등학교 내신 대비 현황 + {{ regionDong }} 인근 주요 {{ targetSchoolType }} 내신 대비 현황 NEIS 학교정보 연동
@@ -172,6 +172,34 @@ const nearbyHighSchools = computed(() => { } return [] }) + +// 학년에 맞춘 학교 목록 (중학생인 경우 중학교 명칭 자동 매칭 및 보완) +const displaySchools = computed(() => { + const highList = nearbyHighSchools.value + if (isMiddle.value) { + const middleList = [] + const cleanDong = (props.regionDong || '').replace(/(동|읍|면|리)$/, '') + if (cleanDong) { + middleList.push({ + code: 'mid-dong-1', + name: `${cleanDong}중학교`, + type: '공립' + }) + } + highList.forEach((sch, idx) => { + const midName = sch.name.replace(/여자고등학교$/, '여자중학교').replace(/고등학교$/, '중학교') + if (!middleList.some(m => m.name === midName)) { + middleList.push({ + code: `mid-${sch.code || idx}`, + name: midName, + type: sch.foundation ? `${sch.foundation}` : '중학' + }) + } + }) + return middleList.slice(0, 8) + } + return highList +}) diff --git a/gwangju/components/NearbySchools.vue b/gwangju/components/NearbySchools.vue index a661e59..e884e05 100644 --- a/gwangju/components/NearbySchools.vue +++ b/gwangju/components/NearbySchools.vue @@ -8,18 +8,18 @@

- -
+ +
- {{ regionDong }} 인근 주요 고등학교 내신 대비 현황 + {{ regionDong }} 인근 주요 {{ targetSchoolType }} 내신 대비 현황 NEIS 학교정보 연동
@@ -172,6 +172,34 @@ const nearbyHighSchools = computed(() => { } return [] }) + +// 학년에 맞춘 학교 목록 (중학생인 경우 중학교 명칭 자동 매칭 및 보완) +const displaySchools = computed(() => { + const highList = nearbyHighSchools.value + if (isMiddle.value) { + const middleList = [] + const cleanDong = (props.regionDong || '').replace(/(동|읍|면|리)$/, '') + if (cleanDong) { + middleList.push({ + code: 'mid-dong-1', + name: `${cleanDong}중학교`, + type: '공립' + }) + } + highList.forEach((sch, idx) => { + const midName = sch.name.replace(/여자고등학교$/, '여자중학교').replace(/고등학교$/, '중학교') + if (!middleList.some(m => m.name === midName)) { + middleList.push({ + code: `mid-${sch.code || idx}`, + name: midName, + type: sch.foundation ? `${sch.foundation}` : '중학' + }) + } + }) + return middleList.slice(0, 8) + } + return highList +}) diff --git a/gyeonggi/components/NearbySchools.vue b/gyeonggi/components/NearbySchools.vue index ed62423..e884e05 100644 --- a/gyeonggi/components/NearbySchools.vue +++ b/gyeonggi/components/NearbySchools.vue @@ -8,18 +8,18 @@

- -
+ +
- {{ regionDong }} 인근 주요 고등학교 내신 대비 현황 + {{ regionDong }} 인근 주요 {{ targetSchoolType }} 내신 대비 현황 NEIS 학교정보 연동
@@ -116,7 +116,6 @@ diff --git a/incheon/components/NearbySchools.vue b/incheon/components/NearbySchools.vue index a661e59..e884e05 100644 --- a/incheon/components/NearbySchools.vue +++ b/incheon/components/NearbySchools.vue @@ -8,18 +8,18 @@

- -
+ +
- {{ regionDong }} 인근 주요 고등학교 내신 대비 현황 + {{ regionDong }} 인근 주요 {{ targetSchoolType }} 내신 대비 현황 NEIS 학교정보 연동
@@ -172,6 +172,34 @@ const nearbyHighSchools = computed(() => { } return [] }) + +// 학년에 맞춘 학교 목록 (중학생인 경우 중학교 명칭 자동 매칭 및 보완) +const displaySchools = computed(() => { + const highList = nearbyHighSchools.value + if (isMiddle.value) { + const middleList = [] + const cleanDong = (props.regionDong || '').replace(/(동|읍|면|리)$/, '') + if (cleanDong) { + middleList.push({ + code: 'mid-dong-1', + name: `${cleanDong}중학교`, + type: '공립' + }) + } + highList.forEach((sch, idx) => { + const midName = sch.name.replace(/여자고등학교$/, '여자중학교').replace(/고등학교$/, '중학교') + if (!middleList.some(m => m.name === midName)) { + middleList.push({ + code: `mid-${sch.code || idx}`, + name: midName, + type: sch.foundation ? `${sch.foundation}` : '중학' + }) + } + }) + return middleList.slice(0, 8) + } + return highList +}) diff --git a/seoul/components/NearbySchools.vue b/seoul/components/NearbySchools.vue index a661e59..e884e05 100644 --- a/seoul/components/NearbySchools.vue +++ b/seoul/components/NearbySchools.vue @@ -8,18 +8,18 @@

- -
+ +
- {{ regionDong }} 인근 주요 고등학교 내신 대비 현황 + {{ regionDong }} 인근 주요 {{ targetSchoolType }} 내신 대비 현황 NEIS 학교정보 연동
@@ -172,6 +172,34 @@ const nearbyHighSchools = computed(() => { } return [] }) + +// 학년에 맞춘 학교 목록 (중학생인 경우 중학교 명칭 자동 매칭 및 보완) +const displaySchools = computed(() => { + const highList = nearbyHighSchools.value + if (isMiddle.value) { + const middleList = [] + const cleanDong = (props.regionDong || '').replace(/(동|읍|면|리)$/, '') + if (cleanDong) { + middleList.push({ + code: 'mid-dong-1', + name: `${cleanDong}중학교`, + type: '공립' + }) + } + highList.forEach((sch, idx) => { + const midName = sch.name.replace(/여자고등학교$/, '여자중학교').replace(/고등학교$/, '중학교') + if (!middleList.some(m => m.name === midName)) { + middleList.push({ + code: `mid-${sch.code || idx}`, + name: midName, + type: sch.foundation ? `${sch.foundation}` : '중학' + }) + } + }) + return middleList.slice(0, 8) + } + return highList +}) diff --git a/site1/components/NearbySchools.vue b/site1/components/NearbySchools.vue index a661e59..e884e05 100644 --- a/site1/components/NearbySchools.vue +++ b/site1/components/NearbySchools.vue @@ -8,18 +8,18 @@

- -
+ +
- {{ regionDong }} 인근 주요 고등학교 내신 대비 현황 + {{ regionDong }} 인근 주요 {{ targetSchoolType }} 내신 대비 현황 NEIS 학교정보 연동
@@ -172,6 +172,34 @@ const nearbyHighSchools = computed(() => { } return [] }) + +// 학년에 맞춘 학교 목록 (중학생인 경우 중학교 명칭 자동 매칭 및 보완) +const displaySchools = computed(() => { + const highList = nearbyHighSchools.value + if (isMiddle.value) { + const middleList = [] + const cleanDong = (props.regionDong || '').replace(/(동|읍|면|리)$/, '') + if (cleanDong) { + middleList.push({ + code: 'mid-dong-1', + name: `${cleanDong}중학교`, + type: '공립' + }) + } + highList.forEach((sch, idx) => { + const midName = sch.name.replace(/여자고등학교$/, '여자중학교').replace(/고등학교$/, '중학교') + if (!middleList.some(m => m.name === midName)) { + middleList.push({ + code: `mid-${sch.code || idx}`, + name: midName, + type: sch.foundation ? `${sch.foundation}` : '중학' + }) + } + }) + return middleList.slice(0, 8) + } + return highList +}) diff --git a/ulsan/components/NearbySchools.vue b/ulsan/components/NearbySchools.vue index a661e59..e884e05 100644 --- a/ulsan/components/NearbySchools.vue +++ b/ulsan/components/NearbySchools.vue @@ -8,18 +8,18 @@

- -
+ +
- {{ regionDong }} 인근 주요 고등학교 내신 대비 현황 + {{ regionDong }} 인근 주요 {{ targetSchoolType }} 내신 대비 현황 NEIS 학교정보 연동
@@ -172,6 +172,34 @@ const nearbyHighSchools = computed(() => { } return [] }) + +// 학년에 맞춘 학교 목록 (중학생인 경우 중학교 명칭 자동 매칭 및 보완) +const displaySchools = computed(() => { + const highList = nearbyHighSchools.value + if (isMiddle.value) { + const middleList = [] + const cleanDong = (props.regionDong || '').replace(/(동|읍|면|리)$/, '') + if (cleanDong) { + middleList.push({ + code: 'mid-dong-1', + name: `${cleanDong}중학교`, + type: '공립' + }) + } + highList.forEach((sch, idx) => { + const midName = sch.name.replace(/여자고등학교$/, '여자중학교').replace(/고등학교$/, '중학교') + if (!middleList.some(m => m.name === midName)) { + middleList.push({ + code: `mid-${sch.code || idx}`, + name: midName, + type: sch.foundation ? `${sch.foundation}` : '중학' + }) + } + }) + return middleList.slice(0, 8) + } + return highList +})