feat: 聊天的结构调整
This commit is contained in:
@@ -45,14 +45,9 @@
|
|||||||
|
|
||||||
<template v-else>
|
<template v-else>
|
||||||
<ChatCardOther class="message-item-other" :text="item.msg">
|
<ChatCardOther class="message-item-other" :text="item.msg">
|
||||||
<OneFeelMK001 v-if="mainPageDataModel.activityList.length > 0" :activityList="mainPageDataModel.activityList"/>
|
<ActivityListComponent v-if="mainPageDataModel.activityList.length > 0" :activityList="mainPageDataModel.activityList"/>
|
||||||
|
|
||||||
<template v-if="mainPageDataModel.recommendTheme.length > 0">
|
<RecommendPostsComponent v-if="mainPageDataModel.recommendTheme.length > 0" :recommendThemeList="mainPageDataModel.recommendTheme" />
|
||||||
<template v-for="(item) in mainPageDataModel.recommendTheme" :key="item.themeName">
|
|
||||||
<OneFeelMK002 :recommendTheme="item"/>
|
|
||||||
</template>
|
|
||||||
</template>
|
|
||||||
|
|
||||||
</ChatCardOther>
|
</ChatCardOther>
|
||||||
</template>
|
</template>
|
||||||
</view>
|
</view>
|
||||||
@@ -92,18 +87,17 @@
|
|||||||
import ChatMoreTips from './ChatMoreTips.vue';
|
import ChatMoreTips from './ChatMoreTips.vue';
|
||||||
import ChatInputArea from './ChatInputArea.vue'
|
import ChatInputArea from './ChatInputArea.vue'
|
||||||
import CommandWrapper from '@/components/CommandWrapper/index.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 CreateServiceOrder from '@/components/CreateServiceOrder/index.vue'
|
||||||
|
|
||||||
|
|
||||||
|
import { agentChatStream } from '@/request/api/AgentChatStream';
|
||||||
import OneFeelMK001 from '../module/OneFeelMK001.vue';
|
import { mainPageData } from '@/request/api/MainPageDataApi';
|
||||||
import OneFeelMK002 from '../module/OneFeelMK002.vue';
|
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';
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -14,8 +14,8 @@
|
|||||||
import QuickBookingContentList from './QuickBookingContentList.vue'
|
import QuickBookingContentList from './QuickBookingContentList.vue'
|
||||||
import { ref, nextTick } from 'vue'
|
import { ref, nextTick } from 'vue'
|
||||||
import { onMounted } from 'vue'
|
import { onMounted } from 'vue'
|
||||||
import { quickBookingComponent } from '../../request/api/MainPageDataApi'
|
import { quickBookingComponent } from '@/request/api/MainPageDataApi'
|
||||||
import { SCROLL_TO_BOTTOM } from '../../constant/constant'
|
import { SCROLL_TO_BOTTOM } from '@/constant/constant'
|
||||||
|
|
||||||
const commodityGroupDTOList = ref([])
|
const commodityGroupDTOList = ref([])
|
||||||
|
|
||||||
@@ -9,8 +9,8 @@
|
|||||||
<script setup>
|
<script setup>
|
||||||
import { ref, nextTick } from 'vue'
|
import { ref, nextTick } from 'vue'
|
||||||
import { onMounted } from 'vue'
|
import { onMounted } from 'vue'
|
||||||
import { discoveryCradComponent } from '../../request/api/MainPageDataApi'
|
import { discoveryCradComponent } from '@/request/api/MainPageDataApi'
|
||||||
import { SCROLL_TO_BOTTOM } from '../../constant/constant'
|
import { SCROLL_TO_BOTTOM } from '@/constant/constant'
|
||||||
import DiscoveryCradContentList from './DiscoveryCradContentList.vue'
|
import DiscoveryCradContentList from './DiscoveryCradContentList.vue'
|
||||||
|
|
||||||
const themeDTOList = ref([])
|
const themeDTOList = ref([])
|
||||||
29
pages/module/recommend/RecommendPostsComponent.vue
Normal file
29
pages/module/recommend/RecommendPostsComponent.vue
Normal 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>
|
||||||
Reference in New Issue
Block a user