feat: 消息组件 回答组件
This commit is contained in:
@@ -10,6 +10,7 @@
|
||||
:scroll-with-animation="true" @scroll="handleScroll" @scrolltolower="handleScrollToLower">
|
||||
<!-- welcome栏 -->
|
||||
<ChatTopWelcome ref="welcomeRef" :mainPageDataModel="mainPageDataModel" />
|
||||
<NoticeMessage></NoticeMessage>
|
||||
|
||||
<view class="area-msg-list-content" v-for="item in chatMsgList" :key="item.msgId" :id="item.msgId">
|
||||
<template v-if="item.msgType === MessageRole.AI">
|
||||
@@ -26,6 +27,9 @@
|
||||
<OpenMapComponent v-else-if="
|
||||
item.toolCall.componentName === CompName.openMapCard
|
||||
" />
|
||||
<AnswerComponent v-else-if="
|
||||
item.toolCall.componentName === CompName.answerCard
|
||||
" />
|
||||
<Feedback v-else-if="
|
||||
item.toolCall.componentName === CompName.feedbackCard
|
||||
" :toolCall="item.toolCall" />
|
||||
@@ -90,6 +94,7 @@ import {
|
||||
} from "@/constant/constant";
|
||||
import { MessageRole, CompName } from "@/model/ChatModel";
|
||||
import ChatTopWelcome from "../ChatTopWelcome/index.vue";
|
||||
import NoticeMessage from "../NoticeMessage/index.vue";
|
||||
import ChatTopNavBar from "../ChatTopNavBar/index.vue";
|
||||
import ChatCardAI from "../ChatCardAi/index.vue";
|
||||
import ChatCardMine from "../ChatCardMine/index.vue";
|
||||
@@ -103,6 +108,7 @@ import RecommendPostsComponent from "../../module/RecommendPostsComponent/index.
|
||||
import AttachListComponent from "../../module/AttachListComponent/index.vue";
|
||||
import DetailCardCompontent from "../../module/DetailCardCompontent/index.vue";
|
||||
import OpenMapComponent from "../../module/OpenMapComponent/index.vue";
|
||||
import AnswerComponent from "../../module/AnswerComponent/index.vue";
|
||||
import CreateServiceOrder from "@/components/CreateServiceOrder/index.vue";
|
||||
import Feedback from "@/components/Feedback/index.vue";
|
||||
import AddCarCrad from "@/components/AddCarCrad/index.vue";
|
||||
|
||||
31
src/pages/index/components/chat/NoticeMessage/index.vue
Normal file
31
src/pages/index/components/chat/NoticeMessage/index.vue
Normal file
@@ -0,0 +1,31 @@
|
||||
<template>
|
||||
|
||||
<view class="border-box pl-12 pr-12">
|
||||
<view class="wrap rounded-20 bg-white relative overflow-hidden">
|
||||
<view class="flex flex-col p-16 mr-110 border-box">
|
||||
<view class="flex flex-row flex-items-center justify-center">
|
||||
<view class="w-24 h-24 rounded-full bg-theme-color-500 flex flex-items-center flex-justify-center">
|
||||
<uni-icons type="sound" size="16" color="#ffffff"/>
|
||||
</view>
|
||||
<text class="font-size-16 font-500 text-color-900 ml-6">临时提醒</text>
|
||||
</view>
|
||||
<view class="font-size-12 font-color-600 mt-8">现在拥堵严重请绕道而行现在拥堵严重,请绕道而行现在拥堵严重,请绕道而行现在拥堵严重请绕道而行现在拥堵严重,请绕道而行现在拥堵严重,请绕道而行</view>
|
||||
</view>
|
||||
<image class="mt-4 object-cover absolute right-0 bottom-0 bg-image" src="./notice_bg_img.png"/>
|
||||
</view>
|
||||
</view>
|
||||
|
||||
</template>
|
||||
|
||||
<script setup>
|
||||
</script>
|
||||
|
||||
<style lang="scss" scoped>
|
||||
.bg-image {
|
||||
width: 140px;
|
||||
height: 96px;
|
||||
}
|
||||
.mr-110 {
|
||||
margin-right: 110px;
|
||||
}
|
||||
</style>
|
||||
BIN
src/pages/index/components/chat/NoticeMessage/notice_bg_img.png
Normal file
BIN
src/pages/index/components/chat/NoticeMessage/notice_bg_img.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 178 KiB |
Reference in New Issue
Block a user