feat(首页): 更新热门问题展示和样式
This commit is contained in:
parent
9cd36adf7b
commit
ed3dc52aa0
|
|
@ -257,7 +257,7 @@ export default {
|
|||
|
||||
this.$u.api
|
||||
.DeleteDialogueManagement({
|
||||
id: item.id,
|
||||
id: [item.id],
|
||||
})
|
||||
.then((res) => {
|
||||
if (res.succeed) {
|
||||
|
|
|
|||
|
|
@ -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 |
Loading…
Reference in New Issue