|
|
|
@ -162,6 +162,7 @@ export default {
|
|
|
|
|
}; |
|
|
|
|
}, |
|
|
|
|
mounted: function() { |
|
|
|
|
|
|
|
|
|
// this.titleInfo(); |
|
|
|
|
// this.getIndexGroomList(); |
|
|
|
|
getBanner(4).then(res => { |
|
|
|
@ -191,20 +192,27 @@ export default {
|
|
|
|
|
}) |
|
|
|
|
return this.hotListData.hotListDTOS |
|
|
|
|
}) |
|
|
|
|
|
|
|
|
|
this.form.mouth = this.mouthList[0]; |
|
|
|
|
this.classifyList = this.hotListData[this.form.mouth].hotListDTOS; |
|
|
|
|
// this.form.hotListId = this.classifyList[this.classifyType].id; |
|
|
|
|
this.form.hotListId = ''; |
|
|
|
|
this.subclassList = this.classifyList[this.classifyType].cateDtos; |
|
|
|
|
// this.subclassList.unshift({ |
|
|
|
|
// cateId:'', |
|
|
|
|
// cateName:'全部', |
|
|
|
|
// }) |
|
|
|
|
this.subclass = this.subclassList[0]; |
|
|
|
|
// this.form.cateId = this.subclass.cateId; |
|
|
|
|
this.form.cateId = ' '; |
|
|
|
|
this.getHotList(); |
|
|
|
|
if(this.$yroute.query.hotName){ |
|
|
|
|
this.classifyList.forEach((hot,hotIndex)=>{ |
|
|
|
|
if(hot.listName===this.$yroute.query.hotName) { |
|
|
|
|
this.subclassList = this.classifyList[hotIndex].cateDtos; |
|
|
|
|
this.subclass = this.subclassList[0]; |
|
|
|
|
this.form.cateId = this.subclass.cateId; |
|
|
|
|
this.changeClassify(hotIndex) |
|
|
|
|
} |
|
|
|
|
}) |
|
|
|
|
}else{ |
|
|
|
|
// this.form.hotListId = this.classifyList[this.classifyType].id; |
|
|
|
|
this.form.hotListId = ''; |
|
|
|
|
this.subclassList = this.classifyList[this.classifyType].cateDtos; |
|
|
|
|
this.subclass = this.subclassList[0]; |
|
|
|
|
// this.form.cateId = this.subclass.cateId; |
|
|
|
|
this.form.cateId = ' '; |
|
|
|
|
this.getHotList(); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
}) |
|
|
|
|
}, |
|
|
|
|
// 月份 |
|
|
|
|