a1300399510@qq.com 提交于 2023/04/06 -18:20:02
This commit is contained in:
parent
7c79f44ace
commit
0a7d45e2e5
@ -23,7 +23,10 @@
|
||||
|
||||
</div>
|
||||
<div v-else style="margin:.64rem 0;">
|
||||
<plate-navigation :stairname="plate.stairname" :subsectionsname="plate.subsectionsname"></plate-navigation>
|
||||
<div @click.stop="backAll()">
|
||||
<plate-navigation :stairname="plate.stairname" :subsectionsname="plate.subsectionsname"></plate-navigation>
|
||||
</div>
|
||||
|
||||
<div style="margin:.4rem 0.35rem">
|
||||
<index-list :list="invitationList"></index-list>
|
||||
</div>
|
||||
@ -47,7 +50,6 @@ export default {
|
||||
allActive: 0,
|
||||
list: [{}],
|
||||
postCollectionState: false, // 收藏的请求的状态
|
||||
|
||||
fid: 0, // 是否有选中的板块id
|
||||
invitationList: [], // 选中板块帖子的列表
|
||||
invitationLimit: 10,
|
||||
@ -63,6 +65,10 @@ export default {
|
||||
},
|
||||
|
||||
methods: {
|
||||
backAll() {
|
||||
this.fid = 0
|
||||
},
|
||||
|
||||
allClick(index) {
|
||||
this.allActive = index
|
||||
},
|
||||
@ -110,13 +116,9 @@ export default {
|
||||
});
|
||||
},
|
||||
|
||||
|
||||
// 点击选中板块 并获取列表
|
||||
pitchPlate(fid, subsectionsname) {
|
||||
console.log(fid);
|
||||
|
||||
this.fid = fid
|
||||
console.log(subsectionsname, "subsectionsname");
|
||||
this.plate = {
|
||||
stairname: this.list[this.allActive].name,
|
||||
subsectionsname,
|
||||
@ -132,7 +134,6 @@ export default {
|
||||
limit: this.invitationLimit,
|
||||
fid: this.fid
|
||||
}).then(res => {
|
||||
console.log(res, "res");
|
||||
let data = res.data
|
||||
this.invitationList = data.data
|
||||
this.invitationCount = data.count
|
||||
|
@ -39,6 +39,7 @@ export default {
|
||||
let data = res.data
|
||||
this.favorite = data.favorite
|
||||
this.recommend = data.recommend
|
||||
|
||||
})
|
||||
},
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user