mobile
yujialong 2 years ago
parent 52b658af41
commit 5afd3c602a
  1. 34
      src/components/breadcrumb/index.vue
  2. 6
      src/layouts/footer/index.vue
  3. 18
      src/layouts/header/index.vue
  4. 6
      src/layouts/navbar/index.vue
  5. 6
      src/mixins/article/index.js
  6. 2
      src/mixins/page/index.js
  7. 29
      src/pages/about/index.vue
  8. 15
      src/pages/application/index.vue
  9. 65
      src/pages/article/activity.vue
  10. 46
      src/pages/article/index.vue
  11. 4
      src/pages/careers/index.vue
  12. 45
      src/pages/column/index.vue
  13. 14
      src/pages/edu/index.vue
  14. 9
      src/pages/home/index.vue
  15. 11
      src/pages/news/index.vue
  16. 93
      src/pages/newsPress/index.vue
  17. 93
      src/pages/newsProcurement/index.vue
  18. 17
      src/pages/research/index.vue
  19. 8
      src/styles/common.scss
  20. 8
      src/styles/page/page.scss

@ -2,17 +2,17 @@
<!-- 面包屑 --> <!-- 面包屑 -->
<div class="breadcrumb"> <div class="breadcrumb">
<el-breadcrumb separator=">"> <el-breadcrumb separator=">">
<template v-for="(item, index) in pages"> <template v-for="(item, i) in data">
<el-breadcrumb-item <el-breadcrumb-item
v-if="index != pages.length - 1" v-if="i != data.length - 1"
:key="index" :key="i"
:to="{ path: route, query }"> :to="{ path: item.path || '/column', query: item.query }">
{{item}} {{ item.name }}
</el-breadcrumb-item> </el-breadcrumb-item>
<el-breadcrumb-item <el-breadcrumb-item
v-else v-else
:key="index"> :key="i">
{{item}} {{ item.name }}
</el-breadcrumb-item> </el-breadcrumb-item>
</template> </template>
</el-breadcrumb> </el-breadcrumb>
@ -21,28 +21,14 @@
<script> <script>
export default { export default {
props: { props: ['data'],
data: {
type: String,
required: true
},
route: {
type: String,
default: 'column'
},
query: {
type: Object
}
},
data() { data() {
return { return {
pages: this.data.split('/')
}; };
}, },
methods: { methods: {
update(data) {
this.pages = data.split('/')
}
} }
}; };
</script> </script>

@ -26,7 +26,6 @@ export default {
mixins: [mixins], mixins: [mixins],
data() { data() {
return { return {
site: this.$store.state.content.site,
columns: [], columns: [],
isIndex: this.$route.path !== '/login' && Setting.whiteList.some(e => e === this.$route.path) // 3 isIndex: this.$route.path !== '/login' && Setting.whiteList.some(e => e === this.$route.path) // 3
}; };
@ -44,7 +43,7 @@ export default {
typeId : '', typeId : '',
isSort: 1 isSort: 1
}).then(({ data }) => { }).then(({ data }) => {
this.columns = data.slice(0, 8) this.columns = data.slice(0, 6)
}).catch(err => {}) }).catch(err => {})
}, },
}, },
@ -56,8 +55,9 @@ export default {
color: #fff; color: #fff;
background-color: #091733; background-color: #091733;
.inner { .inner {
width: 1500px; width: 80%;
margin: 0 auto; margin: 0 auto;
overflow: hidden;
} }
.info { .info {
display: flex; display: flex;

@ -8,7 +8,7 @@
深圳中能高重复自由电子激光 --> 深圳中能高重复自由电子激光 -->
</template> </template>
</a> </a>
<navbar ref="nav"></navbar> <navbar ref="nav" :isHome.sync="isHome"></navbar>
<div class="tools"> <div class="tools">
<img class="search" :src="require('@/assets/images/search' + (isHome ? '-white' : '') + '.png')" alt="" @click="showSearch = !showSearch"> <img class="search" :src="require('@/assets/images/search' + (isHome ? '-white' : '') + '.png')" alt="" @click="showSearch = !showSearch">
<img :src="require('@/assets/images/cn' + (isHome ? '-white' : '') + '.png')" alt="" @click="showSearch = !showSearch"> <img :src="require('@/assets/images/cn' + (isHome ? '-white' : '') + '.png')" alt="" @click="showSearch = !showSearch">
@ -40,15 +40,27 @@ export default {
this.isHome = this.$route.path === '/home' this.isHome = this.$route.path === '/home'
} }
}, },
beforeDestroy () {
window.removeEventListener('scroll', this.handleScroll)
},
mounted() { mounted() {
window.addEventListener('scroll', this.handleScroll) //
}, },
methods: { methods: {
toIndex() { toIndex() {
this.$refs.nav.jump({ this.$refs.nav.jump({
index: '/index/list' index: '/index/list'
}) })
} },
// (home)
handleScroll () {
if (this.$route.path === '/home') {
let scrollTop = window.pageYOffset || document.documentElement.scrollTop || document.body.scrollTop
if (this.isHome == scrollTop > 907) {
this.isHome = !(scrollTop > 907)
}
}
},
} }
}; };
</script> </script>

