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
.DeleteDialogueManagement({
id: item.id,
id: [item.id],
})
.then((res) => {
if (res.succeed) {

View File

@ -34,10 +34,10 @@
<view class="qa-list">
<view
class="qa-item"
v-for="(item, index) in questionList"
v-for="(item, index) in hotQuestions"
:key="index"
>
<text class="qa-question">{{ item }}</text>
<text class="qa-question">{{ item.content }}</text>
</view>
</view>
@ -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;

Binary file not shown.

After

Width:  |  Height:  |  Size: 55 KiB