From fc639d546b92664e49084f14622c8aec74f29f7f Mon Sep 17 00:00:00 2001 From: hejin Date: Sat, 19 Jul 2025 11:54:56 +0800 Subject: [PATCH] =?UTF-8?q?=E6=8E=A5=E5=8F=A3=E5=AF=B9=E6=8E=A5=EF=BC=9A?= =?UTF-8?q?=20=20=20=20=20=20=20=E5=AF=B9=E6=8E=A5=E5=AE=8C=E6=88=90?= =?UTF-8?q?=E6=96=B0=E9=97=BB=E5=88=86=E9=A1=B5=E5=9F=BA=E7=A1=80=E6=8E=A5?= =?UTF-8?q?=E5=8F=A3=20=20=20=20=20=20=20=E5=AF=B9=E6=8E=A5=E5=AE=8C?= =?UTF-8?q?=E6=88=90=E4=BA=A7=E5=93=81=E9=A1=B5=E9=9D=A2=E5=9F=BA=E7=A1=80?= =?UTF-8?q?=E6=8E=A5=E5=8F=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- env.js | 6 ++- locales/en.json | 4 +- locales/zh.json | 4 +- nuxt.config.js | 7 ++++ pages/index.vue | 13 ++++-- pages/news.vue | 1 + pages/news/_id.vue | 77 +++++++++++++++++++++++++++------- pages/news/index.vue | 36 +++++++++++----- pages/products.vue | 2 +- pages/products/_id.vue | 91 +++++++++++++++++++--------------------- pages/products/index.vue | 3 +- 11 files changed, 157 insertions(+), 87 deletions(-) diff --git a/env.js b/env.js index c1a6939..58fc6dd 100644 --- a/env.js +++ b/env.js @@ -2,12 +2,14 @@ module.exports = { // 测试环境 接口请求地址 (http)或(https)://www.a.com(换成你的域名)/api test: { MODE: 'test', - VUE_APP_API_URL: 'http://122.51.230.86:8099/' + // VUE_APP_API_URL: 'http://122.51.230.86:8099/' + VUE_APP_API_URL: '/dev' }, // 开发环境 接口请求地址 (http)或(https)://www.a.com(换成你的域名)/api dev: { MODE: 'dev', - VUE_APP_API_URL: 'http://122.51.230.86:8099/', + // VUE_APP_API_URL: 'http://122.51.230.86:8099/', + VUE_APP_API_URL: 'http://192.168.1.17:8099/', VUE_APP_WEBSOCKET: 'ws://localhost:8099/ws/asset/' }, // 生产环境 接口请求地址 (http)或(https)://www.a.com(换成你的域名)/api 非独立部署默认为空 diff --git a/locales/en.json b/locales/en.json index b7b41e6..44cb8f1 100644 --- a/locales/en.json +++ b/locales/en.json @@ -27,7 +27,9 @@ "sendInquiry": "Send Inquiry", "chatNow": "Chat Now", "menu": "Menu", - "search": "Search" + "search": "Search", + "next": "Next", + "prev": "Prev" }, "menu": { "Home": "Home", diff --git a/locales/zh.json b/locales/zh.json index ab4861a..7454ffc 100644 --- a/locales/zh.json +++ b/locales/zh.json @@ -27,7 +27,9 @@ "sendInquiry": "发送咨询", "chatNow": "立即聊天", "menu": "菜单", - "search": "搜索" + "search": "搜索", + "next": "下一个", + "prev": "上一个" }, "menu": { "Home": "首页", diff --git a/nuxt.config.js b/nuxt.config.js index b6d1769..d73d6b2 100644 --- a/nuxt.config.js +++ b/nuxt.config.js @@ -132,5 +132,12 @@ export default { server: { port: 3001, host: '0.0.0.0', // default: localhost + proxy: { + '/dev': { + target: 'http://192.168.1.17:8099/', + pathRewrite: { '^/dev': '' }, + changeOrigin: true, + } + } }, } diff --git a/pages/index.vue b/pages/index.vue index 6c035b3..f025ab4 100644 --- a/pages/index.vue +++ b/pages/index.vue @@ -59,10 +59,10 @@ > @@ -349,6 +349,11 @@ export default { } .product-card { background-color: #fff; + .cover { + width: 100%; + height: 24.1875rem; + object-fit: cover; + } .product-card-content { padding: 1.125rem 1rem; border-top: .0625rem solid #e6e8ec; diff --git a/pages/news.vue b/pages/news.vue index 38efef2..44050f1 100644 --- a/pages/news.vue +++ b/pages/news.vue @@ -9,6 +9,7 @@ class="col-md-3 mb-4 mb-md-0" :headerTitle="$t('news.allNews')" :treeData="categoryTree" + baseUrl="/news" />
diff --git a/pages/news/_id.vue b/pages/news/_id.vue index 7a026f2..aa07f4f 100644 --- a/pages/news/_id.vue +++ b/pages/news/_id.vue @@ -2,25 +2,25 @@
-

How To Maintain The Chassis Of A Truck?

-

- Oct 25, 2024-

+

{{ detais.title }}

+

{{ detais.createTime }}

-
+
- - Previous: How To Maintain The Chassis Of A Truck? + + {{ $t('common.prev') }}: {{ prevNews.title }} - - Next: Flatbed Trailer Buying Guide + + {{ $t('common.next') }}: {{ nextNews.title }}
-