|
|
|
@ -403,6 +403,7 @@ export default { |
|
|
|
|
}, |
|
|
|
|
methods: { |
|
|
|
|
init () { |
|
|
|
|
this.columnBanner = '' |
|
|
|
|
this.getInfo(); |
|
|
|
|
this.getColumn(); |
|
|
|
|
this.getNews(); |
|
|
|
@ -448,14 +449,14 @@ export default { |
|
|
|
|
}).catch(err => { }) |
|
|
|
|
} |
|
|
|
|
}, |
|
|
|
|
// 获取banner 规则:当前栏目有上传的,用当前的,没有上传的话,读取上级的(上级没有读上上级,以此类推)都没有的读取默认的 |
|
|
|
|
// 获取banner 规则:当前栏目有上传的,用当前的,没有上传的话,读取上级的(上级没有读上上级,以此类推)都没有的话读取默认的 |
|
|
|
|
getBanner (data) { |
|
|
|
|
for (const e of data) { |
|
|
|
|
if (e.columnBanner) this.columnBanner = e.columnBanner; |
|
|
|
|
if (e.columnBanner) this.columnBanner = e.columnBanner |
|
|
|
|
if (e.id == this.info.id) { |
|
|
|
|
break; |
|
|
|
|
break |
|
|
|
|
} else if (e.children.length) { |
|
|
|
|
this.getBanner(e.children); |
|
|
|
|
this.getBanner(e.children) |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
}, |
|
|
|
@ -879,10 +880,6 @@ export default { |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
/deep/.columns { |
|
|
|
|
&+.detail { |
|
|
|
|
padding-left: 20px; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
width: 22%; |
|
|
|
|
margin-right: 0.6rem; |
|
|
|
|
overflow: auto; |
|
|
|
@ -1229,6 +1226,7 @@ export default { |
|
|
|
|
.detail { |
|
|
|
|
flex: 1; |
|
|
|
|
max-width: 77%; |
|
|
|
|
min-height: calc(100vh - 24rem - 90px); |
|
|
|
|
padding: 20px; |
|
|
|
|
background-color: #fff; |
|
|
|
|
overflow: auto; |
|
|
|
|