From d33ad9a9ce2711a5fdb33d4ebb32ce9266c0647c Mon Sep 17 00:00:00 2001 From: duanshuwen Date: Sun, 21 Sep 2025 14:26:04 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E8=B0=83=E6=95=B4=E9=A6=96=E9=A1=B5?= =?UTF-8?q?=E7=BB=84=E4=BB=B6=E7=9B=AE=E5=BD=95=E7=BB=93=E6=9E=84?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- constant/base.js | 3 +- pages.json | 25 ------- .../components/chat/ChatCardAi/index.vue} | 39 +---------- .../chat/ChatCardAi/styles/index.scss | 34 ++++++++++ .../components/chat/ChatCardMine/index.vue | 20 ++++++ .../chat/ChatCardMine/styles/index.scss} | 19 ------ .../components/chat/ChatCardOther/index.vue | 20 ++++++ .../chat/ChatCardOther/styles/index.scss} | 19 ------ .../components/chat/ChatInputArea/index.vue} | 2 +- .../chat/ChatInputArea/styles/index.scss} | 0 .../components/chat/ChatMainList/index.vue} | 34 +++++----- .../chat/ChatMainList/styles/index.scss} | 0 .../components/chat/ChatMarkdown/index.vue} | 0 .../components/chat/ChatMoreTips/index.vue} | 2 +- .../chat/ChatMoreTips/styles/index.scss} | 0 .../chat/ChatQuickAccess/index.vue} | 2 +- .../chat/ChatQuickAccess/styles/index.scss} | 0 .../components/chat/ChatTopBgImg/index.vue | 9 +++ .../chat/ChatTopBgImg/styles/index.scss} | 9 +-- .../components/chat/ChatTopNavBar/index.vue} | 19 +----- .../chat/ChatTopNavBar/styles/index.scss | 16 +++++ .../components/chat/ChatTopWelcome/index.vue} | 36 +++------- .../chat/ChatTopWelcome/styles/index.scss | 25 +++++++ .../components/drawer/DrawerHome/index.vue} | 32 ++------- .../drawer/DrawerHome/styles/index.scss | 25 +++++++ .../components/drawer/MineSetting/index.vue} | 66 +------------------ .../drawer/MineSetting/styles/index.scss | 65 ++++++++++++++++++ .../components}/loading/DotLoading.vue | 0 .../module/ActivityListComponent/index.vue} | 39 +---------- .../ActivityListComponent/styles/index.scss | 38 +++++++++++ .../module/AttachListComponent/index.vue} | 23 +------ .../AttachListComponent/styles/index.scss | 21 ++++++ .../module/DetailCardCompontent/index.vue} | 4 +- .../DetailCardCompontent/styles/index.scss} | 0 .../DetailCardGoodsContentList/index.vue} | 2 +- .../styles/index.scss} | 0 .../module/DiscoveryCardComponent/index.vue} | 9 ++- .../DiscoveryCardComponent/styles/index.scss} | 0 .../DiscoveryCradContentList/index.vue} | 2 +- .../styles/index.scss} | 0 .../module/QuickBookingCalender/index.vue} | 2 +- .../QuickBookingCalender/styles/index.scss} | 0 .../module/QuickBookingComponent/index.vue} | 6 +- .../QuickBookingComponent/styles/index.scss} | 0 .../module/QuickBookingContentList/index.vue} | 4 +- .../styles/index.scss} | 0 .../module/RecommendPostsComponent/index.vue} | 4 +- .../styles/index.scss} | 0 .../module/RecommendPostsList/index.vue} | 2 +- .../RecommendPostsList/styles/index.scss} | 0 pages/index/index.vue | 7 +- pages/login/styles/index.scss | 1 - 52 files changed, 336 insertions(+), 349 deletions(-) rename pages/{chat/ChatCardAI.vue => index/components/chat/ChatCardAi/index.vue} (58%) create mode 100644 pages/index/components/chat/ChatCardAi/styles/index.scss create mode 100644 pages/index/components/chat/ChatCardMine/index.vue rename pages/{chat/ChatCardMine.vue => index/components/chat/ChatCardMine/styles/index.scss} (67%) create mode 100644 pages/index/components/chat/ChatCardOther/index.vue rename pages/{chat/ChatCardOther.vue => index/components/chat/ChatCardOther/styles/index.scss} (54%) rename pages/{chat/ChatInputArea.vue => index/components/chat/ChatInputArea/index.vue} (99%) rename pages/{chat/styles/ChatInputArea.scss => index/components/chat/ChatInputArea/styles/index.scss} (100%) rename pages/{chat/ChatMainList.vue => index/components/chat/ChatMainList/index.vue} (95%) rename pages/{chat/styles/ChatMainList.scss => index/components/chat/ChatMainList/styles/index.scss} (100%) rename pages/{chat/ChatMarkdown.vue => index/components/chat/ChatMarkdown/index.vue} (100%) rename pages/{chat/ChatMoreTips.vue => index/components/chat/ChatMoreTips/index.vue} (95%) rename pages/{chat/styles/ChatMoreTips.scss => index/components/chat/ChatMoreTips/styles/index.scss} (100%) rename pages/{chat/ChatQuickAccess.vue => index/components/chat/ChatQuickAccess/index.vue} (97%) rename pages/{chat/styles/ChatQuickAccess.scss => index/components/chat/ChatQuickAccess/styles/index.scss} (100%) create mode 100644 pages/index/components/chat/ChatTopBgImg/index.vue rename pages/{chat/ChatTopBgImg.vue => index/components/chat/ChatTopBgImg/styles/index.scss} (64%) rename pages/{chat/ChatTopNavBar.vue => index/components/chat/ChatTopNavBar/index.vue} (73%) create mode 100644 pages/index/components/chat/ChatTopNavBar/styles/index.scss rename pages/{chat/ChatTopWelcome.vue => index/components/chat/ChatTopWelcome/index.vue} (64%) create mode 100644 pages/index/components/chat/ChatTopWelcome/styles/index.scss rename pages/{drawer/DrawerHome.vue => index/components/drawer/DrawerHome/index.vue} (68%) create mode 100644 pages/index/components/drawer/DrawerHome/styles/index.scss rename pages/{drawer/MineSetting.vue => index/components/drawer/MineSetting/index.vue} (77%) create mode 100644 pages/index/components/drawer/MineSetting/styles/index.scss rename pages/{ => index/components}/loading/DotLoading.vue (100%) rename pages/{module/banner/ActivityListComponent.vue => index/components/module/ActivityListComponent/index.vue} (61%) create mode 100644 pages/index/components/module/ActivityListComponent/styles/index.scss rename pages/{module/attach/AttachListComponent.vue => index/components/module/AttachListComponent/index.vue} (70%) create mode 100644 pages/index/components/module/AttachListComponent/styles/index.scss rename pages/{module/detail/DetailCardCompontent.vue => index/components/module/DetailCardCompontent/index.vue} (85%) rename pages/{module/detail/styles/DetailCardCompontent.scss => index/components/module/DetailCardCompontent/styles/index.scss} (100%) rename pages/{module/detail/DetailCardGoodsContentList.vue => index/components/module/DetailCardGoodsContentList/index.vue} (97%) rename pages/{module/detail/styles/DetailCardGoodsContentList.scss => index/components/module/DetailCardGoodsContentList/styles/index.scss} (100%) rename pages/{module/discovery/DiscoveryCardComponent.vue => index/components/module/DiscoveryCardComponent/index.vue} (80%) rename pages/{module/discovery/styles/DiscoveryCardComponent.scss => index/components/module/DiscoveryCardComponent/styles/index.scss} (100%) rename pages/{module/discovery/DiscoveryCradContentList.vue => index/components/module/DiscoveryCradContentList/index.vue} (95%) rename pages/{module/discovery/styles/DiscoveryCradContentList.scss => index/components/module/DiscoveryCradContentList/styles/index.scss} (100%) rename pages/{module/booking/QuickBookingCalender.vue => index/components/module/QuickBookingCalender/index.vue} (97%) rename pages/{module/booking/styles/QuickBookingCalender.scss => index/components/module/QuickBookingCalender/styles/index.scss} (100%) rename pages/{module/booking/QuickBookingComponent.vue => index/components/module/QuickBookingComponent/index.vue} (90%) rename pages/{module/booking/styles/QuickBookingComponent.scss => index/components/module/QuickBookingComponent/styles/index.scss} (100%) rename pages/{module/booking/QuickBookingContentList.vue => index/components/module/QuickBookingContentList/index.vue} (97%) rename pages/{module/booking/styles/QuickBookingContentList.scss => index/components/module/QuickBookingContentList/styles/index.scss} (100%) rename pages/{module/recommend/RecommendPostsComponent.vue => index/components/module/RecommendPostsComponent/index.vue} (80%) rename pages/{module/recommend/styles/RecommendPostsComponent.scss => index/components/module/RecommendPostsComponent/styles/index.scss} (100%) rename pages/{module/recommend/RecommendPostsList.vue => index/components/module/RecommendPostsList/index.vue} (95%) rename pages/{module/recommend/styles/RecommendPostsList.scss => index/components/module/RecommendPostsList/styles/index.scss} (100%) diff --git a/constant/base.js b/constant/base.js index ec472ef..48dd0a9 100644 --- a/constant/base.js +++ b/constant/base.js @@ -36,7 +36,6 @@ export const CLIENT_CONFIGS = { }; // 获取当前用户端配置 -export const getCurrentConfig = () => CLIENT_CONFIGS.tianmu; - +export const getCurrentConfig = () => CLIENT_CONFIGS.duohua; export const clientId = getCurrentConfig().clientId; export const appId = getCurrentConfig().appId; diff --git a/pages.json b/pages.json index 1d373f5..c3c2115 100644 --- a/pages.json +++ b/pages.json @@ -12,23 +12,6 @@ "navigationStyle": "custom" } }, - { - "path": "pages/chat/ChatMainList", - "style": { - "navigationStyle": "custom", - "app-plus": { - "softinputMode": "adjustPan", - "bounce": "none", - "titleNView": false - } - } - }, - { - "path": "pages/chat/ChatQuickAccess", - "style": { - "navigationBarTitleText": "" - } - }, { "path": "pages/order/list", "style": { @@ -46,14 +29,6 @@ "style": { "navigationStyle": "custom" } - }, - { - "path": "pages/webview/index", - "style": { - "navigationStyle": "custom", - "navigationBarBackgroundColor": "#F8F8F8", - "navigationBarTitleColor": "#000000" - } } ], "globalStyle": { diff --git a/pages/chat/ChatCardAI.vue b/pages/index/components/chat/ChatCardAi/index.vue similarity index 58% rename from pages/chat/ChatCardAI.vue rename to pages/index/components/chat/ChatCardAi/index.vue index 5753ee5..28e31ab 100644 --- a/pages/chat/ChatCardAI.vue +++ b/pages/index/components/chat/ChatCardAi/index.vue @@ -19,8 +19,8 @@ diff --git a/pages/index/components/chat/ChatCardAi/styles/index.scss b/pages/index/components/chat/ChatCardAi/styles/index.scss new file mode 100644 index 0000000..8e09f98 --- /dev/null +++ b/pages/index/components/chat/ChatCardAi/styles/index.scss @@ -0,0 +1,34 @@ +.container { + display: flex; + flex-direction: column; + max-width: 100%; // ✅ 限制最大宽度 + overflow-x: hidden; // ✅ 防止横向撑开 + + .chat-ai { + margin: 6px 12px; + padding: 0 12px; + max-width: 100%; // ✅ 限制最大宽度 + min-width: 100px; + background: rgba(255, 255, 255, 0.4); + box-shadow: 2px 2px 6px 0px rgba(0, 0, 0, 0.1); + border-radius: 4px 20px 20px 20px; + border: 1px solid; + border-color: #ffffff; + overflow: hidden; // ✅ 超出内容被切掉 + word-wrap: break-word; // ✅ 长单词自动换行 + word-break: break-all; // ✅ 强制换行 + } +} + +.loading-container { + display: flex; + align-items: center; + padding: 4px 0; + max-width: 100%; // ✅ 限制最大宽度 +} + +.loading-img { + margin-right: 8px; + width: 30px; + height: 25px; +} diff --git a/pages/index/components/chat/ChatCardMine/index.vue b/pages/index/components/chat/ChatCardMine/index.vue new file mode 100644 index 0000000..b24b0b2 --- /dev/null +++ b/pages/index/components/chat/ChatCardMine/index.vue @@ -0,0 +1,20 @@ + + + + + diff --git a/pages/chat/ChatCardMine.vue b/pages/index/components/chat/ChatCardMine/styles/index.scss similarity index 67% rename from pages/chat/ChatCardMine.vue rename to pages/index/components/chat/ChatCardMine/styles/index.scss index 8dda02c..301f0d2 100644 --- a/pages/chat/ChatCardMine.vue +++ b/pages/index/components/chat/ChatCardMine/styles/index.scss @@ -1,21 +1,3 @@ - - - - - diff --git a/pages/index/components/chat/ChatCardOther/index.vue b/pages/index/components/chat/ChatCardOther/index.vue new file mode 100644 index 0000000..ab3f85f --- /dev/null +++ b/pages/index/components/chat/ChatCardOther/index.vue @@ -0,0 +1,20 @@ + + + + + diff --git a/pages/chat/ChatCardOther.vue b/pages/index/components/chat/ChatCardOther/styles/index.scss similarity index 54% rename from pages/chat/ChatCardOther.vue rename to pages/index/components/chat/ChatCardOther/styles/index.scss index e20cf83..065c2e5 100644 --- a/pages/chat/ChatCardOther.vue +++ b/pages/index/components/chat/ChatCardOther/styles/index.scss @@ -1,21 +1,3 @@ - - - - - diff --git a/pages/chat/ChatInputArea.vue b/pages/index/components/chat/ChatInputArea/index.vue similarity index 99% rename from pages/chat/ChatInputArea.vue rename to pages/index/components/chat/ChatInputArea/index.vue index edf381e..bafd853 100644 --- a/pages/chat/ChatInputArea.vue +++ b/pages/index/components/chat/ChatInputArea/index.vue @@ -231,5 +231,5 @@ defineExpose({ focusInput }); diff --git a/pages/chat/styles/ChatInputArea.scss b/pages/index/components/chat/ChatInputArea/styles/index.scss similarity index 100% rename from pages/chat/styles/ChatInputArea.scss rename to pages/index/components/chat/ChatInputArea/styles/index.scss diff --git a/pages/chat/ChatMainList.vue b/pages/index/components/chat/ChatMainList/index.vue similarity index 95% rename from pages/chat/ChatMainList.vue rename to pages/index/components/chat/ChatMainList/index.vue index 785c31e..3ffa618 100644 --- a/pages/chat/ChatMainList.vue +++ b/pages/index/components/chat/ChatMainList/index.vue @@ -154,24 +154,24 @@ import { NOTICE_EVENT_LOGOUT, } from "@/constant/constant"; import { WSS_URL } from "@/request/base/baseUrl"; -import { MessageRole, MessageType, CompName } from "../../model/ChatModel"; -import ChatTopWelcome from "./ChatTopWelcome.vue"; -import ChatTopBgImg from "./ChatTopBgImg.vue"; -import ChatTopNavBar from "./ChatTopNavBar.vue"; -import ChatCardAI from "./ChatCardAI.vue"; -import ChatCardMine from "./ChatCardMine.vue"; -import ChatCardOther from "./ChatCardOther.vue"; -import ChatQuickAccess from "./ChatQuickAccess.vue"; -import ChatMoreTips from "./ChatMoreTips.vue"; -import ChatInputArea from "./ChatInputArea.vue"; -import QuickBookingComponent from "../module/booking/QuickBookingComponent.vue"; -import DiscoveryCardComponent from "../module/discovery/DiscoveryCardComponent.vue"; -import ActivityListComponent from "../module/banner/ActivityListComponent.vue"; -import RecommendPostsComponent from "../module/recommend/RecommendPostsComponent.vue"; -import AttachListComponent from "../module/attach/AttachListComponent.vue"; +import { MessageRole, MessageType, CompName } from "@/model/ChatModel"; +import ChatTopWelcome from "../ChatTopWelcome/index.vue"; +import ChatTopBgImg from "../ChatTopBgImg/index.vue"; +import ChatTopNavBar from "../ChatTopNavBar/index.vue"; +import ChatCardAI from "../ChatCardAi/index.vue"; +import ChatCardMine from "../ChatCardMine/index.vue"; +import ChatCardOther from "../ChatCardOther/index.vue"; +import ChatQuickAccess from "../ChatQuickAccess/index.vue"; +import ChatMoreTips from "../ChatMoreTips/index.vue"; +import ChatInputArea from "../ChatInputArea/index.vue"; +import QuickBookingComponent from "../../module/QuickBookingComponent/index.vue"; +import DiscoveryCardComponent from "../../module/DiscoveryCardComponent/index.vue"; +import ActivityListComponent from "../../module/ActivityListComponent/index.vue"; +import RecommendPostsComponent from "../../module/RecommendPostsComponent/index.vue"; +import AttachListComponent from "../../module/AttachListComponent/index.vue"; +import DetailCardCompontent from "../../module/DetailCardCompontent/index.vue"; import CreateServiceOrder from "@/components/CreateServiceOrder/index.vue"; import Feedback from "@/components/Feedback/index.vue"; -import DetailCardCompontent from "../module/detail/DetailCardCompontent.vue"; import AddCarCrad from "@/components/AddCarCrad/index.vue"; import { mainPageData } from "@/request/api/MainPageDataApi"; import { @@ -805,5 +805,5 @@ const resetConfig = () => { diff --git a/pages/chat/styles/ChatMainList.scss b/pages/index/components/chat/ChatMainList/styles/index.scss similarity index 100% rename from pages/chat/styles/ChatMainList.scss rename to pages/index/components/chat/ChatMainList/styles/index.scss diff --git a/pages/chat/ChatMarkdown.vue b/pages/index/components/chat/ChatMarkdown/index.vue similarity index 100% rename from pages/chat/ChatMarkdown.vue rename to pages/index/components/chat/ChatMarkdown/index.vue diff --git a/pages/chat/ChatMoreTips.vue b/pages/index/components/chat/ChatMoreTips/index.vue similarity index 95% rename from pages/chat/ChatMoreTips.vue rename to pages/index/components/chat/ChatMoreTips/index.vue index 4227ee7..ff414db 100644 --- a/pages/chat/ChatMoreTips.vue +++ b/pages/index/components/chat/ChatMoreTips/index.vue @@ -39,5 +39,5 @@ const sendReply = (text) => { diff --git a/pages/chat/styles/ChatMoreTips.scss b/pages/index/components/chat/ChatMoreTips/styles/index.scss similarity index 100% rename from pages/chat/styles/ChatMoreTips.scss rename to pages/index/components/chat/ChatMoreTips/styles/index.scss diff --git a/pages/chat/ChatQuickAccess.vue b/pages/index/components/chat/ChatQuickAccess/index.vue similarity index 97% rename from pages/chat/ChatQuickAccess.vue rename to pages/index/components/chat/ChatQuickAccess/index.vue index c0bd7ac..8c8f0a3 100644 --- a/pages/chat/ChatQuickAccess.vue +++ b/pages/index/components/chat/ChatQuickAccess/index.vue @@ -67,5 +67,5 @@ const initData = () => { diff --git a/pages/chat/styles/ChatQuickAccess.scss b/pages/index/components/chat/ChatQuickAccess/styles/index.scss similarity index 100% rename from pages/chat/styles/ChatQuickAccess.scss rename to pages/index/components/chat/ChatQuickAccess/styles/index.scss diff --git a/pages/index/components/chat/ChatTopBgImg/index.vue b/pages/index/components/chat/ChatTopBgImg/index.vue new file mode 100644 index 0000000..6cf812c --- /dev/null +++ b/pages/index/components/chat/ChatTopBgImg/index.vue @@ -0,0 +1,9 @@ + + + + + diff --git a/pages/chat/ChatTopBgImg.vue b/pages/index/components/chat/ChatTopBgImg/styles/index.scss similarity index 64% rename from pages/chat/ChatTopBgImg.vue rename to pages/index/components/chat/ChatTopBgImg/styles/index.scss index 22a4578..67f3b5b 100644 --- a/pages/chat/ChatTopBgImg.vue +++ b/pages/index/components/chat/ChatTopBgImg/styles/index.scss @@ -1,18 +1,11 @@ - - - - - diff --git a/pages/chat/ChatTopNavBar.vue b/pages/index/components/chat/ChatTopNavBar/index.vue similarity index 73% rename from pages/chat/ChatTopNavBar.vue rename to pages/index/components/chat/ChatTopNavBar/index.vue index 3e2804a..22f10a0 100644 --- a/pages/chat/ChatTopNavBar.vue +++ b/pages/index/components/chat/ChatTopNavBar/index.vue @@ -12,7 +12,7 @@ diff --git a/pages/index/components/chat/ChatTopNavBar/styles/index.scss b/pages/index/components/chat/ChatTopNavBar/styles/index.scss new file mode 100644 index 0000000..7249b0e --- /dev/null +++ b/pages/index/components/chat/ChatTopNavBar/styles/index.scss @@ -0,0 +1,16 @@ +.nav-bar { + display: flex; + align-items: center; + height: 44px; + padding: 0 15px; + + .nav-item { + width: 24px; + height: 24px; + margin-right: 10px; + } + .nav-item-icon { + width: 100%; + height: 100%; + } +} diff --git a/pages/chat/ChatTopWelcome.vue b/pages/index/components/chat/ChatTopWelcome/index.vue similarity index 64% rename from pages/chat/ChatTopWelcome.vue rename to pages/index/components/chat/ChatTopWelcome/index.vue index 5275027..e219f05 100644 --- a/pages/chat/ChatTopWelcome.vue +++ b/pages/index/components/chat/ChatTopWelcome/index.vue @@ -7,15 +7,19 @@ :src="initPageImages.welcomeImageUrl" mode="aspectFit" > - + diff --git a/pages/index/components/chat/ChatTopWelcome/styles/index.scss b/pages/index/components/chat/ChatTopWelcome/styles/index.scss new file mode 100644 index 0000000..4c0c23a --- /dev/null +++ b/pages/index/components/chat/ChatTopWelcome/styles/index.scss @@ -0,0 +1,25 @@ +.top-bg-content { + display: flex; + justify-content: flex-end; + align-items: stretch; + flex-direction: column; +} + +.top-item { + display: flex; + flex-direction: row; + justify-content: space-between; + align-items: center; + padding: 0 32px; + margin-bottom: -6px; +} + +.top-item-left { + width: 118px; + height: 52px; +} + +.top-item-right { + width: 130px; + height: 130px; +} diff --git a/pages/drawer/DrawerHome.vue b/pages/index/components/drawer/DrawerHome/index.vue similarity index 68% rename from pages/drawer/DrawerHome.vue rename to pages/index/components/drawer/DrawerHome/index.vue index 297fb04..bac43da 100644 --- a/pages/drawer/DrawerHome.vue +++ b/pages/index/components/drawer/DrawerHome/index.vue @@ -7,7 +7,7 @@ color="#333333" class="close-icon" @click="closeDrawer" - > + /> 我的 @@ -16,12 +16,12 @@ diff --git a/pages/index/components/drawer/DrawerHome/styles/index.scss b/pages/index/components/drawer/DrawerHome/styles/index.scss new file mode 100644 index 0000000..2cb0da1 --- /dev/null +++ b/pages/index/components/drawer/DrawerHome/styles/index.scss @@ -0,0 +1,25 @@ +.drawer-home { + width: 100%; + height: 100vh; + background-color: #fff; + padding-top: 44px; +} + +.drawer-home-nav { + position: relative; + padding: 12px; + display: flex; + justify-content: center; /* 文字水平居中 */ + align-items: center; /* 垂直居中 */ + + .title { + font-size: 18px; + text-align: center; + color: #333333; + } + + .close-icon { + position: absolute; + left: 12px; /* 距离左边12px */ + } +} diff --git a/pages/drawer/MineSetting.vue b/pages/index/components/drawer/MineSetting/index.vue similarity index 77% rename from pages/drawer/MineSetting.vue rename to pages/index/components/drawer/MineSetting/index.vue index 8375e59..87797b0 100644 --- a/pages/drawer/MineSetting.vue +++ b/pages/index/components/drawer/MineSetting/index.vue @@ -115,69 +115,5 @@ const handleLogout = () => { diff --git a/pages/index/components/drawer/MineSetting/styles/index.scss b/pages/index/components/drawer/MineSetting/styles/index.scss new file mode 100644 index 0000000..657783d --- /dev/null +++ b/pages/index/components/drawer/MineSetting/styles/index.scss @@ -0,0 +1,65 @@ +.page { + padding: 24rpx; + background-color: #f6f6f6; + min-height: 100vh; +} + +.user-card, +.menu-card { + background-color: #fff; + border-radius: 12rpx; + padding-left: 24rpx; + margin-bottom: 20rpx; +} + +.row { + display: flex; + justify-content: space-between; + align-items: center; + padding: 28rpx 24rpx 28rpx 0; + border-bottom: 1px solid #f0f0f0; +} + +.row:last-child { + border-bottom: none; +} + +.avatar-row .avatar { + width: 80rpx; + height: 80rpx; + border-radius: 50%; +} + +.label { + font-size: 28rpx; + color: #333; +} + +.value { + font-size: 28rpx; + color: #666; +} + +.menu-item { + display: flex; + justify-content: space-between; + align-items: center; + padding: 28rpx 24rpx 28rpx 0; + border-bottom: 1px solid #f0f0f0; +} + +.menu-item:last-child { + border-bottom: none; +} + +.logout-btn { + display: flex; + align-items: center; + justify-content: center; + height: 42px; + margin-top: 40px; + background-color: #fff; + color: #333; + border-radius: 8rpx; + border: none; +} diff --git a/pages/loading/DotLoading.vue b/pages/index/components/loading/DotLoading.vue similarity index 100% rename from pages/loading/DotLoading.vue rename to pages/index/components/loading/DotLoading.vue diff --git a/pages/module/banner/ActivityListComponent.vue b/pages/index/components/module/ActivityListComponent/index.vue similarity index 61% rename from pages/module/banner/ActivityListComponent.vue rename to pages/index/components/module/ActivityListComponent/index.vue index b44a51d..d57af3c 100644 --- a/pages/module/banner/ActivityListComponent.vue +++ b/pages/index/components/module/ActivityListComponent/index.vue @@ -41,42 +41,5 @@ const handleClick = (item) => { diff --git a/pages/index/components/module/ActivityListComponent/styles/index.scss b/pages/index/components/module/ActivityListComponent/styles/index.scss new file mode 100644 index 0000000..3afb756 --- /dev/null +++ b/pages/index/components/module/ActivityListComponent/styles/index.scss @@ -0,0 +1,38 @@ +.container { + margin-bottom: 6px; + + .uni-margin-wrap { + width: 100%; + } + .swiper { + height: 120px; + border-radius: 8px; + } + .swiper-item { + position: relative; + display: block; + height: 120px; + line-height: 120px; + text-align: center; + + image { + width: 100%; + height: 100%; + border-radius: 8px; + display: block; + } + + .corner-btn { + position: absolute; + right: 12px; + bottom: 12px; + background-color: #ffeb00; + color: #333; + font-size: 14px; + font-weight: 500; + padding: 4px 12px; + border-radius: 20px; + line-height: 1.5; + } + } +} diff --git a/pages/module/attach/AttachListComponent.vue b/pages/index/components/module/AttachListComponent/index.vue similarity index 70% rename from pages/module/attach/AttachListComponent.vue rename to pages/index/components/module/AttachListComponent/index.vue index e94d79b..68dc3df 100644 --- a/pages/module/attach/AttachListComponent.vue +++ b/pages/index/components/module/AttachListComponent/index.vue @@ -15,6 +15,7 @@ import { ref, nextTick, defineEmits } from "vue"; import { onMounted } from "vue"; import { SCROLL_TO_BOTTOM } from "@/constant/constant"; + const props = defineProps({ question: { type: String, @@ -40,25 +41,5 @@ onMounted(() => { diff --git a/pages/index/components/module/AttachListComponent/styles/index.scss b/pages/index/components/module/AttachListComponent/styles/index.scss new file mode 100644 index 0000000..722796a --- /dev/null +++ b/pages/index/components/module/AttachListComponent/styles/index.scss @@ -0,0 +1,21 @@ +.tag-list { + display: flex; + flex-wrap: wrap; + padding: 6px 12px; +} + +.tag-item { + background-color: #ffffff; + border-radius: 8px; + padding: 4px 10px; + margin-right: 8px; + margin-bottom: 8px; + display: inline-flex; + align-items: center; + justify-content: center; +} + +.tag-text { + color: #00a6ff; /* 蓝色文字,可根据设计调整 */ + font-size: 14px; +} diff --git a/pages/module/detail/DetailCardCompontent.vue b/pages/index/components/module/DetailCardCompontent/index.vue similarity index 85% rename from pages/module/detail/DetailCardCompontent.vue rename to pages/index/components/module/DetailCardCompontent/index.vue index 197a98a..051f60d 100644 --- a/pages/module/detail/DetailCardCompontent.vue +++ b/pages/index/components/module/DetailCardCompontent/index.vue @@ -15,7 +15,7 @@ import { defineProps } from "vue"; import ModuleTitle from "@/components/ModuleTitle/index.vue"; import ImageSwiper from "@/components/ImageSwiper/index.vue"; -import DetailCardGoodsContentList from "./DetailCardGoodsContentList.vue"; +import DetailCardGoodsContentList from "../DetailCardGoodsContentList/index.vue"; const props = defineProps({ toolCall: { @@ -26,5 +26,5 @@ const props = defineProps({ diff --git a/pages/module/detail/styles/DetailCardCompontent.scss b/pages/index/components/module/DetailCardCompontent/styles/index.scss similarity index 100% rename from pages/module/detail/styles/DetailCardCompontent.scss rename to pages/index/components/module/DetailCardCompontent/styles/index.scss diff --git a/pages/module/detail/DetailCardGoodsContentList.vue b/pages/index/components/module/DetailCardGoodsContentList/index.vue similarity index 97% rename from pages/module/detail/DetailCardGoodsContentList.vue rename to pages/index/components/module/DetailCardGoodsContentList/index.vue index 9004b96..b61782c 100644 --- a/pages/module/detail/DetailCardGoodsContentList.vue +++ b/pages/index/components/module/DetailCardGoodsContentList/index.vue @@ -69,5 +69,5 @@ const placeOrderHandle = (item) => { diff --git a/pages/module/detail/styles/DetailCardGoodsContentList.scss b/pages/index/components/module/DetailCardGoodsContentList/styles/index.scss similarity index 100% rename from pages/module/detail/styles/DetailCardGoodsContentList.scss rename to pages/index/components/module/DetailCardGoodsContentList/styles/index.scss diff --git a/pages/module/discovery/DiscoveryCardComponent.vue b/pages/index/components/module/DiscoveryCardComponent/index.vue similarity index 80% rename from pages/module/discovery/DiscoveryCardComponent.vue rename to pages/index/components/module/DiscoveryCardComponent/index.vue index 30edc9d..8a4089c 100644 --- a/pages/module/discovery/DiscoveryCardComponent.vue +++ b/pages/index/components/module/DiscoveryCardComponent/index.vue @@ -7,11 +7,10 @@ diff --git a/pages/module/discovery/styles/DiscoveryCardComponent.scss b/pages/index/components/module/DiscoveryCardComponent/styles/index.scss similarity index 100% rename from pages/module/discovery/styles/DiscoveryCardComponent.scss rename to pages/index/components/module/DiscoveryCardComponent/styles/index.scss diff --git a/pages/module/discovery/DiscoveryCradContentList.vue b/pages/index/components/module/DiscoveryCradContentList/index.vue similarity index 95% rename from pages/module/discovery/DiscoveryCradContentList.vue rename to pages/index/components/module/DiscoveryCradContentList/index.vue index 68653d9..4016b80 100644 --- a/pages/module/discovery/DiscoveryCradContentList.vue +++ b/pages/index/components/module/DiscoveryCradContentList/index.vue @@ -38,5 +38,5 @@ const sendReply = (item) => { diff --git a/pages/module/discovery/styles/DiscoveryCradContentList.scss b/pages/index/components/module/DiscoveryCradContentList/styles/index.scss similarity index 100% rename from pages/module/discovery/styles/DiscoveryCradContentList.scss rename to pages/index/components/module/DiscoveryCradContentList/styles/index.scss diff --git a/pages/module/booking/QuickBookingCalender.vue b/pages/index/components/module/QuickBookingCalender/index.vue similarity index 97% rename from pages/module/booking/QuickBookingCalender.vue rename to pages/index/components/module/QuickBookingCalender/index.vue index 181852f..348f701 100644 --- a/pages/module/booking/QuickBookingCalender.vue +++ b/pages/index/components/module/QuickBookingCalender/index.vue @@ -71,5 +71,5 @@ onMounted(() => { diff --git a/pages/module/booking/styles/QuickBookingCalender.scss b/pages/index/components/module/QuickBookingCalender/styles/index.scss similarity index 100% rename from pages/module/booking/styles/QuickBookingCalender.scss rename to pages/index/components/module/QuickBookingCalender/styles/index.scss diff --git a/pages/module/booking/QuickBookingComponent.vue b/pages/index/components/module/QuickBookingComponent/index.vue similarity index 90% rename from pages/module/booking/QuickBookingComponent.vue rename to pages/index/components/module/QuickBookingComponent/index.vue index 4aa6780..9c1c373 100644 --- a/pages/module/booking/QuickBookingComponent.vue +++ b/pages/index/components/module/QuickBookingComponent/index.vue @@ -11,8 +11,8 @@ diff --git a/pages/module/booking/styles/QuickBookingComponent.scss b/pages/index/components/module/QuickBookingComponent/styles/index.scss similarity index 100% rename from pages/module/booking/styles/QuickBookingComponent.scss rename to pages/index/components/module/QuickBookingComponent/styles/index.scss diff --git a/pages/module/booking/QuickBookingContentList.vue b/pages/index/components/module/QuickBookingContentList/index.vue similarity index 97% rename from pages/module/booking/QuickBookingContentList.vue rename to pages/index/components/module/QuickBookingContentList/index.vue index 0c9f366..b9a5635 100644 --- a/pages/module/booking/QuickBookingContentList.vue +++ b/pages/index/components/module/QuickBookingContentList/index.vue @@ -45,9 +45,9 @@ diff --git a/pages/module/booking/styles/QuickBookingContentList.scss b/pages/index/components/module/QuickBookingContentList/styles/index.scss similarity index 100% rename from pages/module/booking/styles/QuickBookingContentList.scss rename to pages/index/components/module/QuickBookingContentList/styles/index.scss diff --git a/pages/module/recommend/RecommendPostsComponent.vue b/pages/index/components/module/RecommendPostsComponent/index.vue similarity index 80% rename from pages/module/recommend/RecommendPostsComponent.vue rename to pages/index/components/module/RecommendPostsComponent/index.vue index e9cb774..20466a8 100644 --- a/pages/module/recommend/RecommendPostsComponent.vue +++ b/pages/index/components/module/RecommendPostsComponent/index.vue @@ -10,7 +10,7 @@ diff --git a/pages/module/recommend/styles/RecommendPostsComponent.scss b/pages/index/components/module/RecommendPostsComponent/styles/index.scss similarity index 100% rename from pages/module/recommend/styles/RecommendPostsComponent.scss rename to pages/index/components/module/RecommendPostsComponent/styles/index.scss diff --git a/pages/module/recommend/RecommendPostsList.vue b/pages/index/components/module/RecommendPostsList/index.vue similarity index 95% rename from pages/module/recommend/RecommendPostsList.vue rename to pages/index/components/module/RecommendPostsList/index.vue index 61d2da4..e76aa5b 100644 --- a/pages/module/recommend/RecommendPostsList.vue +++ b/pages/index/components/module/RecommendPostsList/index.vue @@ -37,5 +37,5 @@ const sendReply = (item) => { diff --git a/pages/module/recommend/styles/RecommendPostsList.scss b/pages/index/components/module/RecommendPostsList/styles/index.scss similarity index 100% rename from pages/module/recommend/styles/RecommendPostsList.scss rename to pages/index/components/module/RecommendPostsList/styles/index.scss diff --git a/pages/index/index.vue b/pages/index/index.vue index 02b8945..758f998 100644 --- a/pages/index/index.vue +++ b/pages/index/index.vue @@ -14,13 +14,12 @@