修改菜单

master
夜笙歌 3 weeks ago
parent 6f8e402751
commit 8b30094272

@ -29,7 +29,7 @@
<div class="info2"> <div class="info2">
<div class="name2">产品图示</div> <div class="name2">产品图示</div>
</div> </div>
<div v-for=" i in contentList.hwProductInfoDetailList.map(e=>e.productInfoDetailPic)"> <div v-for=" i in ((contentList||{}).hwProductInfoDetailList||[]).map(e=>e.productInfoDetailPic)">
<img :src="i.productInfoDetailPic" alt="" <img :src="i.productInfoDetailPic" alt=""
style="width: 100%"> style="width: 100%">
</div> </div>
@ -91,13 +91,14 @@ export default {
}, },
watch: { watch: {
'$route'() { '$route'() {
this.getData() console.log('$route')
this.getContentList()
} }
}, },
methods: { methods: {
getContentList(id) { getContentList(id) {
getProductCenterProductInfos({ getProductCenterProductInfos({
configTypeId: id, configTypeId: this.$route.query.id,
// parentId: 0 // parentId: 0
}).then(e => { }).then(e => {
this.contentList = e.data.filter(v => v.configModal === '13').sort((a, b) => a.productInfoOrder - b.productInfoOrder)?.[0] this.contentList = e.data.filter(v => v.configModal === '13').sort((a, b) => a.productInfoOrder - b.productInfoOrder)?.[0]
@ -122,6 +123,7 @@ export default {
this.tabsList = e.rows this.tabsList = e.rows
this.configTypeId = e.rows?.[0]?.configTypeId this.configTypeId = e.rows?.[0]?.configTypeId
if (e.rows?.[0]?.configTypeId) { if (e.rows?.[0]?.configTypeId) {
console.log('getContentList')
this.getContentList(e.rows?.[0]?.configTypeId) this.getContentList(e.rows?.[0]?.configTypeId)
} else { } else {
this.contentList = [] this.contentList = []

Loading…
Cancel
Save