diff --git a/components/ChatHistory.vue b/components/ChatHistory.vue index 47b395c..3e690e7 100644 --- a/components/ChatHistory.vue +++ b/components/ChatHistory.vue @@ -257,7 +257,7 @@ export default { this.$u.api .DeleteDialogueManagement({ - id: item.id, + id: [item.id], }) .then((res) => { if (res.succeed) { diff --git a/pages/home/index/index.vue b/pages/home/index/index.vue index 102c81b..41657c8 100644 --- a/pages/home/index/index.vue +++ b/pages/home/index/index.vue @@ -34,10 +34,10 @@ - {{ item }} + {{ item.content }} @@ -316,6 +316,8 @@ export default { noMoreData: false, // 是否已加载全部历史消息 isSwitchingConversation: false, // 是否正在切换对话的标志位 + hotQuestions: [], // 热门问题 + pageQuery: { PageIndex: 1, PageSize: 20, @@ -840,11 +842,8 @@ export default { this.$u.api.GetHotQuestions({}).then((res) => { if (res.succeed) { - console.log("GetHotQuestions.....", res.data); - const res = { - enrollment: [], // 注册 - orientation: [], // 定向 - }; + console.log("GetHotQuestions.....", res.data); // enrollment 招生咨询 orientation 迎新咨询 + this.hotQuestions = res.data.enrollment.concat(res.data.orientation); } }); }, @@ -910,9 +909,9 @@ export default { } .qa-section { - background-image: url("@/static/common/images/hot-question-bg1.png"); + background-image: url("@/static/common/images/hot-question-bg11.png"); background-repeat: no-repeat; - background-size: 100% 100%; + background-size: 110% 130%; background-position: 0 0; // background-attachment: fixed; // background-color: #ffffff; @@ -955,7 +954,7 @@ export default { .qa-list { .qa-item { - margin-bottom: 24rpx; + margin-bottom: 16rpx; .qa-question { font-size: 28rpx; diff --git a/static/common/images/hot-question-bg11.png b/static/common/images/hot-question-bg11.png new file mode 100644 index 0000000..d6d6837 Binary files /dev/null and b/static/common/images/hot-question-bg11.png differ