From 7ae9cc1ca6c2c33097e117b7d544ac886d0841a0 Mon Sep 17 00:00:00 2001 From: tianshixing <523139626@qq.com> Date: Thu, 13 Mar 2025 10:14:57 +0800 Subject: [PATCH] =?UTF-8?q?=E8=A6=86=E7=9B=96=E6=96=87=E4=BB=B6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .env | 14 +++---- .env.production | 2 +- .env.staging | 2 +- assets/style/app.scss | 22 +---------- assets/style/theme.scss | 6 --- components/cms/ArticleList.vue | 4 +- components/cms/ArticlePreview.vue | 34 ++-------------- components/cms/SpecialColumn.vue | 55 +++++++------------------- components/common/Pagination.vue | 14 ++----- components/common/PopUpSelect.vue | 32 +-------------- components/common/SegmentedFilter.vue | 19 --------- components/home/WebsiteNav.vue | 21 ++-------- components/layout/SearchInput.vue | 2 +- components/layout/WebFooter.vue | 11 +----- components/layout/WebHeader.vue | 45 +++------------------ kit.json | 27 +++++++++++++ layouts/category.vue | 20 ++++------ layouts/default.vue | 7 +--- nuxt.config.ts | 25 +++++------- package-lock.json | 39 ++---------------- package.json | 2 - pages/article/[articleUid].vue | 28 +------------ pages/index.vue | 36 ++++++++--------- public/favicon.ico | Bin 4286 -> 7949 bytes public/favicon1.ico | Bin 0 -> 4286 bytes public/icons/cms/iconfont.js | 2 +- public/images/background.jpg | Bin 7243 -> 1083 bytes public/images/background1.jpg | Bin 0 -> 7243 bytes utils/util.js | 4 +- 29 files changed, 114 insertions(+), 359 deletions(-) create mode 100644 kit.json create mode 100644 public/favicon1.ico create mode 100644 public/images/background1.jpg diff --git a/.env b/.env index 8538a58..850c0b2 100644 --- a/.env +++ b/.env @@ -2,23 +2,23 @@ VITE_API_PREFIX = '/api' # 接口地址,可在其它环境配置文件进行覆盖 -VITE_API_URL = 'http://localhost:10010' +VITE_API_URL = 'http://82.157.20.36:10020' # 静态资源地址 -VITE_RESOURCE_PREFIX = 'http://localhost:10010/resource' +VITE_RESOURCE_PREFIX = '/resource' # 站点配置 # - 站点标题 -VITE_SITE_TITLE = '天津市南开区智慧云平台' +VITE_SITE_TITLE = '天津市南开区民政局' # - 站点副标题 VITE_SITE_SUB_TITLE = '' # - 主办单位 VITE_SITE_ORGANIZATION = '天津市南开区民政局' # - 备案号 -VITE_SITE_ICP = '津ICP备2021010010号-3' +VITE_SITE_ICP = '津ICP备13005196号-1' # - 地址 -VITE_SITE_ADDRESS = '天津市南开区' +VITE_SITE_ADDRESS = '天津市南开区红旗南路263号' # SEO配置 -VITE_SEO_KEYWORDS = '天津市南开区民政局' -VITE_SEO_DESCRIPTION = '天津市南开区民政局' +VITE_SEO_KEYWORDS = '天津市,民政局,南开区民政局' +VITE_SEO_DESCRIPTION = '天津市、民政局、南开区民政局' diff --git a/.env.production b/.env.production index b5107ee..0a86d64 100644 --- a/.env.production +++ b/.env.production @@ -1,4 +1,4 @@ VITE_APP_ENV = 'production' # 接口地址 -VITE_API_URL = 'http://localhost:10010/' +VITE_API_URL = 'http://82.157.20.36:10020/' diff --git a/.env.staging b/.env.staging index 5ebd73a..50b2a7b 100644 --- a/.env.staging +++ b/.env.staging @@ -1,4 +1,4 @@ VITE_APP_ENV = 'staging' # 接口地址 -VITE_API_URL = 'http://localhost:10010/' +VITE_API_URL = 'http://82.157.20.36:10020/' diff --git a/assets/style/app.scss b/assets/style/app.scss index 7b48b8b..bb5e5ad 100644 --- a/assets/style/app.scss +++ b/assets/style/app.scss @@ -1,4 +1,3 @@ -@import "variables"; html body { padding: 0; margin: 0; @@ -8,7 +7,7 @@ html body { font-family: var(--font-family-base); min-width: var(--body-min-width); .content-wrap { - max-width: var(--page-width); + width: var(--page-width); margin: 0 auto; box-sizing: border-box; } @@ -63,22 +62,3 @@ html body { font-weight: bold; } -// 首页内容宽度 -@media (max-width: $--mobile-max-width) { - html body { - --page-width: 100%; - --body-min-width: 100%; - } -} - -// 移动端 -@media (max-width: $--mobile-max-width) { - html body { - // 边距 - --gap: 15px; - --gap-mini: 8px; - --gap-midele: 20px; - --gap-large: 25px; - --gap-huge: 30px; - } -} \ No newline at end of file diff --git a/assets/style/theme.scss b/assets/style/theme.scss index 47b9fc3..29eea82 100644 --- a/assets/style/theme.scss +++ b/assets/style/theme.scss @@ -31,10 +31,4 @@ body { // 覆盖element-plus的默认字体大小 --el-font-size-base: var(--font-size-base); - // 边距 - --gap: 20px; - --gap-mini: 10px; - --gap-midele: 30px; - --gap-large: 40px; - --gap-huge: 50px; } diff --git a/components/cms/ArticleList.vue b/components/cms/ArticleList.vue index fc06f92..164264c 100644 --- a/components/cms/ArticleList.vue +++ b/components/cms/ArticleList.vue @@ -3,7 +3,7 @@
  • - {{ article.updatedAt }} + {{ article.updatedAt }}
  • @@ -56,7 +56,6 @@ ul.article-list { padding: 15px 10px 15px 25px; color: var(--font-color); text-decoration: none; - gap: 20px; &:hover { color: var(--primary-color); } @@ -78,6 +77,7 @@ ul.article-list { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; + padding-right: 20px; // 关键字 :deep(em) { font-style: normal; diff --git a/components/cms/ArticlePreview.vue b/components/cms/ArticlePreview.vue index f3b7ded..4176cbc 100644 --- a/components/cms/ArticlePreview.vue +++ b/components/cms/ArticlePreview.vue @@ -27,7 +27,6 @@ export default { diff --git a/components/cms/SpecialColumn.vue b/components/cms/SpecialColumn.vue index 8816df6..a2fd333 100644 --- a/components/cms/SpecialColumn.vue +++ b/components/cms/SpecialColumn.vue @@ -10,7 +10,7 @@ class="swiper-container" ref="swiper" :speed="500" - :slidesPerView="numberColumns" + :slidesPerView="4" :loop="true" :autoplay="{ delay: 1500, @@ -53,10 +53,7 @@ export default { computed: { // 获取图标 getIcons () { - if ( - this.icons.length < this.numberColumns + 1 || - this.icons.length > this.numberColumns + 3 - ) { + if (this.icons.length < 5 || this.icons.length > 7) { return this.icons } return [...this.icons, ...this.icons] @@ -64,7 +61,6 @@ export default { }, data() { return { - numberColumns: 4, modules: [] } }, @@ -72,45 +68,20 @@ export default { getImageURL }, created () { - if (this.$device.isMobile) { - this.numberColumns = 2 - } this.modules = [Autoplay] } } \ No newline at end of file + diff --git a/components/common/Pagination.vue b/components/common/Pagination.vue index 2625ad9..f7dd746 100644 --- a/components/common/Pagination.vue +++ b/components/common/Pagination.vue @@ -2,7 +2,7 @@