@ -11,11 +11,10 @@ import Setting from '@/setting'
import menuTree from '@/components/menuTree' import menuTree from '@/components/menuTree'
import mixins from '@/mixins/article' import mixins from '@/mixins/article'
export default { export default {
props: ['isHome'],
mixins: [mixins], mixins: [mixins],
data() { data() {
return { return {
site: this.$store.state.content.site,
isHome: this.$route.path === '/home',
active: this.$route.query.id, active: this.$route.query.id,
menus: [], menus: [],
bgColor: '#fff', bgColor: '#fff',
@ -33,6 +32,9 @@ export default {
'$route'() { '$route'() {
this.isHome = this.$route.path === '/home' this.isHome = this.$route.path === '/home'
this.handleColor() this.handleColor()
},
isHome() {
this.handleColor()
} }
}, },
mounted() { mounted() {

@ -4,7 +4,7 @@ export default {
data() { data() {
return { return {
site: this.$store.state.content.site, site: this.$store.state.content.site,
id: this.$route.query.id id: +this.$route.query.id
} }
}, },
mounted() { mounted() {
@ -43,5 +43,9 @@ export default {
this.$router.push(`/${typeId === 3 ? to.path : 'column'}?id=${to.id}`).catch(err => {}) this.$router.push(`/${typeId === 3 ? to.path : 'column'}?id=${to.id}`).catch(err => {})
} }
}, },
// 跳转文章页面
toArtice(item) {
this.$router.push(`/article?articleId=${item.id}&site=${this.$route.query.siteId || this.site}&id=${item.columnId}`)
}
} }
}; };

@ -56,7 +56,7 @@ export default {
}, },
// 跳转文章页面 // 跳转文章页面
toArtice(item) { toArtice(item) {
this.$router.push(`/article?id=${item.id}&site=${this.$route.query.siteId || this.site}`) this.$router.push(`/article?articleId=${item.id}&site=${this.$route.query.siteId || this.site}&id=${item.columnId}`)
} }
} }
}; };

@ -139,7 +139,7 @@
</div> </div>
<div class="block"> <div class="block">
<div class="inner" style="width: 1581px"> <div class="inner staff-inner">
<h2 class="b-title">{{ modules[21].form.title }}</h2> <h2 class="b-title">{{ modules[21].form.title }}</h2>
<p class="intro">{{ modules[21].form.des }}</p> <p class="intro">{{ modules[21].form.des }}</p>
<div :class="['staff', {'cursor-pointer': modules[22].form.link.linkName !== '无'}]" @click="openLink(modules[22].form)"> <div :class="['staff', {'cursor-pointer': modules[22].form.link.linkName !== '无'}]" @click="openLink(modules[22].form)">
@ -226,7 +226,7 @@ export default {
display: flex; display: flex;
flex-wrap: wrap; flex-wrap: wrap;
li { li {
width: 686px; width: calc((100% - 28px) / 2);
height: 277px; height: 277px;
padding: 70px 67px 20px; padding: 70px 67px 20px;
margin-bottom: 28px; margin-bottom: 28px;
@ -265,12 +265,12 @@ export default {
width: 1575px; width: 1575px;
} }
.pic { .pic {
width: 664px; width: 42%;
height: 488px; height: 488px;
margin-bottom: -120px; margin-bottom: -120px;
} }
.texts { .texts {
width: 802px; width: 51%;
margin-top: 36px; margin-top: 36px;
color: #fff; color: #fff;
} }
@ -292,11 +292,11 @@ export default {
} }
} }
.pic { .pic {
width: 660px; width: 47%;
height: 465px; height: 465px;
} }
.texts { .texts {
width: 680px; width: 49%;
padding-top: 90px; padding-top: 90px;
} }
h6 { h6 {
@ -351,8 +351,11 @@ export default {
display: flex; display: flex;
justify-content: space-between; justify-content: space-between;
background: #F8F8F8; background: #F8F8F8;
.staff-inner {
width: 1581px;
}
.left { .left {
width: 743px; width: 50%;
padding: 108px 43px 0 46px; padding: 108px 43px 0 46px;
} }
h6 { h6 {
@ -367,7 +370,7 @@ export default {
line-height: 34px; line-height: 34px;
} }
.pic { .pic {
width: 838px; width: 53%;
height: 487px; height: 487px;
} }
} }
@ -392,4 +395,14 @@ export default {
font-size: 24px; font-size: 24px;
} }
} }
@media (max-width: 1590px) {
.plan {
.inner {
width: 98%;
}
}
.staff .staff-inner {
width: 98%;
}
}
</style> </style>

