feat(首页): 更新热门问题展示和样式
This commit is contained in:
parent
9cd36adf7b
commit
ed3dc52aa0
|
|
@ -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) {
|
||||||
|
|
|
||||||
|
|
@ -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 |
Loading…
Reference in New Issue