From af286e77aa99d29ffa4ee4ce0ce6f4338f54369f Mon Sep 17 00:00:00 2001 From: Mrx <18278715334@163.com> Date: Mon, 25 May 2026 12:04:30 +0800 Subject: [PATCH] f --- .env | 4 +- src/pages.json | 58 +++++------ src/{ => pages}/about-us.vue | 8 +- src/{ => pages}/help-center.vue | 2 +- src/pages/mine.vue | 164 ++++++++++++++++++++++---------- src/pages/toolbox/index.vue | 81 +--------------- uni-pages.d.ts | 2 + 7 files changed, 149 insertions(+), 170 deletions(-) rename src/{ => pages}/about-us.vue (97%) rename src/{ => pages}/help-center.vue (99%) diff --git a/.env b/.env index 5b04806..56fa04a 100644 --- a/.env +++ b/.env @@ -5,5 +5,5 @@ # # 需要覆盖时再取消注释其一: # VITE_API_BASE_URL=/api/v1 -VITE_API_BASE_URL=http://127.0.0.1:8888/api/v1 -# VITE_API_BASE_URL=https://www.tianyuancha.cn/api/v1 +# VITE_API_BASE_URL=http://127.0.0.1:8888/api/v1 +VITE_API_BASE_URL=https://www.tianyuancha.cn/api/v1 diff --git a/src/pages.json b/src/pages.json index 568360f..b86d6b5 100644 --- a/src/pages.json +++ b/src/pages.json @@ -22,6 +22,26 @@ } }, // #endif + { + "path": "pages/about-us", + "type": "page", + "style": { + "navigationBarTitleText": "关于我们", + "navigationStyle": "default", + "navigationBarBackgroundColor": "#ffffff", + "navigationBarTextStyle": "black" + } + }, + { + "path": "pages/help-center", + "type": "page", + "style": { + "navigationBarTitleText": "帮助中心", + "navigationStyle": "default", + "navigationBarBackgroundColor": "#ffffff", + "navigationBarTextStyle": "black" + } + }, { "path": "pages/login", "type": "page", @@ -84,45 +104,13 @@ "navigationBarTextStyle": "black" } }, - { - "path": "pages/inquire/user-notice", - "type": "page", - "style": { - "navigationBarTitleText": "用户须知", - "navigationStyle": "default", - "navigationBarBackgroundColor": "#ffffff", - "navigationBarTextStyle": "black" - } - }, { "path": "pages/inquire/query-notice", - "type": "page", - "style": { - "navigationBarTitleText": "查询须知", - "navigationStyle": "default", - "navigationBarBackgroundColor": "#ffffff", - "navigationBarTextStyle": "black" - } + "type": "page" }, { - "path": "pages/help/index", - "type": "page", - "style": { - "navigationBarTitleText": "帮助中心", - "navigationStyle": "default", - "navigationBarBackgroundColor": "#ffffff", - "navigationBarTextStyle": "black" - } - }, - { - "path": "pages/about/index", - "type": "page", - "style": { - "navigationBarTitleText": "关于我们", - "navigationStyle": "default", - "navigationBarBackgroundColor": "#ffffff", - "navigationBarTextStyle": "black" - } + "path": "pages/inquire/user-notice", + "type": "page" }, { "path": "pages/legal/authorization", diff --git a/src/about-us.vue b/src/pages/about-us.vue similarity index 97% rename from src/about-us.vue rename to src/pages/about-us.vue index 2abfa8b..9386674 100644 --- a/src/about-us.vue +++ b/src/pages/about-us.vue @@ -37,7 +37,7 @@ function copyEmail() { - 全能查 + 天远查车 买车先查车况,更安心 @@ -65,7 +65,7 @@ function copyEmail() { - 全能查是一款专业的车辆信息查询工具,为广大用户提供便捷、准确、全面的车辆车况查询服务。我们致力于帮助用户在二手车交易、车辆保养等场景中做出更明智的决策。 + 天远查车是一款专业的车辆信息查询工具,为广大用户提供便捷、准确、全面的车辆车况查询服务。我们致力于帮助用户在二手车交易、车辆保养等场景中做出更明智的决策。 @@ -249,7 +249,7 @@ function copyEmail() { 公司名称 - 海南海宇大数据有限公司 + 广西福铭网络科技有限公司 服务宗旨 @@ -268,7 +268,7 @@ function copyEmail() { - © 2026 海南海宇大数据有限公司 版权所有 + © 2026 广西福铭网络科技有限公司 版权所有 diff --git a/src/help-center.vue b/src/pages/help-center.vue similarity index 99% rename from src/help-center.vue rename to src/pages/help-center.vue index 9419bc6..bde8065 100644 --- a/src/help-center.vue +++ b/src/pages/help-center.vue @@ -99,7 +99,7 @@ function goContact() { - 在线客服 + 在线客服 快速咨询问题 diff --git a/src/pages/mine.vue b/src/pages/mine.vue index 684a1dc..e0338b8 100644 --- a/src/pages/mine.vue +++ b/src/pages/mine.vue @@ -296,19 +296,20 @@ function goLegalAuthorization() { } function goIllegalCode() { - uni.showToast({ title: '敬请期待', icon: 'none' }) + uni.navigateTo({ url: '/pages/toolbox/query?key=jtwfcode' }) } function goOilPrice() { - uni.showToast({ title: '敬请期待', icon: 'none' }) + uni.navigateTo({ url: '/pages/toolbox/query?key=oilprice' }) } function goHelp() { - uni.navigateTo({ url: '/pages/help/index' }) + uni.navigateTo({ url: '/pages/help-center' }) } + function goAbout() { - uni.navigateTo({ url: '/pages/about/index' }) + uni.navigateTo({ url: '/pages/about-us' }) } function goSettings() { @@ -394,32 +395,31 @@ onUnmounted(() => { 分享好友 - + + 常用工具 - - - - + + + + - 实时油价查询 - + 实时油价查询 - - - + + + - 违章代码查询 - + 违章代码查询 @@ -427,29 +427,34 @@ onUnmounted(() => { 服务与支持 - - - - - + + + + + - 帮助中心 - + 在线客服 - - - + + + + - 关于我们 - + 帮助中心 + + + + + + 关于我们 @@ -457,27 +462,24 @@ onUnmounted(() => { 法律条款 - - - - + + + + - 用户协议 - + 用户协议 - - - + + + - 隐私政策 - + 隐私政策 - - - + + + - 授权书 - + 授权书 @@ -752,6 +754,66 @@ onUnmounted(() => { text-align: center; } +/* ═══ 区块3/4/5: 工具网格 ═══ */ +.tool-grid { + display: flex; + flex-wrap: wrap; + padding: 4rpx 8rpx; +} + +.tool-item { + width: 25%; + display: flex; + flex-direction: column; + align-items: center; + padding: 16rpx 0; +} + +.tool-item-btn { + margin: 0; + padding: 16rpx 0; + border: none; + background: transparent; + line-height: normal; + font-size: inherit; + color: inherit; + box-sizing: border-box; +} + +.tool-item-btn::after { + display: none; +} + +.tool-item-hover { + opacity: 0.7; +} + +.tool-item-icon-wrap { + width: 88rpx; + height: 88rpx; + border-radius: 50%; + display: flex; + align-items: center; + justify-content: center; + margin-bottom: 12rpx; +} + +.tool-item-icon { + font-size: 40rpx; +} + +.tool-item-name { + font-size: 24rpx; + color: #1d2129; + text-align: center; + line-height: 1.3; + max-width: 100%; + overflow: hidden; + text-overflow: ellipsis; + white-space: nowrap; + padding: 0 4rpx; +} + /* ═══ 区块3/4/5: 列表行 ═══ */ .tool-list { padding-bottom: 8rpx; diff --git a/src/pages/toolbox/index.vue b/src/pages/toolbox/index.vue index 2e5c248..5c5bc0b 100644 --- a/src/pages/toolbox/index.vue +++ b/src/pages/toolbox/index.vue @@ -14,19 +14,12 @@ definePage({ const vehicleItems = computed(() => getInquireCategoryConfig('vehicle')?.items ?? []) -/** 左侧分类列表:热门推荐 + 车辆查询 + 所有工具分类 */ +/** 左侧分类列表:只保留车辆查询 */ const sidebarItems = computed(() => [ - { key: 'hot', name: '热门推荐', icon: '', color: '#ff6b6b' }, { key: 'vehicle', name: '车辆查询', icon: 'i-carbon-car', color: '#1768ff' }, - ...toolboxCategories.map(cat => ({ - key: cat.key, - name: cat.name, - icon: cat.icon, - color: cat.color, - })), ]) -const activeKey = ref('hot') +const activeKey = ref('vehicle') /** 当前选中分类的数据(仅工具分类有) */ const activeCategory = computed(() => { @@ -85,48 +78,8 @@ function goInquireFeature(feature: string) { - - - -