@ -27,7 +27,7 @@
</div> </div>
<div class="block"> <div class="block">
<div class="inner" style="width: 1558px"> <div class="inner app-inner">
<h2 class="b-title">{{ modules[2].form.title }}</h2> <h2 class="b-title">{{ modules[2].form.title }}</h2>
<p class="intro">{{ modules[2].form.des }}</p> <p class="intro">{{ modules[2].form.des }}</p>
<ul class="app"> <ul class="app">
@ -147,6 +147,9 @@ export default {
margin: -122px 0 0 0; margin: -122px 0 0 0;
} }
} }
.app-inner {
width: 1558px;
}
.app { .app {
display: flex; display: flex;
flex-wrap: wrap; flex-wrap: wrap;
@ -194,7 +197,7 @@ export default {
flex-wrap: wrap; flex-wrap: wrap;
li { li {
position: relative; position: relative;
width: 448px; width: calc((100% - 56px) / 3);
margin: 0 28px 39px 0; margin: 0 28px 39px 0;
&:nth-child(3n) { &:nth-child(3n) {
margin-right: 0; margin-right: 0;
@ -223,7 +226,7 @@ export default {
flex-wrap: wrap; flex-wrap: wrap;
li { li {
display: inline-flex; display: inline-flex;
width: 686px; width: calc((100% - 56px) / 2);
padding: 34px; padding: 34px;
margin-bottom: 28px; margin-bottom: 28px;
background-color: #fff; background-color: #fff;
@ -244,7 +247,6 @@ export default {
color: #0648A8; color: #0648A8;
} }
.des { .des {
// height: 80px;
margin: 14px 0; margin: 14px 0;
font-size: 16px; font-size: 16px;
color: #333; color: #333;
@ -255,4 +257,9 @@ export default {
color: #999; color: #999;
} }
} }
@media (max-width: 1520px) {
.app-inner {
width: 1558px;
}
}
</style> </style>

@ -1,7 +1,7 @@
<template> <template>
<div class="wrap"> <div class="wrap">
<div class="content" style="width: 1400px;"> <div class="content">
<Breadcrumb ref="breadcrumb" :data="'栏目/' + form.title" route="/column" :query.sync="query"/> <Breadcrumb ref="breadcrumb" :data.sync="routes"/>
<div class="article"> <div class="article">
<div class="left"> <div class="left">
<h2>{{ form.title }}</h2> <h2>{{ form.title }}</h2>
@ -18,23 +18,15 @@
<p class="l-title">热点内容</p> <p class="l-title">热点内容</p>
<ul class="list"> <ul class="list">
<li> <li v-for="(item, i) in hots" :key="i" :title="item.title" @click="toArtice(item)">
<p class="text">喜报 | 深圳粒子研究院荣获全国科研</p> <p class="text">{{ item.title }}</p>
<span class="date">2022-08-09</span> <span class="date">{{ item.createTime }}</span>
</li>
<li>
<p class="text">喜报 | 深圳粒子研究院荣获全国科研</p>
<span class="date">2022-08-09</span>
</li>
<li>
<p class="text">喜报 | 深圳粒子研究院荣获全国科研</p>
<span class="date">2022-08-09</span>
</li> </li>
</ul> </ul>
<p class="l-title">最新资讯</p> <p class="l-title">最新资讯</p>
<ul class="list"> <ul class="list">
<li v-for="(item, i) in news" :key="i"> <li v-for="(item, i) in news" :key="i" @click="toArtice(item)">
<p class="text">{{ item.title }}</p> <p class="text">{{ item.title }}</p>
<span class="date">{{ item.createTime }}</span> <span class="date">{{ item.createTime }}</span>
</li> </li>
@ -54,9 +46,9 @@ export default {
mixins: [mixins], mixins: [mixins],
data() { data() {
return { return {
id: this.$route.query.id, id: this.$route.query.articleId,
columnId: '', columnId: '',
query: {}, routes: {},
form: {}, form: {},
columnBanner: '', columnBanner: '',
columns: [], columns: [],
@ -65,6 +57,7 @@ export default {
label: 'columnName' label: 'columnName'
}, },
news: [], news: [],
hots: []
} }
}, },
components: { components: {
@ -84,12 +77,20 @@ export default {
// //
getInfo() { getInfo() {
this.$post(`${this.api.findArticle}?id=${this.id}`).then(({ data }) => { this.$post(`${this.api.findArticle}?id=${this.id}`).then(({ data }) => {
//
this.routes = [
{
name: data.columnName,
query: {
id: data.columnId
}
},
{
name: data.title
}
]
this.form = data this.form = data
this.columnId = data.columnId this.columnId = data.columnId
this.query = {
id: data.columnId
}
this.$refs.breadcrumb.update(data.columnName + '/' + data.title)
data.bannerImg || this.getBanner(this.columns) data.bannerImg || this.getBanner(this.columns)
if (this.columnBanner) this.form.bannerImg = this.columnBanner if (this.columnBanner) this.form.bannerImg = this.columnBanner
}).catch(err => {}) }).catch(err => {})
@ -121,6 +122,10 @@ export default {
this.columns = data this.columns = data
this.getInfo() this.getInfo()
}).catch(err => {}) }).catch(err => {})
this.$post(`${this.api.hotContent}?siteId=${this.$route.query.siteId || this.$store.state.content.site}`).then(({ data }) => {
this.hots = data
}).catch(err => {})
}, },
// //
getArticle() { getArticle() {
@ -142,6 +147,9 @@ export default {
<style lang="scss" scoped> <style lang="scss" scoped>
@import "./editor.css"; @import "./editor.css";
.content {
width: 1400px;
}
.banner { .banner {
height: 280px; height: 280px;
padding: 123px 0 0 243px; padding: 123px 0 0 243px;
@ -153,7 +161,7 @@ export default {
display: flex; display: flex;
justify-content: space-between; justify-content: space-between;
.left { .left {
width: 920px; width: 66%;
} }
h2 { h2 {
margin-bottom: 20px; margin-bottom: 20px;
@ -166,12 +174,20 @@ export default {
font-weight: 600; font-weight: 600;
color: #333; color: #333;
} }
/deep/.des {
p {
margin: 1em 0;
}
img {
max-width: 100%;
}
}
h6 { h6 {
margin: 30px 0 10px; margin: 30px 0 10px;
font-size: 18px; font-size: 18px;
} }
.right { .right {
width: 290px; width: 20%;
} }
.column { .column {
width: 100%; width: 100%;
@ -206,4 +222,9 @@ export default {
} }
} }
} }
@media (max-width: 1420px) {
.content {
width: 98%;
}
}
</style> </style>

@ -3,8 +3,8 @@
<div v-if="form.articleTemplate !== 23" class="banner" :style="{backgroundImage: form.bannerImg ? ('url(' + form.bannerImg + ')') : ''}"> <div v-if="form.articleTemplate !== 23" class="banner" :style="{backgroundImage: form.bannerImg ? ('url(' + form.bannerImg + ')') : ''}">
{{ form.columnName }} {{ form.columnName }}
</div> </div>
<div class="content" style="width: 1400px;"> <div class="content">
<Breadcrumb ref="breadcrumb" :data="'栏目/' + form.title" route="/column" :query.sync="query"/> <Breadcrumb ref="breadcrumb" :data.sync="routes"/>
<div class="article"> <div class="article">
<div class="left"> <div class="left">
<h2>{{ form.title }}</h2> <h2>{{ form.title }}</h2>
@ -55,10 +55,9 @@ export default {
mixins: [mixins], mixins: [mixins],
data() { data() {
return { return {
site: this.$store.state.content.site, id: this.$route.query.articleId,
loaded: false, loaded: false,
id: this.$route.query.id, routes: {},
query: {},
columnId: '', columnId: '',
form: {}, form: {},
columnBanner: '', columnBanner: '',
@ -88,16 +87,24 @@ export default {
// //
getInfo() { getInfo() {
this.$post(`${this.api.findArticle}?id=${this.id}`).then(({ data }) => { this.$post(`${this.api.findArticle}?id=${this.id}`).then(({ data }) => {
this.$refs.breadcrumb.update(data.columnName + '/' + data.title) //
this.routes = [
{
name: data.columnName,
query: {
id: data.columnId
}
},
{
name: data.title
}
]
if (data.isDisable) { if (data.isDisable) {
this.$router.back() this.$router.back()
} else { } else {
if (data.articleTemplate === 25) { // if (data.articleTemplate === 25) { //
this.$router.replace(`/article/activity?id=${this.id}&siteId=${this.$route.query.siteId || this.site}`) this.$router.replace(`/article/activity?articleId=${this.id}&id=${this.$route.query.columnId}`)
} else { } else {
this.query = {
id: data.columnId
}
this.form = data this.form = data
this.columnId = data.columnId this.columnId = data.columnId
data.bannerImg || this.getBanner(this.columns) data.bannerImg || this.getBanner(this.columns)
@ -153,16 +160,15 @@ export default {
download(e) { download(e) {
Util.downloadFile(e.fileName, e.filePath) Util.downloadFile(e.fileName, e.filePath)
}, },
//
toArtice(item) {
this.$router.push(`/article?id=${item.id}&site=${this.$route.query.siteId || this.site}`)
}
} }
}; };
</script> </script>
<style lang="scss" scoped> <style lang="scss" scoped>
@import "./editor.css"; @import "./editor.css";
.content {
width: 1400px;
}
.banner { .banner {
height: 280px; height: 280px;
padding: 123px 0 0 243px; padding: 123px 0 0 243px;
@ -174,7 +180,7 @@ export default {
display: flex; display: flex;
justify-content: space-between; justify-content: space-between;
.left { .left {
width: 920px; width: 66%;
} }
h2 { h2 {
font-size: 36px; font-size: 36px;
@ -197,6 +203,9 @@ export default {
p { p {
margin: 1em 0; margin: 1em 0;
} }
img {
max-width: 100%;
}
} }
.annex { .annex {
margin-top: 30px; margin-top: 30px;
@ -223,7 +232,7 @@ export default {
} }
} }
.right { .right {
width: 290px; width: 20%;
} }
.column { .column {
width: 100%; width: 100%;
@ -258,4 +267,9 @@ export default {
} }
} }
} }
@media (max-width: 1420px) {
.content {
width: 98%;
}
}
</style> </style>

@ -203,7 +203,7 @@ export default {
left: 57px; left: 57px;
} }
.left { .left {
width: 670px; width: 51%;
} }
h6 { h6 {
font-size: 24px; font-size: 24px;
@ -219,7 +219,7 @@ export default {
position: absolute; position: absolute;
top: -60px; top: -60px;
right: 43px; right: 43px;
width: 600px; width: 45%;
height: 450px; height: 450px;
} }
} }

@ -92,8 +92,6 @@
</div> </div>
</div> </div>
<div class="right"> <div class="right">
<el-tree class="column" ref="column" :data="infoColumns" highlight-current :expand-on-click-node="false" :props="defaultProps" node-key="id" @node-click="item => columnClick(item, 0)"></el-tree>
<p class="l-title">热点内容</p> <p class="l-title">热点内容</p>
<ul class="list"> <ul class="list">
<li v-for="(item, i) in hots" :key="i" :title="item.title" @click="toArtice(item)"> <li v-for="(item, i) in hots" :key="i" :title="item.title" @click="toArtice(item)">
@ -119,13 +117,13 @@
import Setting from '@/setting' import Setting from '@/setting'
import Util from '@/libs/util' import Util from '@/libs/util'
import Breadcrumb from '@/components/breadcrumb' import Breadcrumb from '@/components/breadcrumb'
import mixins from '@/mixins/article'
export default { export default {
mixins: [mixins],
data() { data() {
return { return {
loaded: false, loaded: false,
id: +this.$route.query.id,
fromColumn: this.$route.query.column, fromColumn: this.$route.query.column,
site: this.$store.state.content.site,
columnId: '', columnId: '',
info: {}, info: {},
searchTimer: null, searchTimer: null,
@ -200,11 +198,10 @@ export default {
// //
getInfo() { getInfo() {
this.$post(`${this.api.findColumn}?id=${this.id}`).then(({ data }) => { this.$post(`${this.api.findColumn}?id=${this.id}`).then(({ data }) => {
this.columnTo(data)
if (data.typeId !== 3) this.loaded = true //
if (!data.columnBanner) data.columnBanner = require('@/assets/images/column-banner.png') if (!data.columnBanner) data.columnBanner = require('@/assets/images/column-banner.png')
this.info = data this.info = data
this.loaded = true
this.showNav = this.showNavIds.includes(data.listStyleId) this.showNav = this.showNavIds.includes(data.listStyleId)
this.getClassification() this.getClassification()
}).catch(res => {}) }).catch(res => {})
@ -241,7 +238,7 @@ export default {
// //
getLeftColumn() { getLeftColumn() {
this.$post(`${this.api.oneLevelChecksThemAll}?id=${this.id}`).then(({ data }) => { this.$post(`${this.api.oneLevelChecksThemAll}?id=${this.id}`).then(({ data }) => {
const fromColumn = this.$route.query.column const fromColumn = this.$route.query.column // column
this.sameStyle = !fromColumn this.sameStyle = !fromColumn
this.allColumnId = [] this.allColumnId = []
fromColumn || data.length && this.handleColumn(data, data[0].listStyleId) fromColumn || data.length && this.handleColumn(data, data[0].listStyleId)
@ -324,6 +321,7 @@ export default {
// //
getArticle(columnIds) { getArticle(columnIds) {
const labelName = [] const labelName = []
//
this.labels.map(e => { this.labels.map(e => {
if (this.lableId.includes(e.id)) labelName.push(e.labelName) if (this.lableId.includes(e.id)) labelName.push(e.labelName)
}) })
@ -337,6 +335,8 @@ export default {
}).then(({ data }) => { }).then(({ data }) => {
this.articles = Util.removeTag(data.records) this.articles = Util.removeTag(data.records)
this.total = +data.total this.total = +data.total
//
this.total == 1 && this.info.showWithDetails && this.$router.push(`/article?articleId=${this.articles[0].id}&id=${this.articles[0].columnId}`)
}).catch(res => {}) }).catch(res => {})
}, },
// id // id
@ -369,10 +369,6 @@ export default {
} }
this.getArticle(id) this.getArticle(id)
}, },
//
toArtice(item) {
this.$router.push(`/article?id=${item.id}&site=${this.$route.query.siteId || this.site}`)
}
} }
}; };
</script> </script>
@ -399,11 +395,11 @@ export default {
justify-content: center; justify-content: center;
margin: 0 auto; margin: 0 auto;
.left { .left {
width: 1295px; width: 66%;
margin-right: 28px; margin-right: 28px;
} }
.article-wrap { .article-wrap {
width: 1113px; width: 78%;
} }
.switch { .switch {
display: inline-flex; display: inline-flex;
@ -437,9 +433,10 @@ export default {
.label { .label {
font-size: 16px; font-size: 16px;
color: #333; color: #333;
white-space: nowrap;
} }
/deep/.el-input__inner { /deep/.el-input__inner {
width: 238px; width: 100%;
height: 48px; height: 48px;
line-height: 48px; line-height: 48px;
border: 0; border: 0;
@ -447,10 +444,11 @@ export default {
} }
.search { .search {
display: inline-flex; display: inline-flex;
width: 34%;
input { input {
width: 443px; width: 100%;
height: 48px; height: 48px;
padding: 0 10px; padding: 0 15px;
font-size: 14px; font-size: 14px;
color: #333; color: #333;
background: #F7F7F7; background: #F7F7F7;
@ -477,7 +475,7 @@ export default {
display: flex; display: flex;
} }
/deep/.columns { /deep/.columns {
width: 210px; width: 22%;
margin-right: 12px; margin-right: 12px;
overflow: auto; overflow: auto;
&:after { &:after {
@ -490,7 +488,6 @@ export default {
background-color: #E1E6F2; background-color: #E1E6F2;
} }
.el-tree-node__content { .el-tree-node__content {
// z-index: 1;
position: relative; position: relative;
height: 48px; height: 48px;
padding-left: 40px; padding-left: 40px;
@ -535,8 +532,7 @@ export default {
height: 100%; height: 100%;
background-color: #083A93; background-color: #083A93;
} }
// border-right: 2px solid #083A93; .el-tree-node__label, .custom-tree-node {
.el-tree-node__label {
font-weight: 600; font-weight: 600;
color: #1150AC; color: #1150AC;
} }
@ -582,12 +578,15 @@ export default {
@include mul-ellipsis(2); @include mul-ellipsis(2);
} }
.pic { .pic {
width: 417px; width: 45%;
min-width: 380px;
height: 244px; height: 244px;
} }
} }
.right { .right {
width: 290px; width: 14%;
min-width: 240px;
overflow: hidden;
} }
.column { .column {
width: 100%; width: 100%;

@ -94,14 +94,14 @@ export default {
} }
} }
.pic { .pic {
width: 650px; width: 47%;
height: 730px; height: 730px;
} }
.texts { .texts {
position: absolute; position: absolute;
top: 120px; top: 120px;
left: 610px; left: 610px;
width: 850px; width: 60%;
height: 440px; height: 440px;
padding: 60px 30px 30px 100px; padding: 60px 30px 30px 100px;
background-color: #fff; background-color: #fff;
@ -121,4 +121,14 @@ export default {
line-height: 32px; line-height: 32px;
} }
} }
@media (max-width: 1520px) {
.list {
.pic {
width: 45%;
}
.texts {
width: 50%;
}
}
}
</style> </style>

@ -164,7 +164,7 @@ export default {
display: flex; display: flex;
justify-content: space-between; justify-content: space-between;
li { li {
width: 660px; width: 47%;
} }
.pic { .pic {
width: 100%; width: 100%;
@ -195,11 +195,12 @@ export default {
flex-wrap: wrap; flex-wrap: wrap;
li { li {
display: inline-flex; display: inline-flex;
width: 686px; width: calc((100% - 28px) / 2);
padding: 34px; padding: 34px;
margin-bottom: 28px; margin-bottom: 28px;
background-color: #fff; background-color: #fff;
cursor: pointer; cursor: pointer;
overflow: hidden;
&:nth-child(odd) { &:nth-child(odd) {
margin-right: 28px; margin-right: 28px;
} }
@ -238,11 +239,11 @@ export default {
} }
} }
.pic { .pic {
width: 660px; width: 47%;
height: 465px; height: 465px;
} }
.texts { .texts {
width: 680px; width: 48%;
padding-top: 150px; padding-top: 150px;
} }
h6 { h6 {

@ -285,6 +285,9 @@ export default {
} }
} }
} }
.lg {
width: 1505px;
}
/deep/.articles { /deep/.articles {
.el-carousel__indicators--horizontal { .el-carousel__indicators--horizontal {
bottom: 20px; bottom: 20px;
@ -321,7 +324,7 @@ export default {
flex-wrap: wrap; flex-wrap: wrap;
margin-top: 40px; margin-top: 40px;
li { li {
width: 438px; width: calc((100% - 56px) / 3);
margin-right: 28px; margin-right: 28px;
box-shadow: 0px 0px 20px 0px rgba(176,176,176,0.21); box-shadow: 0px 0px 20px 0px rgba(176,176,176,0.21);
border-radius: 6px; border-radius: 6px;
@ -417,7 +420,6 @@ export default {
li { li {
display: inline-flex; display: inline-flex;
align-items: center; align-items: center;
padding-right: 124px;
margin-bottom: 38px; margin-bottom: 38px;
cursor: pointer; cursor: pointer;
&:last-child { &:last-child {
@ -524,4 +526,9 @@ export default {
} }
} }
} }
@media (max-width: 1520px) {
.lg {
width: 98%;
}
}
</style> </style>

@ -11,22 +11,21 @@
</template> </template>
</el-carousel> </el-carousel>
<div class="block"> <div class="inner">
<div class="inner"> <Breadcrumb ref="breadcrumb" :data.sync="routes"/>
<ul class="list"> <ul class="list">
<template v-for="(item, i) in modules[1].list"> <template v-for="(item, i) in modules[1].list">
<li v-if="item.isEnable" :key="i"> <li v-if="item.isEnable" :key="i">
<img class="pic" :src="item.pic" alt=""> <img class="pic" :src="item.pic" alt="">
<div class="texts"> <div class="texts">
<h6>{{ item.title }}</h6> <h6>{{ item.title }}</h6>
<p class="sub">{{ item.subTitle }}</p> <p class="sub">{{ item.subTitle }}</p>
<div class="des">{{ item.des }}</div> <div class="des">{{ item.des }}</div>
<img src="@/assets/images/arrow.png" alt="" :class="{'arrow': item.link.linkName !== '无'}" @click="openLink(item)"> <img src="@/assets/images/arrow.png" alt="" :class="{'arrow': item.link.linkName !== '无'}" @click="openLink(item)">
</div> </div>
</li> </li>
</template> </template>
</ul> </ul>
</div>
</div> </div>
</div> </div>
</template> </template>
@ -35,15 +34,19 @@
import mixins from '@/mixins/page' import mixins from '@/mixins/page'
import Setting from '@/setting' import Setting from '@/setting'
import Util from '@/libs/util' import Util from '@/libs/util'
import Breadcrumb from '@/components/breadcrumb'
export default { export default {
mixins: [mixins], mixins: [mixins],
data() { data() {
return { return {
routes: []
} }
}, },
components: {
Breadcrumb
},
mounted() { mounted() {
this.getColumn()
}, },
methods: { methods: {
// //
@ -60,32 +63,65 @@ export default {
} }
}).catch(err => {}) }).catch(err => {})
}, },
// id
getParent(data, id) {
for (const e of data) {
if (e.id == id) {
this.routes.push({
name: e.columnName,
query: {
id: e.id
}
})
break
} else if (e.children.length) {
this.routes.push({
name: e.columnName,
query: {
id: e.id
}
})
this.getParent(e.children, id)
}
}
},
//
getColumn() {
this.$post(`${this.api.oneLevelChecksThemAll}?id=${this.id}`).then(({ data }) => {
this.getParent(data, this.id)
}).catch(err => {})
},
} }
}; };
</script> </script>
<style lang="scss" scoped> <style lang="scss" scoped>
@import "../../styles/page/page.scss"; @import "../../styles/page/page.scss";
.inner {
padding-top: 35px;
}
.list { .list {
margin-top: 40px;
li { li {
position: relative; position: relative;
&:nth-child(even) { &:nth-child(even) {
text-align: right; text-align: right;
.texts { .texts {
left: 0; left: 0;
padding: 60px 120px 30px 30px;
text-align: left; text-align: left;
} }
} }
} }
.pic { .pic {
width: 650px; width: 47%;
height: 730px; height: 730px;
} }
.texts { .texts {
position: absolute; position: absolute;
top: 120px; top: 120px;
left: 610px; right: -40px;
width: 850px; width: 61%;
height: 440px; height: 440px;
padding: 60px 30px 30px 100px; padding: 60px 30px 30px 100px;
background: rgba(247, 247, 247, .72); background: rgba(247, 247, 247, .72);
@ -107,4 +143,19 @@ export default {
line-height: 32px; line-height: 32px;
} }
} }
@media (max-width: 1520px) {
.list {
li {
&:nth-child(even) {
.texts {
left: 25px;
}
}
}
.texts {
right: 25px;
width: 55%;
}
}
}
</style> </style>

@ -11,22 +11,21 @@
</template> </template>
</el-carousel> </el-carousel>
<div class="block"> <div class="inner">
<div class="inner"> <Breadcrumb ref="breadcrumb" :data.sync="routes"/>
<ul class="list"> <ul class="list">
<template v-for="(item, i) in modules[1].list"> <template v-for="(item, i) in modules[1].list">
<li v-if="item.isEnable" :key="i"> <li v-if="item.isEnable" :key="i">
<img class="pic" :src="item.pic" alt=""> <img class="pic" :src="item.pic" alt="">
<div class="texts"> <div class="texts">
<h6>{{ item.title }}</h6> <h6>{{ item.title }}</h6>
<p class="sub">{{ item.subTitle }}</p> <p class="sub">{{ item.subTitle }}</p>
<div class="des">{{ item.des }}</div> <div class="des">{{ item.des }}</div>
<img src="@/assets/images/arrow.png" alt="" :class="{'arrow': item.link.linkName !== '无'}" @click="openLink(item)"> <img src="@/assets/images/arrow.png" alt="" :class="{'arrow': item.link.linkName !== '无'}" @click="openLink(item)">
</div> </div>
</li> </li>
</template> </template>
</ul> </ul>
</div>
</div> </div>
</div> </div>
</template> </template>
@ -35,15 +34,19 @@
import mixins from '@/mixins/page' import mixins from '@/mixins/page'
import Setting from '@/setting' import Setting from '@/setting'
import Util from '@/libs/util' import Util from '@/libs/util'
import Breadcrumb from '@/components/breadcrumb'
export default { export default {
mixins: [mixins], mixins: [mixins],
data() { data() {
return { return {
routes: []
} }
}, },
components: {
Breadcrumb
},
mounted() { mounted() {
this.getColumn()
}, },
methods: { methods: {
// //
@ -60,32 +63,65 @@ export default {
} }
}).catch(err => {}) }).catch(err => {})
}, },
// id
getParent(data, id) {
for (const e of data) {
if (e.id == id) {
this.routes.push({
name: e.columnName,
query: {
id: e.id
}
})
break
} else if (e.children.length) {
this.routes.push({
name: e.columnName,
query: {
id: e.id
}
})
this.getParent(e.children, id)
}
}
},
//
getColumn() {
this.$post(`${this.api.oneLevelChecksThemAll}?id=${this.id}`).then(({ data }) => {
this.getParent(data, this.id)
}).catch(err => {})
},
} }
}; };
</script> </script>
<style lang="scss" scoped> <style lang="scss" scoped>
@import "../../styles/page/page.scss"; @import "../../styles/page/page.scss";
.inner {
padding-top: 35px;
}
.list { .list {
margin-top: 40px;
li { li {
position: relative; position: relative;
&:nth-child(even) { &:nth-child(even) {
text-align: right; text-align: right;
.texts { .texts {
left: 0; left: 0;
padding: 60px 120px 30px 30px;
text-align: left; text-align: left;
} }
} }
} }
.pic { .pic {
width: 650px; width: 47%;
height: 730px; height: 730px;
} }
.texts { .texts {
position: absolute; position: absolute;
top: 120px; top: 120px;
left: 610px; right: -40px;
width: 850px; width: 61%;
height: 440px; height: 440px;
padding: 60px 30px 30px 100px; padding: 60px 30px 30px 100px;
background: rgba(247, 247, 247, .72); background: rgba(247, 247, 247, .72);
@ -107,4 +143,19 @@ export default {
line-height: 32px; line-height: 32px;
} }
} }
@media (max-width: 1520px) {
.list {
li {
&:nth-child(even) {
.texts {
left: 25px;
}
}
}
.texts {
right: 25px;
width: 55%;
}
}
}
</style> </style>

@ -40,7 +40,7 @@
</div> </div>
<div class="block"> <div class="block">
<div class="inner" style="width: 1558px"> <div class="inner news-inner">
<h2 class="b-title">{{ modules[5].form.title }}</h2> <h2 class="b-title">{{ modules[5].form.title }}</h2>
<p class="intro">{{ modules[5].form.des }}</p> <p class="intro">{{ modules[5].form.des }}</p>
<ul class="news"> <ul class="news">
@ -134,6 +134,7 @@ export default {
height: 210px; height: 210px;
padding: 20px 40px; padding: 20px 40px;
background: #08577B; background: #08577B;
overflow: hidden;
} }
h6 { h6 {
font-size: 30px; font-size: 30px;
@ -149,7 +150,7 @@ export default {
flex-wrap: wrap; flex-wrap: wrap;
li { li {
position: relative; position: relative;
width: 448px; width: calc((100% - 56px) / 3);
margin: 0 28px 39px 0; margin: 0 28px 39px 0;
&:nth-child(3n) { &:nth-child(3n) {
margin-right: 0; margin-right: 0;
@ -169,13 +170,16 @@ export default {
background-color: #F5F5F5; background-color: #F5F5F5;
} }
} }
.news-inner {
width: 1558px;
}
.news { .news {
display: flex; display: flex;
justify-content: center; justify-content: center;
flex-wrap: wrap; flex-wrap: wrap;
li { li {
position: relative; position: relative;
width: 448px; width: calc((100% - 56px) / 3);
padding: 11px; padding: 11px;
margin-right: 28px; margin-right: 28px;
color: #333; color: #333;
@ -191,7 +195,7 @@ export default {
} }
} }
img { img {
width: 427px; width: 100%;
height: 481px; height: 481px;
} }
.texts { .texts {
@ -207,4 +211,9 @@ export default {
line-height: 26px; line-height: 26px;
} }
} }
@media (max-width: 1570px) {
.news-inner {
width: 98%;
}
}
</style> </style>

@ -95,13 +95,11 @@
min-width: 0; min-width: 0;
} }
span { span {
font-size: 18px; font-size: 13px;
color: #333; color: #333;
} }
.active > .el-submenu__title { .active > .el-submenu__title span, .active > span {
span { color: #1583FF;
color: #1583FF;
}
} }
} }
.home-menu-popup { .home-menu-popup {

@ -34,9 +34,6 @@
.inner { .inner {
width: 1400px; width: 1400px;
margin: 0 auto; margin: 0 auto;
&.lg {
width: 1505px;
}
} }
.banner-item { .banner-item {
position: relative; position: relative;
@ -66,4 +63,9 @@
} }
.arrow { .arrow {
cursor: pointer; cursor: pointer;
}
@media (max-width: 1410px) {
.inner {
width: 98%;
}
} }
Loading…
Cancel
Save