feat: 调整了目录结构

This commit is contained in:
2026-04-23 16:37:26 +08:00
parent 8161e7512b
commit 736c2feb4f
58 changed files with 2370 additions and 373 deletions

376
package-lock.json generated

File diff suppressed because it is too large Load Diff

View File

@@ -34,7 +34,7 @@
} }
}, },
{ {
"path": "pages/long-answer/index", "path": "pages/ChatMain/ChatLongAnswer/index",
"style": { "style": {
"navigationStyle": "custom" "navigationStyle": "custom"
} }

View File

@@ -9,7 +9,7 @@
mode="aspectFit" mode="aspectFit"
/> />
<ChatMarkdown :key="textKey" :text="processedText" /> <ChatMarkdown :key="textKey" :text="processedText" />
<DotLoading v-if="isLoading" /> <ChatLoading v-if="isLoading" />
</view> </view>
<slot name="content"></slot> <slot name="content"></slot>
</view> </view>
@@ -20,7 +20,7 @@
<script setup> <script setup>
import { defineProps, computed, ref, watch } from "vue"; import { defineProps, computed, ref, watch } from "vue";
import ChatMarkdown from "../ChatMarkdown/index.vue"; import ChatMarkdown from "../ChatMarkdown/index.vue";
import DotLoading from "../../loading/DotLoading.vue"; import ChatLoading from "../ChatLoading/index.vue";
const props = defineProps({ const props = defineProps({
text: { text: {

View File

@@ -20,7 +20,7 @@
<script setup> <script setup>
import TopNavBar from "@/components/TopNavBar/index.vue"; import TopNavBar from "@/components/TopNavBar/index.vue";
import ChatMarkdown from "../index/components/chat/ChatMarkdown/index.vue"; import ChatMarkdown from "../ChatMarkdown/index.vue";
import { defineProps, ref, nextTick } from "vue"; import { defineProps, ref, nextTick } from "vue";
import { onLoad, onUnload } from "@dcloudio/uni-app"; import { onLoad, onUnload } from "@dcloudio/uni-app";
import StreamManager from "@/utils/StreamManager.js"; import StreamManager from "@/utils/StreamManager.js";

View File

@@ -185,6 +185,7 @@ import {
NOTICE_EVENT_LOGIN_SUCCESS, NOTICE_EVENT_LOGIN_SUCCESS,
} from "@/constant/constant"; } from "@/constant/constant";
import { MessageRole, MessageType, CompName, Command } from "@/model/ChatModel"; import { MessageRole, MessageType, CompName, Command } from "@/model/ChatModel";
import ChatTopWelcome from "../ChatTopWelcome/index.vue"; import ChatTopWelcome from "../ChatTopWelcome/index.vue";
import NoticeMessage from "../NoticeMessage/index.vue"; import NoticeMessage from "../NoticeMessage/index.vue";
import ChatTopNavBar from "../ChatTopNavBar/index.vue"; import ChatTopNavBar from "../ChatTopNavBar/index.vue";
@@ -193,15 +194,17 @@ import ChatCardMine from "../ChatCardMine/index.vue";
import ChatCardOther from "../ChatCardOther/index.vue"; import ChatCardOther from "../ChatCardOther/index.vue";
import ChatQuickAccess from "../ChatQuickAccess/index.vue"; import ChatQuickAccess from "../ChatQuickAccess/index.vue";
import ChatInputArea from "../ChatInputArea/index.vue"; import ChatInputArea from "../ChatInputArea/index.vue";
import QuickBookingComponent from "../../module/QuickBookingComponent/index.vue";
import DiscoveryCardComponent from "../../module/DiscoveryCardComponent/index.vue"; import QuickBookingComponent from "../../ChatModule/QuickBookingComponent/index.vue";
import ActivityListComponent from "../../module/ActivityListComponent/index.vue"; import DiscoveryCardComponent from "../../ChatModule/DiscoveryCardComponent/index.vue";
import RecommendPostsComponent from "../../module/RecommendPostsComponent/index.vue"; import ActivityListComponent from "../../ChatModule/ActivityListComponent/index.vue";
import AttachListComponent from "../../module/AttachListComponent/index.vue"; import RecommendPostsComponent from "../../ChatModule/RecommendPostsComponent/index.vue";
import DetailCardCompontent from "../../module/DetailCardCompontent/index.vue"; import AttachListComponent from "../../ChatModule/AttachListComponent/index.vue";
import OpenMapComponent from "../../module/OpenMapComponent/index.vue"; import DetailCardCompontent from "../../ChatModule/DetailCardCompontent/index.vue";
import AnswerComponent from "../../module/AnswerComponent/index.vue"; import OpenMapComponent from "../../ChatModule/OpenMapComponent/index.vue";
import GeneratorPhotoComponent from "../../module/GeneratorPhotoComponent/index.vue"; import AnswerComponent from "../../ChatModule/AnswerComponent/index.vue";
import GeneratorPhotoComponent from "../../ChatModule/GeneratorPhotoComponent/index.vue";
import CreateServiceOrder from "@/components/CreateServiceOrder/index.vue"; import CreateServiceOrder from "@/components/CreateServiceOrder/index.vue";
import Feedback from "@/components/Feedback/index.vue"; import Feedback from "@/components/Feedback/index.vue";
import AddCarCrad from "@/components/AddCarCrad/index.vue"; import AddCarCrad from "@/components/AddCarCrad/index.vue";
@@ -212,7 +215,7 @@ import {
recentConversation, recentConversation,
} from "@/request/api/ConversationApi"; } from "@/request/api/ConversationApi";
import WebSocketManager from "@/utils/WebSocketManager"; import WebSocketManager from "@/utils/WebSocketManager";
import { ThrottleUtils, IdUtils } from "@/utils"; import { IdUtils } from "@/utils";
import { checkToken } from "@/hooks/useGoLogin"; import { checkToken } from "@/hooks/useGoLogin";
import { useAppStore } from "@/store"; import { useAppStore } from "@/store";
import { getAccessToken } from "@/constant/token"; import { getAccessToken } from "@/constant/token";

View File

Before

Width:  |  Height:  |  Size: 178 KiB

After

Width:  |  Height:  |  Size: 178 KiB

View File

@@ -14,7 +14,7 @@
<!-- 超过3行时显示...提示 --> <!-- 超过3行时显示...提示 -->
<view v-if="!finish" class="flex flex-row flex-items-center mt-8"> <view v-if="!finish" class="flex flex-row flex-items-center mt-8">
<text class="font-size-12 font-400 font-color-600">正在生成</text> <text class="font-size-12 font-400 font-color-600">正在生成</text>
<DotLoading /> <ChatLoading />
</view> </view>
<view v-if="isOverflow" class="flex flex-row flex-items-center mt-8" @click="lookDetailAction"> <view v-if="isOverflow" class="flex flex-row flex-items-center mt-8" @click="lookDetailAction">
<text class="font-size-12 font-400 theme-color-500 mr-4">查看详情</text> <text class="font-size-12 font-400 theme-color-500 mr-4">查看详情</text>
@@ -29,8 +29,8 @@
<script setup> <script setup>
import { defineProps, computed, ref, watch, onBeforeUnmount } from "vue"; import { defineProps, computed, ref, watch, onBeforeUnmount } from "vue";
import ChatMarkdown from "../../chat/ChatMarkdown/index.vue"; import ChatMarkdown from "../../ChatMain/ChatMarkdown/index.vue";
import DotLoading from "../../loading/DotLoading.vue"; import ChatLoading from "../../ChatMain/ChatLoading/index.vue";
import StreamManager from '@/utils/StreamManager.js'; import StreamManager from '@/utils/StreamManager.js';
const isOverflow = ref(false) const isOverflow = ref(false)
@@ -125,7 +125,7 @@ const lookDetailAction = () => {
}); });
// finished // finished
uni.navigateTo({ url: `/pages/long-answer/index?streamId=${encodeURIComponent(streamId)}&finished=${props.finish ? '1' : '0'}` }); uni.navigateTo({ url: `/pages/ChatMain/ChatLongAnswer/index?streamId=${encodeURIComponent(streamId)}&finished=${props.finish ? '1' : '0'}` });
} }
</script> </script>

View File

Before

Width:  |  Height:  |  Size: 532 KiB

After

Width:  |  Height:  |  Size: 532 KiB

View File

Before

Width:  |  Height:  |  Size: 5.9 KiB

After

Width:  |  Height:  |  Size: 5.9 KiB

View File

@@ -25,10 +25,10 @@ import { ref, onUnmounted } from "vue";
import { getUrlParams } from "@/utils/UrlParams"; import { getUrlParams } from "@/utils/UrlParams";
import { useAppStore } from "@/store"; import { useAppStore } from "@/store";
import { checkToken } from "@/hooks/useGoLogin"; import { checkToken } from "@/hooks/useGoLogin";
import ChatMainList from "./components/chat/ChatMainList/index.vue"; import ChatMainList from "../ChatMain/ChatMainList/index.vue";
import MoreService from "../ChatModule/MoreService/index.vue";
import DrawerSection from "../DrawerSection/index.vue";
import Calender from "@/components/Calender/index.vue"; import Calender from "@/components/Calender/index.vue";
import MoreService from "./components/module/MoreService/index.vue";
import DrawerSection from "./components/DrawerSection/index.vue";
const appStore = useAppStore(); const appStore = useAppStore();

2322
yarn.lock

File diff suppressed because it is too large Load Diff