feat(首页): 更新热门问题展示和样式

This commit is contained in:
yangzhe 2025-11-28 14:51:23 +08:00
parent 9cd36adf7b
commit ed3dc52aa0
3 changed files with 10 additions and 11 deletions

View File

@ -257,7 +257,7 @@ export default {
this.$u.api this.$u.api
.DeleteDialogueManagement({ .DeleteDialogueManagement({
id: item.id, id: [item.id],
}) })
.then((res) => { .then((res) => {
if (res.succeed) { if (res.succeed) {

View File

@ -34,10 +34,10 @@
<view class="qa-list"> <view class="qa-list">
<view <view
class="qa-item" class="qa-item"
v-for="(item, index) in questionList" v-for="(item, index) in hotQuestions"
:key="index" :key="index"
> >
<text class="qa-question">{{ item }}</text> <text class="qa-question">{{ item.content }}</text>
</view> </view>
</view> </view>
@ -316,6 +316,8 @@ export default {
noMoreData: false, // noMoreData: false, //
isSwitchingConversation: false, // isSwitchingConversation: false, //
hotQuestions: [], //
pageQuery: { pageQuery: {
PageIndex: 1, PageIndex: 1,
PageSize: 20, PageSize: 20,
@ -840,11 +842,8 @@ export default {
this.$u.api.GetHotQuestions({}).then((res) => { this.$u.api.GetHotQuestions({}).then((res) => {
if (res.succeed) { if (res.succeed) {
console.log("GetHotQuestions.....", res.data); console.log("GetHotQuestions.....", res.data); // enrollment orientation
const res = { this.hotQuestions = res.data.enrollment.concat(res.data.orientation);
enrollment: [], //
orientation: [], //
};
} }
}); });
}, },
@ -910,9 +909,9 @@ export default {
} }
.qa-section { .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-repeat: no-repeat;
background-size: 100% 100%; background-size: 110% 130%;
background-position: 0 0; background-position: 0 0;
// background-attachment: fixed; // background-attachment: fixed;
// background-color: #ffffff; // background-color: #ffffff;
@ -955,7 +954,7 @@ export default {
.qa-list { .qa-list {
.qa-item { .qa-item {
margin-bottom: 24rpx; margin-bottom: 16rpx;
.qa-question { .qa-question {
font-size: 28rpx; font-size: 28rpx;

Binary file not shown.

After

Width:  |  Height:  |  Size: 55 KiB