|
|
@ -380,10 +380,13 @@ export default {
|
|
|
|
return "-"
|
|
|
|
return "-"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
|
|
|
},
|
|
|
|
|
|
|
|
//根据传入的类型,去分发状态
|
|
|
|
titleInfoObjtype(type = "0,1") {
|
|
|
|
titleInfoObjtype(type = "0,1") {
|
|
|
|
console.log(type);
|
|
|
|
console.log(type);
|
|
|
|
let list = type.split(",")
|
|
|
|
let list = type.split(",")
|
|
|
|
|
|
|
|
//顶部展示
|
|
|
|
this.listTow = []
|
|
|
|
this.listTow = []
|
|
|
|
|
|
|
|
//tab的分页状态
|
|
|
|
this.chanckListTow = []
|
|
|
|
this.chanckListTow = []
|
|
|
|
this.chanckList.forEach(res => {
|
|
|
|
this.chanckList.forEach(res => {
|
|
|
|
list.forEach(element => {
|
|
|
|
list.forEach(element => {
|
|
|
@ -393,11 +396,13 @@ export default {
|
|
|
|
}
|
|
|
|
}
|
|
|
|
});
|
|
|
|
});
|
|
|
|
})
|
|
|
|
})
|
|
|
|
|
|
|
|
//tab的下标
|
|
|
|
this.activeName = this.chanckListTow[0].lable
|
|
|
|
this.activeName = this.chanckListTow[0].lable
|
|
|
|
if(localStorage.getItem("activeName")){
|
|
|
|
if(localStorage.getItem("activeName")){
|
|
|
|
this.activeName = localStorage.getItem("activeName")
|
|
|
|
this.activeName = localStorage.getItem("activeName")
|
|
|
|
localStorage.setItem("activeName",this.activeName)
|
|
|
|
localStorage.setItem("activeName",this.activeName)
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
//动态列表
|
|
|
|
let listname = this.chanckListTow.filter(item=> item.lable == this.activeName)
|
|
|
|
let listname = this.chanckListTow.filter(item=> item.lable == this.activeName)
|
|
|
|
if(listname){
|
|
|
|
if(listname){
|
|
|
|
this.xtmcName = listname[0].xtmcName
|
|
|
|
this.xtmcName = listname[0].xtmcName
|
|
|
|