yujialong 3 months ago
parent 92adb99281
commit 42ec27d6e7
  1. 10
      src/components/menuTree/index.vue
  2. 19
      src/layouts/home/index.vue
  3. 8
      src/pages/article/index.vue
  4. 2
      src/pages/column/index.vue
  5. 2
      src/pages/shop/show/index.vue

@ -84,4 +84,14 @@ export default {
}
}
}
@media (max-width: 640px) {
.nav {
&>.menu-child {
&>.el-menu-item {
font-size: 1rem;
}
}
}
}
</style>

@ -39,10 +39,18 @@ export default {
this.$refs.header.showSearch = false
}
this.getSeo()
},
methods: {
...mapMutations('content', [
'setSite'
]),
// seo
this.$get(this.api.seoList, {
siteId: +this.$route.query.siteId || this.$store.state.content.site
}).then(({ data }) => {
async getSeo () {
const siteId = +this.$route.query.siteId || (location.href.includes('eduvessel') ? 7 : 1)
const { data } = await this.$get(this.api.seoList, {
siteId
})
if (data.length) {
// favicon
if (data[0].iconUrl) {
@ -62,12 +70,7 @@ export default {
document.querySelector('meta[name="description"]').setAttribute('content', data[0].description)
document.querySelector('title').innerHTML = data[0].title
}
}).catch(err => { })
},
methods: {
...mapMutations('content', [
'setSite'
]),
handleClass () {
return this.enSite.includes(+this.$route.query.siteId || this.$store.state.content.site)
},

@ -31,7 +31,7 @@
</ul>
</div>
</div>
<RightColumns ref="right" :party="isParty" />
<RightColumns v-if="!isPeople" ref="right" :party="isParty" />
</div>
</div>
</div>
@ -121,7 +121,7 @@ export default {
this.$router.replace((temId === 25 ? '/article/activity' : '/publish/show') + path)
} else {
if (temId == 69) this.isParty = 1 // articleTemplate=69class
if (temId == 72 || temId == 72) this.isPeople = 1 // articleTemplate=7280
if (temId == 72 || temId == 80) this.isPeople = 1 // articleTemplate=7280
data.releaseTime = data.releaseTime.split(' ')[0]
this.form = data
// tinymcebugpptext-indentfont-size2em
@ -212,6 +212,10 @@ export default {
.left {
width: 76%;
&:only-child {
width: 100%;
}
}
h2 {

@ -613,7 +613,7 @@ export default {
this.page = 1
const { typeId } = to;
// /
if (left && to.level === 1 && (typeId === 2 || typeId === 3)) return false;
if (left && (to.level === 1 && (typeId === 2 || typeId === 3) || to.menuVisible)) return false;
//
if (to.templateId === 8) {
this.$router.replace(`/publish?id=${this.id}&siteId=${this.site}`).catch(() => { })

@ -389,7 +389,7 @@ export default {
},
//
toDetail (id) {
this.$router.push(`/index/show?id=${id}`)
this.$router.push(`/shop/show?id=${id}`)
this.id = id
this.getData()
},

Loading…
Cancel
Save