yujialong 3 months ago
parent 92adb99281
commit 42ec27d6e7
  1. 10
      src/components/menuTree/index.vue
  2. 21
      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> </style>

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

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

@ -613,7 +613,7 @@ export default {
this.page = 1 this.page = 1
const { typeId } = to; 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) { if (to.templateId === 8) {
this.$router.replace(`/publish?id=${this.id}&siteId=${this.site}`).catch(() => { }) this.$router.replace(`/publish?id=${this.id}&siteId=${this.site}`).catch(() => { })

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

Loading…
Cancel
Save