diff --git a/app.vue b/app.vue index ffee78d..63cea47 100644 --- a/app.vue +++ b/app.vue @@ -16,10 +16,10 @@ import { useI18n } from 'vue-i18n' const { locale } = useI18n() const router = useRouter() useSeoMeta({ - title: '信阳第五人民医院', - ogTitle: '信阳第五人民医院', - description: '信阳第五人民医院', - ogDescription: '信阳第五人民医院', + title: '信阳市第五人民医院', + ogTitle: '信阳市第五人民医院', + description: '信阳市第五人民医院', + ogDescription: '信阳市第五人民医院', ogImage: 'https://example.com/image.png', twitterCard: 'summary_large_image', }) diff --git a/assets/css/common.scss b/assets/css/common.scss index e8f31ad..296c7ae 100644 --- a/assets/css/common.scss +++ b/assets/css/common.scss @@ -38,3 +38,12 @@ animation-delay: 2.5s; animation-duration: 0.1s; } +//保留一行 +.one-line { + white-space: nowrap; /* 禁止换行 */ + overflow: hidden; /* 隐藏溢出内容 */ + text-overflow: ellipsis; /* 溢出显示省略号(可选) */ + display: inline-block; /* 使块元素能应用省略号 */ + max-width: 100%; /* 配合省略号的宽度限制 */ + } + diff --git a/assets/css/index.css b/assets/css/index.css index 8ffa17f..fbc9ee8 100644 --- a/assets/css/index.css +++ b/assets/css/index.css @@ -1097,7 +1097,7 @@ } .image_12 { - width: 680px; + width: 683px; height: 378px; } @@ -1575,7 +1575,7 @@ .group_26 { background-color: rgba(249, 249, 249, 1); height: 44px; - width: 410px; + width: 352px; position: relative; margin: 22px 0 24px 30px; } @@ -1768,7 +1768,7 @@ .box_26 { background-color: rgba(255, 255, 255, 1); height: 348px; - width: 100%; + width: 542px; margin-top: 16px; margin-left: -20px; } @@ -1841,7 +1841,6 @@ .group_29 { background-color: rgba(26, 172, 162, 1); width: 100%; - height: 309px; } .text-wrapper_57 { @@ -1948,7 +1947,7 @@ .block_4 { background-color: rgba(255, 255, 255, 1); - width: 1200px; + width: 78%; height: 1px; margin: 22px 0 0 358px; } @@ -1956,6 +1955,7 @@ @media screen and (max-width: 1440px) { .block_4 { margin: 38px 0 0 47px; + width: 94%; } } @@ -1980,14 +1980,11 @@ .text_75 { width: 258px; - height: 16px; - overflow-wrap: break-word; color: rgba(255, 255, 255, 1); font-size: 16px; font-family: Microsoft YaHei-Regular; font-weight: NaN; text-align: left; - white-space: nowrap; line-height: 16px; } @@ -2007,15 +2004,13 @@ .text_77 { width: 228px; - height: 16px; overflow-wrap: break-word; color: rgba(255, 255, 255, 1); font-size: 16px; font-family: Microsoft YaHei-Regular; font-weight: NaN; text-align: left; - white-space: nowrap; - line-height: 16px; + line-height: 20px; margin-top: 25px; } diff --git a/assets/css/list.css b/assets/css/list.css index c0f2fa6..7b2df95 100644 --- a/assets/css/list.css +++ b/assets/css/list.css @@ -396,14 +396,12 @@ } .text_15 { - width: 537px; overflow-wrap: break-word; color: rgba(50, 50, 50, 1); font-size: 20px; font-family: Microsoft YaHei-Regular; font-weight: NaN; text-align: left; - line-height: 18px; } .text_16 { diff --git a/components/AppFooter.vue b/components/AppFooter.vue index dfbc55d..12a1cb9 100644 --- a/components/AppFooter.vue +++ b/components/AppFooter.vue @@ -1,80 +1,68 @@ @@ -52,7 +111,7 @@ const store = useStore() const route = useRoute() const isMenuOpen = ref(false) const { locale } = useI18n() -const isLinl = ref(0) +const isLinl = ref('/') import $api from '@/service/webRequest' // 手机端相关变量和函数 const isMobile = ref(false) @@ -89,32 +148,20 @@ const selectMenuItem = (index: number) => { window.location.href = `/about` } } -const isOpneLinl = (item: any) => { - console.log(item); - isLinl.value = item.id; - sessionStorage.setItem('group_id', item.id) - mobileMenuOpen.value = false - router.push(`/list/${item.id}`) -} -const openLinl = (item) => { - isLinl.value = item; - mobileMenuOpen.value = false - if (item == 0) { - sessionStorage.setItem('group_id', '0') - router.push('/'); - } else { - sessionStorage.setItem('group_id', '-1') - //在当前页面打开 - window.location.href = `/about` - } -} + +watch(route, (newRoute) => { + console.log(newRoute); + isLinl.value = newRoute.path +}, { immediate: true }) // 监听窗口大小变化 onMounted(() => { - if (route.path == '/about') { - isLinl.value = -1 - } else { - isLinl.value = Number(sessionStorage.getItem('group_id')) - } + //console.log(route); + + // if (route.path == '/about') { + // isLinl.value = -1 + // } else { + // isLinl.value = Number(sessionStorage.getItem('group_id')) + // } checkIfMobile() window.addEventListener('resize', checkIfMobile) diff --git a/nuxt.config.ts b/nuxt.config.ts index 51275fa..c6aa0a1 100644 --- a/nuxt.config.ts +++ b/nuxt.config.ts @@ -30,7 +30,7 @@ export default defineNuxtConfig({ server: { proxy: { '/api': { - target: "http://192.168.10.140/", + target: "http://xysdwrmyy.cn/", changeOrigin: true, rewrite: (path) => path.replace(/^\/api/, ''), } diff --git a/package-lock.json b/package-lock.json index 9d68093..fdb1f30 100644 --- a/package-lock.json +++ b/package-lock.json @@ -15,6 +15,7 @@ "nuxt-icons": "^3.2.1", "pinia": "^2.1.7", "swiper": "^11.2.5", + "tlbs-map-vue": "^1.3.1", "vue-baidu-map-3x": "^1.0.40", "vue-i18n": "^9.8.0", "vue-swiper-animate": "^1.0.0" @@ -7491,7 +7492,6 @@ "version": "4.2.11", "resolved": "https://registry.npmjs.org/graceful-fs/-/graceful-fs-4.2.11.tgz", "integrity": "sha512-RbJ5/jmFcNNCcDV5o9eTnBLJ/HszWV0P73bc+Ff4nS/rJj+YaS6IGyiOL0VoBYX+l1Wrl3k63h/KrH+nhJ0XvQ==", - "dev": true, "license": "ISC" }, "node_modules/graphemer": { @@ -8426,7 +8426,6 @@ "version": "6.1.0", "resolved": "https://registry.npmjs.org/jsonfile/-/jsonfile-6.1.0.tgz", "integrity": "sha512-5dgndWOriYSm5cnYaJNhalLNDKOqFwyDB/rr1E9ZsGciGvKPs8R2xYGCacuf3z6K1YKDz182fd+fY3cn3pMqXQ==", - "dev": true, "license": "MIT", "dependencies": { "universalify": "^2.0.0" @@ -12353,6 +12352,43 @@ "url": "https://github.com/sponsors/jonschlinkert" } }, + "node_modules/tlbs-map-vue": { + "version": "1.3.1", + "resolved": "https://registry.npmjs.org/tlbs-map-vue/-/tlbs-map-vue-1.3.1.tgz", + "integrity": "sha512-oh239gdtis/b6VInlmFuxP3fnwssEG4Hy5sTzLyiJ4bTeqR8pB7MPzl81AqaL+fC4W7aFsSkofbBGmgh4rD/4w==", + "hasInstallScript": true, + "license": "MIT", + "dependencies": { + "fs-extra": "^10.1.0", + "vue-demi": "^0.14.6" + }, + "engines": { + "node": ">=16.0.0" + }, + "peerDependencies": { + "@vue/composition-api": "^1.4.9", + "vue": "^2.6.0 || >=3.0.0" + }, + "peerDependenciesMeta": { + "@vue/composition-api": { + "optional": true + } + } + }, + "node_modules/tlbs-map-vue/node_modules/fs-extra": { + "version": "10.1.0", + "resolved": "https://registry.npmjs.org/fs-extra/-/fs-extra-10.1.0.tgz", + "integrity": "sha512-oRXApq54ETRj4eMiFzGnHWGy+zo5raudjuxN0b8H7s/RU2oW0Wvsx9O0ACRN/kRq9E8Vu/ReskGB5o3ji+FzHQ==", + "license": "MIT", + "dependencies": { + "graceful-fs": "^4.2.0", + "jsonfile": "^6.0.1", + "universalify": "^2.0.0" + }, + "engines": { + "node": ">=12" + } + }, "node_modules/to-regex-range": { "version": "5.0.1", "resolved": "https://registry.npmjs.org/to-regex-range/-/to-regex-range-5.0.1.tgz", @@ -12663,7 +12699,6 @@ "version": "2.0.1", "resolved": "https://registry.npmjs.org/universalify/-/universalify-2.0.1.tgz", "integrity": "sha512-gptHNQghINnc/vTGIk0SOFGFNXw7JVrlRUtConJRlvaw6DuX0wO5Jeko9sWrMBhh+PsYAZ7oXAiOnf/UKogyiw==", - "dev": true, "license": "MIT", "engines": { "node": ">= 10.0.0" diff --git a/package.json b/package.json index c5fc94e..e339193 100644 --- a/package.json +++ b/package.json @@ -36,6 +36,7 @@ "nuxt-icons": "^3.2.1", "pinia": "^2.1.7", "swiper": "^11.2.5", + "tlbs-map-vue": "^1.3.1", "vue-baidu-map-3x": "^1.0.40", "vue-i18n": "^9.8.0", "vue-swiper-animate": "^1.0.0" diff --git a/pages/about.vue b/pages/about.vue index 675a110..3a657e8 100644 --- a/pages/about.vue +++ b/pages/about.vue @@ -3,8 +3,7 @@
- + 您的位置:首页>系统公告
联系我们
@@ -14,33 +13,35 @@
- +
医院介绍
- {{ hospitalInfo.description }} + {{ hospitalInfo.description }}
- +
医院位置
-
- - - - -
- 信阳第五人民医院 -
-
-
+
+ + + + + +
@@ -48,15 +49,27 @@ diff --git a/pages/phone_search/[id].vue b/pages/phone_search/[id].vue new file mode 100644 index 0000000..bee8ddd --- /dev/null +++ b/pages/phone_search/[id].vue @@ -0,0 +1,173 @@ + + + + + diff --git a/pages/search/[id].vue b/pages/search/[id].vue new file mode 100644 index 0000000..e0bdea5 --- /dev/null +++ b/pages/search/[id].vue @@ -0,0 +1,121 @@ + + + + diff --git a/service/request.ts b/service/request.ts index 51d0659..295e4e7 100644 --- a/service/request.ts +++ b/service/request.ts @@ -3,12 +3,13 @@ import { handleError } from './handleError' function createRequestInstance(getServerUrl: () => string): AxiosInstance { //获取域名 - const serverUrl = 'http://admin.xysdwrmyy.cn'; + const serverUrl = 'https://xysdwrmyy.cn'; + //const serverUrl = '/api/'; //console.log(serverUrl); const instance = axios.create({ timeout: 1000 * 60 * 5, // 超时时间 withCredentials: true, // 允许跨域携带cookie - baseURL: serverUrl, // 请求地址 + baseURL:serverUrl, // 请求地址 }) instance.interceptors.response.use(