feat: 聊天的结构调整

This commit is contained in:
2025-08-02 16:55:23 +08:00
parent ec3413833d
commit 299d755493
8 changed files with 45 additions and 22 deletions

View File

@@ -45,14 +45,9 @@
<template v-else>
<ChatCardOther class="message-item-other" :text="item.msg">
<OneFeelMK001 v-if="mainPageDataModel.activityList.length > 0" :activityList="mainPageDataModel.activityList"/>
<template v-if="mainPageDataModel.recommendTheme.length > 0">
<template v-for="(item) in mainPageDataModel.recommendTheme" :key="item.themeName">
<OneFeelMK002 :recommendTheme="item"/>
</template>
</template>
<ActivityListComponent v-if="mainPageDataModel.activityList.length > 0" :activityList="mainPageDataModel.activityList"/>
<RecommendPostsComponent v-if="mainPageDataModel.recommendTheme.length > 0" :recommendThemeList="mainPageDataModel.recommendTheme" />
</ChatCardOther>
</template>
</view>
@@ -92,18 +87,17 @@
import ChatMoreTips from './ChatMoreTips.vue';
import ChatInputArea from './ChatInputArea.vue'
import CommandWrapper from '@/components/CommandWrapper/index.vue'
import QuickBookingComponent from '../booking/QuickBookingComponent.vue'
import DiscoveryCardComponent from '../discovery/DiscoveryCardComponent.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 CreateServiceOrder from '@/components/CreateServiceOrder/index.vue'
import OneFeelMK001 from '../module/OneFeelMK001.vue';
import OneFeelMK002 from '../module/OneFeelMK002.vue';
import { agentChatStream } from '../../request/api/AgentChatStream';
import { mainPageData } from '../../request/api/MainPageDataApi';
import { conversationMsgList, recentConversation } from '../../request/api/ConversationApi';
import { agentChatStream } from '@/request/api/AgentChatStream';
import { mainPageData } from '@/request/api/MainPageDataApi';
import { conversationMsgList, recentConversation } from '@/request/api/ConversationApi';

View File

@@ -14,8 +14,8 @@
import QuickBookingContentList from './QuickBookingContentList.vue'
import { ref, nextTick } from 'vue'
import { onMounted } from 'vue'
import { quickBookingComponent } from '../../request/api/MainPageDataApi'
import { SCROLL_TO_BOTTOM } from '../../constant/constant'
import { quickBookingComponent } from '@/request/api/MainPageDataApi'
import { SCROLL_TO_BOTTOM } from '@/constant/constant'
const commodityGroupDTOList = ref([])

View File

@@ -9,8 +9,8 @@
<script setup>
import { ref, nextTick } from 'vue'
import { onMounted } from 'vue'
import { discoveryCradComponent } from '../../request/api/MainPageDataApi'
import { SCROLL_TO_BOTTOM } from '../../constant/constant'
import { discoveryCradComponent } from '@/request/api/MainPageDataApi'
import { SCROLL_TO_BOTTOM } from '@/constant/constant'
import DiscoveryCradContentList from './DiscoveryCradContentList.vue'
const themeDTOList = ref([])

View File

@@ -0,0 +1,29 @@
<template>
<view class="container">
<view v-for="item in recommendThemeList" :key="item.themeName">
<RecommendPostsList :recommendTheme="item" />
</view>
</view>
</template>
<script setup>
import RecommendPostsList from './RecommendPostsList.vue';
import { defineProps } from 'vue'
const props = defineProps({
recommendThemeList: {
type: Array,
default: []
}
})
</script>
<style scoped lang="scss">
.container {
width: 100%;
flex: 1;
margin-bottom: 12px;
}
</style>