yujialong 1 year ago
parent cf8d6f03d5
commit 0c0f66c4dd
  1. BIN
      src/assets/images/email-white.png
  2. BIN
      src/assets/images/email.png
  3. BIN
      src/assets/images/oa-white.png
  4. BIN
      src/assets/images/oa.png
  5. 349
      src/layouts/footer/index.vue
  6. 402
      src/layouts/header/index.vue
  7. 4
      src/mixins/page/index.js
  8. 2
      src/pages/article/activity.vue
  9. 138
      src/pages/article/editor.css
  10. 14
      src/pages/article/index.vue
  11. 43
      src/pages/column/index.vue
  12. 2
      src/pages/governance/index.vue
  13. 84
      src/pages/iasf/index.vue
  14. 15
      src/pages/industrial/index.vue
  15. 4
      src/pages/lightSources/index.vue
  16. 23
      src/pages/overview/index.vue
  17. 29
      src/pages/researchTeam/index.vue
  18. 4
      src/pages/scientific/index.vue
  19. 65
      src/pages/talentCentre/index.vue
  20. 4
      src/pages/team/index.vue

Binary file not shown.

After

Width:  |  Height:  |  Size: 602 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 15 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 706 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 15 KiB

@ -1,48 +1,67 @@
<template> <template>
<div> <div>
<div v-if="showDefaultPath.includes($route.path)" class="footer"> <div v-if="showDefaultPath.includes($route.path)"
class="footer">
<div class="info"> <div class="info">
<div class="leftBox"> <div class="leftBox">
<img class="m-b-20" src="@/assets/images/iasf.png" alt=""> <img class="m-b-20"
src="@/assets/images/iasf.png"
alt="">
<p class="meta">Copyright ©2002- 2021</p> <p class="meta">Copyright ©2002- 2021</p>
<p class="meta">Institute of Advanced Science Facilities, ShenzhenIASF</p> <p class="meta">Institute of Advanced Science Facilities, ShenzhenIASF</p>
<p class="meta">Tel400-0010-998</p> <p class="meta">Tel400-0010-998</p>
</div> </div>
<div v-for="(item, i) in columns" :key="i" class="column"> <div v-for="(item, i) in columns"
:key="i"
class="column">
<h6 @click="columnTo(item)">{{ item.columnName }}</h6> <h6 @click="columnTo(item)">{{ item.columnName }}</h6>
<ul v-if="item.children.length" class="children"> <ul v-if="item.children.length"
<li v-for="(column, j) in item.children" :key="j" @click="columnTo(column)">{{ column.columnName }}</li> class="children">
<li v-for="(column, j) in item.children"
:key="j"
@click="columnTo(column)">{{ column.columnName }}</li>
</ul> </ul>
</div> </div>
</div> </div>
<a class="copyright">粤ICP备2020131940号 粤公安网34565432456765432号</a> <a class="copyright">粤ICP备2020131940号 粤公安网34565432456765432号</a>
</div> </div>
<div v-if="showContactPath.includes($route.path)" class="contact"> <div v-if="showContactPath.includes($route.path)"
class="contact">
<div class="inner"> <div class="inner">
<div class="title"> <div class="title">
<h6>Contact us</h6> <h6>Contact us</h6>
<p class="text">CONTACT US</p> <p class="text">CONTACT US</p>
</div> </div>
<div class="region"> <div class="region">
<img class="dot" src="@/assets/images/dot.png" alt=""> <img class="dot"
src="@/assets/images/dot.png"
alt="">
<p class="name">Shenzhen</p> <p class="name">Shenzhen</p>
</div> </div>
<div class="info"> <div class="info">
<img class="logo" src="@/assets/images/logo.png" alt=""> <img class="logo"
src="@/assets/images/logo.png"
alt="">
<div class="texts"> <div class="texts">
<div class="lines"> <div class="lines">
<div class="line"> <div class="line">
<img class="icon" src="@/assets/images/mail.png" alt=""> <img class="icon"
Email: {{ isSfel ? 'fel@mail.iasf.ac.cn' : 'std@mail.iasf.ac.cn' }} src="@/assets/images/mail.png"
alt="">
Email: {{ isSfel ? 'fel@mail.iasf.ac.cn' : 'std@mail.iasf.ac.cn' }}
</div> </div>
<div class="line"> <div class="line">
<img class="icon" src="@/assets/images/tel.png" alt=""> <img class="icon"
Telephone: {{ isSfel ? '0755-21096052' : '0086-755-21096026' }} src="@/assets/images/tel.png"
alt="">
Telephone: {{ isSfel ? '0755-21096052' : '0086-755-21096026' }}
</div> </div>
<div class="line"> <div class="line">
<img class="icon" src="@/assets/images/address.png" alt=""> <img class="icon"
Address: {{ isSfel ? '自由电子激光工程经理部' : '268 Zhenyuan St, Building A3, Floor 3-6, Guangming District, Shenzhen, Guangdong, P.R.China' }} src="@/assets/images/address.png"
alt="">
Address: {{ isSfel ? '自由电子激光工程经理部' : '268 Zhenyuan St, Building A3, Floor 3-6, Guangming District, Shenzhen, Guangdong, P.R.China' }}
</div> </div>
</div> </div>
<div class="qrcode"> <div class="qrcode">
@ -58,207 +77,205 @@
import mixins from '@/mixins/article' import mixins from '@/mixins/article'
export default { export default {
mixins: [mixins], mixins: [mixins],
data() { data () {
return { return {
showDefaultPath: ['/home'], // showDefaultPath: ['/home', '/iasf'], //
showContactPath: ['/news', '/sfel', '/talent', '/about', '/careers', '/edu', '/news'], // showContactPath: ['/news', '/sfel', '/talent', '/about', '/careers', '/edu', '/news'], //
columns: [], columns: [],
}; };
}, },
computed: { computed: {
// sfel // sfel
isSfel() { isSfel () {
const id = this.$route.query.siteId || this.$store.state.content.site const id = this.$route.query.siteId || this.$store.state.content.site
return id == 3 return id == 3
} }
}, },
mounted(){ mounted () {
this.getColumn() this.getColumn()
}, },
methods: { methods: {
// //
getColumn() { getColumn () {
this.$post(this.api.listWithTreeMenuVisible, { this.$post(this.api.listWithTreeMenuVisible, {
siteId: this.$route.query.siteId || this.$store.state.content.site, siteId: this.$route.query.siteId || this.$store.state.content.site,
columnName: '', columnName: '',
templateId: '', templateId: '',
typeId : '', typeId: '',
isSort: 1 isSort: 1
}).then(({ data }) => { }).then(({ data }) => {
this.columns = data.slice(0, 6) this.columns = data.slice(0, 6)
}).catch(err => {}) }).catch(err => { })
}, },
}, },
}; };
</script> </script>
<style lang="scss" scoped> <style lang="scss" scoped>
.leftBox{ .leftBox {
margin-right: 100px; margin-right: 100px;
} }
.footer{ .footer {
padding: 64px 10% 25px; padding: 64px 10% 25px;
color: #fff; color: #fff;
background-color: #091733; background-color: #091733;
overflow: hidden; overflow: hidden;
.info { .info {
display: flex; display: flex;
}
.meta {
margin-bottom: 10px;
font-size: 14px;
}
.column {
margin: 0 20px;
h6 {
margin-bottom: 20px;
font-size: 16px;
white-space: nowrap;
cursor: pointer;
} }
} .meta {
.children { margin-bottom: 10px;
li { font-size: 14px;
margin: 12px 0;
font-size: 14px;
color: #6D7384;
white-space: nowrap;
cursor: pointer;
} }
} .column {
.copyright { margin: 0 20px;
font-size: 14px; h6 {
color: #6D7384; margin-bottom: 20px;
} font-size: 16px;
} white-space: nowrap;
.contact { cursor: pointer;
position: relative; }
padding: 0 0 73px 0;
background: url(../../assets/images/map.png) 0 0/cover no-repeat;
.inner {
width: 1082px;
margin: 0 auto;
}
.title {
width: 419px;
height: 263px;
padding: 147px 0 0 40px;
background-color: #0854FE;
h6 {
z-index: 2;
position: relative;
margin-bottom: 20px;
font-size: 45px;
font-family: PingFangSC-Semibold, PingFang SC;
font-weight: 600;
color: #fff;
} }
.text { .children {
margin-top: -65px; li {
font-size: 48px; margin: 12px 0;
-webkit-text-fill-color: transparent; font-size: 14px;
-webkit-text-stroke: 1px #4073e5; color: #6d7384;
white-space: nowrap;
cursor: pointer;
}
} }
} .copyright {
.region { font-size: 14px;
position: absolute; color: #6d7384;
top: 152px;
left: 70%;
display: flex;
align-items: center;
font-size: 20px;
color: #fff;
img {
margin-right: 20px;
} }
} }
.info { .contact {
margin: 55px 0 0 8px; position: relative;
.texts { padding: 0 0 73px 0;
display: flex; background: url(../../assets/images/map.png) 0 0 / cover no-repeat;
align-items: center; .inner {
margin-top: 24px; width: 1082px;
margin: 0 auto;
} }
.item { .title {
margin-right: 75px; width: 419px;
height: 263px;
padding: 147px 0 0 40px;
background-color: #0854fe;
h6 {
z-index: 2;
position: relative;
margin-bottom: 20px;
font-size: 45px;
font-family: PingFangSC-Semibold, PingFang SC;
font-weight: 600;
color: #fff;
}
.text {
margin-top: -65px;
font-size: 48px;
-webkit-text-fill-color: transparent;
-webkit-text-stroke: 1px #4073e5;
}
} }
.line { .region {
display: flex; position: absolute;
align-items: center; top: 152px;
margin-bottom: 20px; left: 70%;
font-size: 16px; display: flex;
color: #fff; align-items: center;
img { font-size: 20px;
margin-right: 8px; color: #fff;
} img {
margin-right: 20px;
}
} }
} .info {
.qrcode { margin: 55px 0 0 8px;
text-align: center; .texts {
.text { display: flex;
margin-top: 10px; align-items: center;
font-size: 12px; margin-top: 24px;
color: #fff; }
.item {
margin-right: 75px;
}
.line {
display: flex;
align-items: center;
margin-bottom: 20px;
font-size: 16px;
color: #fff;
img {
margin-right: 8px;
}
}
} }
} .qrcode {
} text-align: center;
@media (max-width: 1200px) { .text {
body{ margin-top: 10px;
width: 100% !important; font-size: 12px;
} color: #fff;
.inner { }
width: 100% !important;
.title{
width: 100%;
text-align: center;
} }
.region{ }
top: 300px; @media (max-width: 1200px) {
left: 50%; body {
width: 100% !important;
} }
.info{ .inner {
margin-top: 90px; width: 100% !important;
.title {
width: 100%;
text-align: center;
}
.region {
top: 300px;
left: 50%;
}
.info {
margin-top: 90px;
}
} }
}
} }
@media (min-width: 280px) and (max-width: 750px) { @media (min-width: 280px) and (max-width: 750px) {
.footer { .footer {
.info{ .info {
flex-direction: column; flex-direction: column;
.column{ .column {
margin-top: 20px; margin-top: 20px;
margin-left: 0; margin-left: 0;
} }
}
} }
}
} }
@media (min-width: 751px) and (max-width: 1200px) { @media (min-width: 751px) and (max-width: 1200px) {
.footer { .footer {
.info{ .info {
flex-direction: column; flex-direction: column;
.column{ .column {
margin-top: 20px; margin-top: 20px;
margin-left: 0; margin-left: 0;
} }
}
} }
}
} }
@media (max-width: 320px) { @media (max-width: 320px) {
.contact{ .contact {
.inner { .inner {
.title { .title {
h6 { h6 {
font-size: 1.5rem; font-size: 1.5rem;
} }
.text { .text {
font-size: 2rem; font-size: 2rem;
margin-top: -1.25rem; margin-top: -1.25rem;
}
}
} }
}
} }
}
} }
</style> </style>

@ -1,59 +1,112 @@
<template> <template>
<div :class="['header', { channel: isHome, estate: isEstate }]"> <div :class="['header', { channel: isHome, estate: isEstate }]">
<a class="logo" @click="toIndex"> <a class="logo"
<template v-if="!$store.getters.getModelType"> @click="toIndex">
<img :src="require('@/assets/images/logo2.png')" alt=""> <template v-if="!$store.getters.getModelType">
</template> <img :src="require('@/assets/images/logo2.png')"
<template v-else> alt="">
</template>
<img :src="require('@/assets/images/' + (isSfel ? 'logo2' : isHome ? 'logo' : 'logo2') + '.png')" alt=""> <template v-else>
</template>
<img :src="require('@/assets/images/' + (isSfel ? 'logo2' : isHome ? 'logo' : 'logo2') + '.png')"
alt="">
</template>
</a> </a>
<!-- pc端 --> <!-- pc端 -->
<template v-if="$store.getters.getModelType"> <template v-if="$store.getters.getModelType">
<navbar v-if="navShow" ref="nav" :isHome.sync="isHome" :isEstate.sync="isEstate" @showMoreBtns="updateBtnsType"></navbar> <navbar v-if="navShow"
ref="nav"
:isHome.sync="isHome"
:isEstate.sync="isEstate"
@showMoreBtns="updateBtnsType"></navbar>
<div class="tools"> <div class="tools">
<img class="search" :src="require('@/assets/images/search' + (isHome ? '-white' : '') + '.png')" alt="" @click.stop="toggleSearch"> <img class="search"
:src="require('@/assets/images/search' + (isHome ? '-white' : '') + '.png')"
alt=""
@click.stop="toggleSearch">
<template v-if="site == 2">
<img class="search"
:src="require('@/assets/images/email' + (isHome ? '-white' : '') + '.png')"
alt=""
@click.stop="toMail">
<img class="search"
:src="require('@/assets/images/oa' + (isHome ? '-white' : '') + '.png')"
alt=""
@click.stop="toMail">
</template>
<template v-if="$i18n.locale == 'en'"> <template v-if="$i18n.locale == 'en'">
<img :src="require('@/assets/images/cn' + (isHome ? '-white' : '') + '.png')" alt="" @click.stop="toggleLang"> <img :src="require('@/assets/images/cn' + (isHome ? '-white' : '') + '.png')"
alt=""
@click.stop="toggleLang">
</template> </template>
<template v-else-if="$i18n.locale == 'zh'"> <template v-else-if="$i18n.locale == 'zh'">
<img :src="require('@/assets/images/en' + (isHome ? '-white' : '') + '.png')" alt="" @click.stop="toggleLang"> <img :src="require('@/assets/images/en' + (isHome ? '-white' : '') + '.png')"
alt=""
@click.stop="toggleLang">
</template> </template>
<div v-if="showSearch" class="search-wrap" @click.stop="stop"> <div v-if="showSearch"
<input ref="search" type="text" :placeholder="$t('column.titlePlaceholder')" v-model="title"> class="search-wrap"
<img class="search-icon" src="@/assets/images/search.png" alt="" @click="handleSearch"> @click.stop="stop">
<i class="el-icon-close close-icon" @click="showSearch = false"></i> <input ref="search"
type="text"
:placeholder="$t('column.titlePlaceholder')"
v-model="title">
<img class="search-icon"
src="@/assets/images/search.png"
alt=""
@click="handleSearch">
<i class="el-icon-close close-icon"
@click="showSearch = false"></i>
</div> </div>
</div> </div>
</template> </template>
<!-- 手机端 --> <!-- 手机端 -->
<template v-else> <template v-else>
<i class="rightBox" :class="modelType ? 'el-icon-s-fold': 'el-icon-s-unfold' " @click="updateModelType"></i> <i class="rightBox"
<div class="contentBox" v-show="modelType"> :class="modelType ? 'el-icon-s-fold': 'el-icon-s-unfold' "
<navbar ref="nav" :isHome.sync="isHome" :updateModelType="updateType"></navbar> @click="updateModelType"></i>
<div class="contentBox"
v-show="modelType">
<navbar ref="nav"
:isHome.sync="isHome"
:updateModelType="updateType"></navbar>
<div class="modelBox"> <div class="modelBox">
<div class="searchBox"><img class="search" :src="require('@/assets/images/search' + (isHome && $store.getters.getModelType ? '-white' : '') + '.png')" alt="" @click.stop="toggleSearch"></div> <div class="searchBox"><img class="search"
:src="require('@/assets/images/search' + (isHome && $store.getters.getModelType ? '-white' : '') + '.png')"
alt=""
@click.stop="toggleSearch"></div>
<div class="languageBox"> <div class="languageBox">
<!-- <img :src="require('@/assets/images/cn' + (isHome && $store.getters.getModelType ? '-white' : '') + '.png')" alt="" @click.stop="toggleLang"> --> <!-- <img :src="require('@/assets/images/cn' + (isHome && $store.getters.getModelType ? '-white' : '') + '.png')" alt="" @click.stop="toggleLang"> -->
<template v-if="$i18n.locale == 'en'"> <template v-if="$i18n.locale == 'en'">
<img :src="require('@/assets/images/cn' + (isHome && $store.getters.getModelType ? '-white' : '') + '.png')" alt="" @click.stop="toggleLang"> <img :src="require('@/assets/images/cn' + (isHome && $store.getters.getModelType ? '-white' : '') + '.png')"
</template> alt=""
<template v-else-if="$i18n.locale == 'zh'"> @click.stop="toggleLang">
<img :src="require('@/assets/images/en' + (isHome && $store.getters.getModelType ? '-white' : '') + '.png')" alt="" @click.stop="toggleLang"> </template>
</template> <template v-else-if="$i18n.locale == 'zh'">
<img :src="require('@/assets/images/en' + (isHome && $store.getters.getModelType ? '-white' : '') + '.png')"
alt=""
@click.stop="toggleLang">
</template>
</div> </div>
<div v-if="showSearch" class="search-wrap" @click.stop="stop"> <div v-if="showSearch"
<input ref="search" type="text" :placeholder="$t('column.titlePlaceholder')" v-model="title"> class="search-wrap"
<img class="search-icon" src="@/assets/images/search.png" alt="" @click="handleSearch"> @click.stop="stop">
<i class="el-icon-close close-icon" @click="showSearch = false"></i> <input ref="search"
type="text"
:placeholder="$t('column.titlePlaceholder')"
v-model="title">
<img class="search-icon"
src="@/assets/images/search.png"
alt=""
@click="handleSearch">
<i class="el-icon-close close-icon"
@click="showSearch = false"></i>
</div> </div>
</div> </div>
</div> </div>
</template> </template>
</div> </div>
</template> </template>
@ -62,7 +115,7 @@ import Util from '@/libs/util'
import { mapMutations } from 'vuex' import { mapMutations } from 'vuex'
import navbar from '../navbar' import navbar from '../navbar'
export default { export default {
data() { data () {
return { return {
isHome: true, isHome: true,
isEstate: false, isEstate: false,
@ -78,13 +131,16 @@ export default {
navbar navbar
}, },
computed: { computed: {
isSfel() { isSfel () {
return this.$route.path === '/sfel' return this.$route.path === '/sfel'
}, },
site () {
return this.$route.query.siteId || this.$store.state.content.site
}
}, },
watch: { watch: {
'$route.path': { '$route.path': {
handler() { handler () {
this.isHome = Util.isIndex() this.isHome = Util.isIndex()
this.isEstate = this.$route.path === '/estate/index' this.isEstate = this.$route.path === '/estate/index'
}, },
@ -95,7 +151,7 @@ export default {
beforeDestroy () { beforeDestroy () {
window.removeEventListener('scroll', this.handleScroll) window.removeEventListener('scroll', this.handleScroll)
}, },
mounted() { mounted () {
this.setKeyword('') this.setKeyword('')
window.addEventListener('scroll', this.handleScroll) // window.addEventListener('scroll', this.handleScroll) //
}, },
@ -103,17 +159,17 @@ export default {
...mapMutations('content', [ ...mapMutations('content', [
'setKeyword' 'setKeyword'
]), ]),
toIndex() { toIndex () {
this.$refs.nav.jump() this.$refs.nav.jump()
}, },
stop() { stop () {
}, },
/** /**
* pc端下,当导航栏条目大于10的情况下,显示更多按钮 * pc端下,当导航栏条目大于10的情况下,显示更多按钮
* type : true显示,false隐藏 * type : true显示,false隐藏
*/ */
updateBtnsType(type) { updateBtnsType (type) {
this.showMoreBtns = type this.showMoreBtns = type
}, },
// (home) // (home)
@ -132,14 +188,22 @@ export default {
} }
}, },
// //
toggleSearch() { toggleSearch () {
this.showSearch = !this.showSearch this.showSearch = !this.showSearch
this.$nextTick(() => { this.$nextTick(() => {
this.$refs.search.focus() this.$refs.search.focus()
}) })
}, },
// mail
toMail () {
window.open('https://qiye.aliyun.com/alimail/auth/login?custom_login_flag=1&reurl=%2Falimail%2F')
},
// oa
toOa () {
window.open('http://oa.iasf.ac.cn/sys/portal/page.jsp')
},
// //
toggleLang() { toggleLang () {
let id = +(this.$route.query.siteId || this.$store.state.content.site) let id = +(this.$route.query.siteId || this.$store.state.content.site)
// id61/2 3/4 5/6 // id61/2 3/4 5/6
id % 2 ? id++ : id-- id % 2 ? id++ : id--
@ -147,7 +211,7 @@ export default {
location.reload() location.reload()
}, },
// //
handleSearch() { handleSearch () {
this.setKeyword(this.title) this.setKeyword(this.title)
this.modelType = !this.modelType this.modelType = !this.modelType
if (this.title) { if (this.title) {
@ -156,10 +220,10 @@ export default {
} }
}, },
// //
updateModelType() { updateModelType () {
this.modelType = !this.modelType this.modelType = !this.modelType
}, },
updateType(type) { updateType (type) {
this.modelType = type this.modelType = type
} }
} }
@ -168,146 +232,146 @@ export default {
<style scoped lang="scss"> <style scoped lang="scss">
$height: 90px; $height: 90px;
.header { .header {
z-index: 10; z-index: 10;
position: fixed; position: fixed;
top: 0;
left: 0;
width: 100%;
// min-width: $min-width;
// background-color: #fff;
height: $height;
box-sizing: content-box;
&:not(.channel) {
background-color: #fff;
border-bottom: 1px solid #f7f7f7;
}
&.estate {
background-color: rgba(0, 0, 0, .15);
}
.logo{
position: absolute;
top: 0; top: 0;
left: 5%; left: 0;
font-size: 1.428rem; width: 100%;
color: #333330; // min-width: $min-width;
line-height: $height; // background-color: #fff;
cursor: pointer; height: $height;
img { box-sizing: content-box;
margin-right: 10px; &:not(.channel) {
background-color: #fff;
border-bottom: 1px solid #f7f7f7;
} }
} &.estate {
.tools { background-color: rgba(0, 0, 0, 0.15);
position: absolute; }
top: 30px; .logo {
right: 5%; position: absolute;
img { top: 0;
cursor: pointer; left: 5%;
font-size: 1.428rem;
color: #333330;
line-height: $height;
cursor: pointer;
img {
margin-right: 10px;
}
}
.tools {
position: absolute;
top: 30px;
right: 5%;
img {
cursor: pointer;
}
}
.search {
margin-right: 43px;
} }
}
.search {
margin-right: 43px;
}
} }
.search-wrap { .search-wrap {
position: absolute; position: absolute;
top: 67px; top: 67px;
right: 89px; right: 89px;
display: flex; display: flex;
align-items: center; align-items: center;
padding: 10px 15px 10px 10px; padding: 10px 15px 10px 10px;
background-color: #fff; background-color: #fff;
box-shadow: 0px 6px 9px 0px rgba(0,0,0,0.3); box-shadow: 0px 6px 9px 0px rgba(0, 0, 0, 0.3);
input { input {
width: 300px; width: 300px;
height: 40px; height: 40px;
padding: 0 40px 0 15px; padding: 0 40px 0 15px;
font-size: 1.14rem; font-size: 1.14rem;
color: #333; color: #333;
line-height: 46px; line-height: 46px;
border: 0; border: 0;
border-radius: 4px; border-radius: 4px;
outline: none; outline: none;
} }
.search-icon { .search-icon {
padding-right: 15px; padding-right: 15px;
margin: 0 15px; margin: 0 15px;
cursor: pointer; cursor: pointer;
border-right: 1px solid #ccc; border-right: 1px solid #ccc;
} }
.close-icon { .close-icon {
font-size: 2rem; font-size: 2rem;
cursor: pointer; cursor: pointer;
} }
} }
.menu-child { .menu-child {
/deep/ .el-submenu__title{ /deep/ .el-submenu__title {
font-size: 1rem; font-size: 1rem;
} }
} }
.rightBox{ .rightBox {
font-size: 2.57rem; font-size: 2.57rem;
position: absolute; position: absolute;
right: 10px; right: 10px;
top: 2rem; top: 2rem;
} }
.contentBox{ .contentBox {
width: 100%; width: 100%;
position: absolute; position: absolute;
top: 90px; top: 90px;
left: 0; left: 0;
background-color: white; background-color: white;
z-index: 9999; z-index: 9999;
max-height: 30rem; max-height: 30rem;
overflow-y: scroll; overflow-y: scroll;
} }
.searchBox, .languageBox{ .searchBox,
padding-left: 20px; .languageBox {
height: 56px; padding-left: 20px;
line-height: 56px; height: 56px;
line-height: 56px;
} }
.modelBox{ .modelBox {
position: relative; position: relative;
padding-bottom: 20px; padding-bottom: 20px;
.search-wrap{ .search-wrap {
top: 0; top: 0;
} }
} }
@media (max-width: 1660px) { @media (max-width: 1660px) {
.header { .header {
.logo { .logo {
left: 10px; left: 10px;
} }
.search { .search {
margin-right: 20px; margin-right: 20px;
} }
.tools { .tools {
right: 30px right: 30px;
}
} }
}
} }
@media (min-width: 280px) and (max-width: 1200px) { @media (min-width: 280px) and (max-width: 1200px) {
.header{ .header {
color: black !important; color: black !important;
background-color: #fff; background-color: #fff;
}
.contentBox{
.searchBox, .languageBox{
padding-left: 20px;
height: 40px;
line-height: 40px;
} }
} .contentBox {
.search-wrap { .searchBox,
right: 10px; .languageBox {
top: 0; padding-left: 20px;
width: 70%; height: 40px;
input { line-height: 40px;
width: 15rem; }
padding: 0 .5rem 0 .1rem; }
.search-wrap {
right: 10px;
top: 0;
width: 70%;
input {
width: 15rem;
padding: 0 0.5rem 0 0.1rem;
}
} }
}
} }
</style> </style>

@ -109,6 +109,10 @@ export default {
// 判断是否有添加链接 // 判断是否有添加链接
isLink(linkName) { isLink(linkName) {
return linkName !== '无' && linkName !== '' return linkName !== '无' && linkName !== ''
},
// 关联栏目专用,获取栏目标题
getColumnTitle(form) {
return form.columnTitle == 1 ? form.columnName : form.columnTitleCustom
} }
} }
}; };

@ -140,7 +140,7 @@ export default {
<style lang="scss" scoped> <style lang="scss" scoped>
@import './editor.css'; @import './editor.css';
.content { .content {
width: 1400px; width: 1200px;
} }
.banner { .banner {
height: 280px; height: 280px;

@ -1,74 +1,116 @@
.mce-content-body:not([dir=rtl]) blockquote { .mce-content-body:not([dir='rtl']) blockquote {
padding: 8px 15px; padding: 8px 15px;
border-left: 0; border-left: 0;
background-color: #ededed; background-color: #ededed;
} }
.mce-content-body p { .mce-content-body p {
margin: 0; margin: 0;
} }
.tiny-wrap { .tiny-wrap {
/* width: 900px; */ /* width: 900px; */
margin: 0 auto; margin: 0 auto;
}
.tiny-wrap .blue {
color: #1583ff;
} }
.tiny-wrap blockquote p { .tiny-wrap blockquote p {
margin: 0; margin: 0;
font-style: italic; font-style: italic;
} }
.tiny-wrap .block { .tiny-wrap .block {
margin-bottom: 20px; margin-bottom: 20px;
overflow: hidden; overflow: hidden;
} }
.tiny-wrap .block .fl { .tiny-wrap .block .fl {
float: left; float: left;
margin: 0 20px 0 0; margin: 0 20px 0 0;
} }
.tiny-wrap .block .fr { .tiny-wrap .block .fr {
float: right; float: right;
margin: 0 0 0 20px; margin: 0 0 0 20px;
} }
.tiny-wrap .block p { .tiny-wrap .block p {
margin: 0 0 10px; margin: 0 0 10px;
font-size: 19px; font-size: 19px;
font-family: SFProDisplay; font-family: SFProDisplay;
font-weight: 400; font-weight: 400;
color: #101010; color: #101010;
line-height: 32px; line-height: 32px;
} white-space: pre-wrap;
.tiny-wrap .en-block p, .tiny-wrap .en-block .img-des { }
font-family: ProximaNova; .tiny-wrap .en-block p,
letter-spacing: -.0135em; .tiny-wrap .en-block .img-des {
line-height: 1.5em; font-family: ProximaNova;
letter-spacing: -0.0135em;
line-height: 1.5em;
} }
.tiny-wrap .block .tiny-title { .tiny-wrap .block .tiny-title {
margin: 10px 0; margin: 10px 0;
font-size: 24px; font-size: 24px;
font-family: SFProDisplay; font-family: SFProDisplay;
font-weight: 500; font-weight: 500;
color: #101010; color: #101010;
line-height: 32px; line-height: 32px;
} }
.tiny-wrap .quote { .tiny-wrap .quote {
padding: 15px; padding: 15px;
margin-bottom: 10px; margin-bottom: 10px;
font-size: 16px; font-size: 16px;
font-style: italic; font-style: italic;
border: 1px solid #e3e3e3; border: 1px solid #e3e3e3;
background-color: #f1f1f1; background-color: #f1f1f1;
} }
.tiny-wrap .img-wrap { .tiny-wrap .img-wrap {
text-align: center; text-align: center;
} }
.tiny-wrap .img-wrap img { .tiny-wrap .img-wrap img {
max-width: 600px; max-width: 600px;
max-height: 600px; max-height: 600px;
} }
.tiny-wrap .block .img-des { .tiny-wrap .block .img-des {
margin: 10px 0 0; margin: 10px 0 0;
font-size: 14px; font-size: 14px;
color: #8d8d8d; color: #8d8d8d;
text-align: center; text-align: center;
} }
.tiny-wrap .block .pic { .tiny-wrap .block .pic {
width: 300px; width: 300px;
height: 190px; height: 190px;
} }
.tiny-wrap .people {
display: flex;
align-items: center;
margin-bottom: 30px;
}
.tiny-wrap .people .pic {
max-width: 400px;
margin-right: 50px;
}
.tiny-wrap .people h6 {
font-size: 24px;
font-family: PingFangSC-Medium, PingFang SC;
font-weight: 500;
color: #333333;
}
.tiny-wrap .people h6 {
margin-top: 20px;
font-size: 18px;
color: #333;
line-height: 35px;
}
.tiny-wrap .p-title {
display: flex;
align-items: center;
margin: 0 0 10px;
font-size: 22px;
font-weight: 400;
color: #333;
}
.tiny-wrap .p-title:before {
content: '';
width: 5px;
height: 19px;
margin-right: 8px;
background: #1583ff;
border-radius: 4px;
}

@ -15,8 +15,9 @@
<h2>{{ form.title }}</h2> <h2>{{ form.title }}</h2>
<div class="meta">{{ form.source && form.source + ' | ' }} {{ form.author && form.author + ' | ' }} {{ form.totalBrowsing }} {{$t('column.views')}} | {{ form.releaseTime }}</div> <div class="meta">{{ form.source && form.source + ' | ' }} {{ form.author && form.author + ' | ' }} {{ form.totalBrowsing }} {{$t('column.views')}} | {{ form.releaseTime }}</div>
<div class="meta">{{ form.edit && $t('column.edit') + ':' + form.edit }} {{ form.audit && ' | ' + $t('column.auditor') + ':' + form.audit }} {{ form.label && ' | ' + $t('column.label') + ':' + form.label }}</div> <div class="meta">{{ form.edit && $t('column.edit') + ':' + form.edit }} {{ form.audit && ' | ' + $t('column.auditor') + ':' + form.audit }} {{ form.label && ' | ' + $t('column.label') + ':' + form.label }}</div>
<p class="brief">{{ form.summary }}</p>
</template> </template>
<p v-if="form.summary"
class="brief">{{ form.summary }}</p>
<div class="des" <div class="des"
v-html="form.mainBody"></div> v-html="form.mainBody"></div>
<div v-if="form.fileList && form.fileList.length" <div v-if="form.fileList && form.fileList.length"
@ -57,6 +58,7 @@ export default {
columnBanner: '', columnBanner: '',
isParty: 0, // isParty: 0, //
isPeople: 0, // isPeople: 0, //
gotBanner: 0
} }
}, },
components: { components: {
@ -107,18 +109,19 @@ export default {
// banner // banner
if (!data.bannerImg) { if (!data.bannerImg) {
this.getBanner(this.$refs.right.columns) this.getBanner(this.$refs.right.columns)
this.form.bannerImg = this.columnBanner || require('@/assets/images/article-banner.png') this.form.bannerImg = this.gotBanner && this.columnBanner || require('@/assets/images/article-banner.png')
} }
// +1
this.$post(`${this.api.articlePreview}?contentId=${this.id}`).then(({ data }) => { }).catch(err => { })
this.loaded = true this.loaded = true
} }
} }
}).catch(err => { }) }).catch(err => { })
// +1
this.$post(`${this.api.articlePreview}?contentId=${this.id}`).then(({ data }) => { }).catch(err => { })
}, },
// //
getColumnInfo () { getColumnInfo () {
console.log("🚀 ~ file: index.vue:125 ~ getColumnInfo ~ this.columnId:", this.columnId)
this.columnId && this.$post(`${this.api.findColumn}?id=${this.columnId}`) this.columnId && this.$post(`${this.api.findColumn}?id=${this.columnId}`)
.then(({ data }) => { .then(({ data }) => {
if (data.detailStyleId == 69) this.isParty = 1 if (data.detailStyleId == 69) this.isParty = 1
@ -130,6 +133,7 @@ export default {
for (const e of data) { for (const e of data) {
if (e.columnBanner) this.columnBanner = e.columnBanner if (e.columnBanner) this.columnBanner = e.columnBanner
if (e.id == this.columnId) { if (e.id == this.columnId) {
this.gotBanner = 1
break break
} else { } else {
this.getBanner(e.children) this.getBanner(e.children)

@ -52,6 +52,7 @@
</i> --> </i> -->
</div> </div>
</div> </div>
<!-- 侧导航+新闻列表(含文章概述) -->
<div v-if="info.listStyleId === 12" <div v-if="info.listStyleId === 12"
class="forms"> class="forms">
<div class="item"> <div class="item">
@ -115,13 +116,7 @@
</div> </div>
<div class="contents"> <div class="contents">
<template v-if="!isFilter && showNav && columns.length && !columns.find(i=>i.children.length) && info.listStyleId !==55"> <el-tree v-if="columns.length && columns.find(e => e.children.length) && !isFilter && showNav && info.listStyleId !== 15"
</template>
<template v-if="!columns.find(i=>i.children.length) && info.listStyleId ===55">
</template>
<template v-else-if="!columns.find(i=>i.children.length) && info.listStyleId ===15 || info.listStyleId ===10 || info.listStyleId ===16">
</template>
<el-tree v-else
class="columns" class="columns"
ref="leftColumn" ref="leftColumn"
:data="columns" :data="columns"
@ -138,6 +133,7 @@
<span :title="node.label">{{ node.label }}</span> <span :title="node.label">{{ node.label }}</span>
</span> </span>
</el-tree> </el-tree>
<template v-if="info.listStyleId === 12"> <template v-if="info.listStyleId === 12">
<div class="article-wrap"> <div class="article-wrap">
<ul class="articles"> <ul class="articles">
@ -216,14 +212,12 @@
</div> </div>
</div> </div>
</template> </template>
<template v-else-if="info.listStyleId === 11 || info.listStyleId === 15 || info.listStyleId === 10"> <template v-else-if="info.listStyleId === 11 || info.listStyleId === 15 || info.listStyleId === 10">
<div class="article-wrap"> <div class="article-wrap">
<ul class="articles"> <ul class="articles">
<li v-for="(item, i) in articles" <li v-for="(item, i) in articles"
:key="i" :key="i"
:class="{'news-notice': info.listStyleId === 55}" :class="{'news-notice': info.listStyleId === 55}"
class="otherData"
@click="toArtice(item)"> @click="toArtice(item)">
<template v-if="info.listStyleId === 55"> <template v-if="info.listStyleId === 55">
<div class="releaseTime"> <div class="releaseTime">
@ -233,7 +227,6 @@
<div class="news-title">{{ item.title }}</div> <div class="news-title">{{ item.title }}</div>
</template> </template>
<template v-else> <template v-else>
<div class="texts leftBox"> <div class="texts leftBox">
<p v-if="(item.listStyleId === 10 || item.listStyleId === 15|| item.listStyleId === 11) && item.classificationName" <p v-if="(item.listStyleId === 10 || item.listStyleId === 15|| item.listStyleId === 11) && item.classificationName"
class="type"> class="type">
@ -300,7 +293,7 @@
<ul class="articles"> <ul class="articles">
<li v-for="(item, i) in articles" <li v-for="(item, i) in articles"
:key="i" :key="i"
:class="{'news-notice': info.listStyleId === 55}" :class="{'news-notice': info.listStyleId === 55, 'org': info.listStyleId === 68}"
class="overDetail" class="overDetail"
@click="toArtice(item)"> @click="toArtice(item)">
<template v-if="info.listStyleId === 55"> <template v-if="info.listStyleId === 55">
@ -321,7 +314,7 @@
{{ item.classificationName }} {{ item.classificationName }}
</p> </p>
<h6 class="titleDes">{{ item.title }}</h6> <h6 class="titleDes">{{ item.title }}</h6>
<template v-if="item.listStyleId === 11 || item.listStyleId == 12"> <template v-if="item.listStyleId === 11 || item.listStyleId == 12 || item.listStyleId == 68">
<span class="meta">{{ item.releaseTime }}</span> <span class="meta">{{ item.releaseTime }}</span>
<div class="des" <div class="des"
v-html="item.mainBody"></div> v-html="item.mainBody"></div>
@ -356,7 +349,7 @@
alt="" /> {{ item.onlineLocation }} alt="" /> {{ item.onlineLocation }}
</div> </div>
</template> </template>
<el-button v-if="item.listStyleId === 15" <el-button v-if="item.listStyleId === 15 || item.listStyleId == 68"
type="primary" type="primary"
class="readDetailBtn">{{ $t('column.readDetail') }}</el-button> class="readDetailBtn">{{ $t('column.readDetail') }}</el-button>
@ -434,7 +427,7 @@ export default {
sameStyle: 1, sameStyle: 1,
allColumnId: [], allColumnId: [],
showNav: false, showNav: false,
showNavIds: [10, 11, 12, 16, 55], // id showNavIds: [10, 11, 12, 16, 55, 68], // id
isFilter: false, isFilter: false,
page: 1, page: 1,
pageSize: 10, pageSize: 10,
@ -605,6 +598,7 @@ export default {
this.getAllId = id this.getAllId = id
this.getArticle(id); this.getArticle(id);
this.columns = data; this.columns = data;
console.log("🚀 ~ file: index.vue:608 ~ .then ~ this.columns:", this.columns)
// banner // banner
if (!this.info.columnBanner) { if (!this.info.columnBanner) {
this.getBanner(data); this.getBanner(data);
@ -675,7 +669,7 @@ export default {
const site = cType === 1 ? this.$route.query.siteId || this.site : to.siteSelection; const site = cType === 1 ? this.$route.query.siteId || this.site : to.siteSelection;
if (ids[1]) { if (ids[1]) {
// //
href = '/article?id=' + ids[1]; href = '/article?articleId=' + ids[1];
} else { } else {
// //
const columnIds = ids[0].split(','); const columnIds = ids[0].split(',');
@ -993,12 +987,7 @@ export default {
.readDetail { .readDetail {
padding: 1.3rem 1.5rem; padding: 1.3rem 1.5rem;
justify-content: flex-start; justify-content: flex-start;
align-items: flex-start; align-items: center;
.leftBox {
p {
margin-top: 1.25rem;
}
}
.texts { .texts {
padding-left: 1.5rem; padding-left: 1.5rem;
.titleDes { .titleDes {
@ -1011,12 +1000,8 @@ export default {
} }
} }
.titleDes { .titleDes {
display: -webkit-box;
-webkit-box-orient: vertical;
-webkit-line-clamp: 1;
text-overflow: ellipsis;
overflow: hidden;
margin-top: 0.8rem; margin-top: 0.8rem;
-webkit-line-clamp: 1;
} }
.readDetailBtn { .readDetailBtn {
margin-top: 1.3rem; margin-top: 1.3rem;
@ -1108,6 +1093,9 @@ export default {
@include mul-ellipsis(2); @include mul-ellipsis(2);
} }
} }
.org {
padding: 15px;
}
.right { .right {
width: 14%; width: 14%;
min-width: 15rem; min-width: 15rem;
@ -1196,6 +1184,9 @@ export default {
} }
.article { .article {
.readDetailBtn { .readDetailBtn {
width: 100px;
padding: 10px 20px;
margin-top: 10px;
background-color: $partyTheme; background-color: $partyTheme;
border-color: $partyTheme; border-color: $partyTheme;
} }

@ -20,7 +20,7 @@
</div> </div>
<img class="bg" <img class="bg"
width="562" width="562"
height="506" height="467"
:src="modules[1].form.pic" :src="modules[1].form.pic"
alt=""> alt="">
</div> </div>

@ -71,33 +71,29 @@
<li v-if="i" <li v-if="i"
:key="i" :key="i"
class="wow fadeInDown" class="wow fadeInDown"
:data-wow-delay="(0.1 * i).toFixed(1) + 's'"> :data-wow-delay="(0.1 * i).toFixed(1) + 's'"
@click="toArtice(item, modules[4].form)">
<img class="pic" <img class="pic"
:src="item.titleImg" :src="item.titleImg"
alt=""> alt="">
<div class="texts"> <div class="texts">
<p class="meta">{{ item.releaseTime }} {{ item.classificationName && ' | ' + item.classificationName }}</p> <p class="meta">{{ item.releaseTime }} {{ item.classificationName && ' | ' + item.classificationName }}</p>
<div class="des">{{ item.title }}</div> <div class="des">{{ item.title }}</div>
<img class="arrow"
src="@/assets/images/arrow.png"
alt=""
@click="toArtice(item, modules[4].form)">
</div> </div>
</li> </li>
</template> </template>
</ul> </ul>
</template> </template>
<ul class="news-carousel"> <ul class="news-carousel">
<li v-if="articles1.length" <li v-if="articles1.length">
@click="toArtice(curArticle1, modules[5].form)">
<img class="pic" <img class="pic"
:src="curArticle1.titleImg" src="http://10.10.11.7/images/iasf/8.png"
alt=""> alt="">
<div class="texts"> <div class="texts">
<h6>{{ curArticle1.title }}</h6> <h6 @click="toAll(modules[5].form)">{{ getColumnTitle(modules[5].form) }}</h6>
<p class="meta">{{ curArticle1.source }}</p> <p class="meta">{{ curArticle1.source }}</p>
<div class="des" <div class="des"
v-html="curArticle1.mainBody"></div> @click="toArtice(curArticle1, modules[5].form)">{{ curArticle1.title }}</div>
<p class="date">{{ curArticle1.releaseTime }}</p> <p class="date">{{ curArticle1.releaseTime }}</p>
</div> </div>
<div class="action"> <div class="action">
@ -113,16 +109,15 @@
@click.stop="nextCarousel(1)"></i> @click.stop="nextCarousel(1)"></i>
</div> </div>
</li> </li>
<li v-if="articles2.length" <li v-if="articles2.length">
@click="toArtice(curArticle2, modules[6].form)">
<img class="pic" <img class="pic"
:src="curArticle2.titleImg" src="http://10.10.11.7/images/iasf/9.png"
alt=""> alt="">
<div class="texts"> <div class="texts">
<h6>{{ curArticle2.title }}</h6> <h6 @click="toAll(modules[6].form)">{{ getColumnTitle(modules[6].form) }}</h6>
<p class="meta">{{ curArticle2.source }}</p> <p class="meta">{{ curArticle2.classificationName }}</p>
<div class="des" <div class="des"
v-html="curArticle2.mainBody"></div> @click="toArtice(curArticle2, modules[6].form)">{{ curArticle2.title }}</div>
<p class="date">{{ curArticle2.releaseTime }}</p> <p class="date">{{ curArticle2.releaseTime }}</p>
</div> </div>
<div class="action"> <div class="action">
@ -138,16 +133,14 @@
@click.stop="nextCarousel(2)"></i> @click.stop="nextCarousel(2)"></i>
</div> </div>
</li> </li>
<li v-if="articles3.length" <li v-if="articles3.length">
@click="toArtice(curArticle3, modules[7].form)">
<img class="pic" <img class="pic"
:src="curArticle3.titleImg" src="http://10.10.11.7/images/iasf/10.png"
alt=""> alt="">
<div class="texts"> <div class="texts">
<h6>{{ curArticle3.title }}</h6> <h6 @click="toAll(modules[7].form)">{{ getColumnTitle(modules[7].form) }}</h6>
<p class="meta">{{ curArticle3.source }}</p> <div class="des m-t-8"
<div class="des" @click="toArtice(curArticle3, modules[7].form)">{{ curArticle3.title }}</div>
v-html="curArticle3.mainBody"></div>
<p class="date">{{ curArticle3.releaseTime }}</p> <p class="date">{{ curArticle3.releaseTime }}</p>
</div> </div>
<div class="action"> <div class="action">
@ -208,6 +201,7 @@
<div class="left wow fadeInLeft" <div class="left wow fadeInLeft"
data-wow-delay="0.5s"> data-wow-delay="0.5s">
<h6>{{ modules[11].form.title }}</h6> <h6>{{ modules[11].form.title }}</h6>
<p class="sub-title">{{ modules[11].form.subTitle }}</p>
<div class="text" <div class="text"
v-html="modules[11].form.des"></div> v-html="modules[11].form.des"></div>
<el-button v-if="isLink(modules[11].form.link.linkName)" <el-button v-if="isLink(modules[11].form.link.linkName)"
@ -230,7 +224,9 @@
<div class="text" <div class="text"
v-html="modules[12].form.des"></div> v-html="modules[12].form.des"></div>
<img src="@/assets/images/arrow-white.png" <img src="@/assets/images/arrow-white.png"
alt=""> alt=""
:class="{'arrow': isLink(modules[12].form.link.linkName)}"
@click="openLink(modules[12].form)">
</div> </div>
<img class="pic" <img class="pic"
:src="modules[12].form.pic" :src="modules[12].form.pic"
@ -284,7 +280,12 @@
<ul class="tools"> <ul class="tools">
<li v-for="(item, i) in modules[18].list" <li v-for="(item, i) in modules[18].list"
:key="i" :key="i"
@click="openLink(item)">{{ item.title }}</li> @click="openLink(item)">
<img :src="'http://10.10.11.7/images/iasf/icon' + (i < 4 ? i + 1 : 1) + '.png'"
alt=""
class="icon">
{{ item.title }}
</li>
</ul> </ul>
</div> </div>
</template> </template>
@ -413,14 +414,14 @@ export default {
@import url(../../plugins/wow/animate.css); @import url(../../plugins/wow/animate.css);
@import '../../styles/page/page.scss'; @import '../../styles/page/page.scss';
.iasf-banner { .iasf-banner {
height: 600px; height: 727px;
img { img {
width: 100%; width: 100%;
height: 100%; height: 100%;
} }
.texts { .texts {
position: absolute; position: absolute;
top: 30%; bottom: 40%;
left: 120px; left: 120px;
h6, h6,
.text { .text {
@ -469,16 +470,11 @@ export default {
border-left: 2px solid #dfe4e9; border-left: 2px solid #dfe4e9;
} }
h6 { h6 {
min-height: 4.5rem;
margin-bottom: 1.56rem; margin-bottom: 1.56rem;
line-height: 2rem; line-height: 2rem;
font-size: 1.368rem; font-size: 1.368rem;
color: #333; color: #333;
display: -webkit-box; @include mul-ellipsis(2);
-webkit-box-orient: vertical;
-webkit-line-clamp: 2;
text-overflow: ellipsis;
overflow: hidden;
} }
.des { .des {
font-size: 1.024rem; font-size: 1.024rem;
@ -554,6 +550,7 @@ export default {
width: calc((100% - 18px) / 3); width: calc((100% - 18px) / 3);
margin-right: 9px; margin-right: 9px;
background-color: #fff; background-color: #fff;
cursor: pointer;
&:nth-child(3n) { &:nth-child(3n) {
margin-right: 0; margin-right: 0;
} }
@ -563,7 +560,7 @@ export default {
height: 220px; height: 220px;
} }
.texts { .texts {
padding: 20px 24px; padding: 20px 24px 50px;
background-color: #fff; background-color: #fff;
} }
.meta { .meta {
@ -583,9 +580,8 @@ export default {
li { li {
position: relative; position: relative;
width: calc((100% - 18px) / 3); width: calc((100% - 18px) / 3);
height: 320px; height: 284px;
margin-right: 9px; margin-right: 9px;
cursor: pointer;
&:nth-child(3n) { &:nth-child(3n) {
margin-right: 0; margin-right: 0;
} }
@ -607,6 +603,7 @@ export default {
h6 { h6 {
font-size: 1.2rem; font-size: 1.2rem;
font-family: PingFangSC-Medium, PingFang SC; font-family: PingFangSC-Medium, PingFang SC;
cursor: pointer;
} }
.meta { .meta {
margin: 8px 0; margin: 8px 0;
@ -617,6 +614,7 @@ export default {
margin-bottom: 8px; margin-bottom: 8px;
font-size: 1rem; font-size: 1rem;
font-family: PingFangSC-Medium, PingFang SC; font-family: PingFangSC-Medium, PingFang SC;
cursor: pointer;
} }
.date { .date {
font-size: 0.8rem; font-size: 0.8rem;
@ -708,8 +706,12 @@ export default {
h6 { h6 {
font-size: 1.6rem; font-size: 1.6rem;
} }
.sub-title {
margin: 8px 0 20px;
font-size: 0.9rem;
}
.text { .text {
margin: 20px 0; margin-bottom: 60px;
font-size: 1rem; font-size: 1rem;
line-height: 2; line-height: 2;
} }
@ -827,8 +829,12 @@ export default {
} }
} }
} }
} .news {
@media (max-width: 920px) { flex-direction: column;
li {
width: 100%;
}
}
.news-banner { .news-banner {
flex-direction: column; flex-direction: column;
.pic-wrap, .pic-wrap,

@ -249,7 +249,7 @@ export default {
li { li {
display: flex; display: flex;
justify-content: space-between; justify-content: space-between;
height: 500px; height: 433px;
margin-bottom: 60px; margin-bottom: 60px;
color: #333; color: #333;
background-color: #fff; background-color: #fff;
@ -270,7 +270,7 @@ export default {
font-family: PingFangSC-Medium, PingFang SC; font-family: PingFangSC-Medium, PingFang SC;
} }
.text { .text {
margin: 1rem 0; margin: 14px 0 40px;
font-size: 1rem; font-size: 1rem;
line-height: 1.6; line-height: 1.6;
} }
@ -284,7 +284,7 @@ export default {
} }
.pic { .pic {
width: 48%; width: 48%;
height: 500px; height: 423px;
margin: -20px -20px 0 0; margin: -20px -20px 0 0;
border-radius: 100px 0 0 0; border-radius: 100px 0 0 0;
} }
@ -292,7 +292,7 @@ export default {
} }
.app-inner { .app-inner {
width: 1558px; width: 1200px;
} }
.app { .app {
display: flex; display: flex;
@ -303,9 +303,9 @@ export default {
flex-direction: column; flex-direction: column;
justify-content: center; justify-content: center;
align-items: center; align-items: center;
width: 368px; width: calc((100% - 30px) / 4);
height: 252px; height: 200px;
margin: 0 14px 14px 0; margin: 0 10px 10px 0;
transition: 0.3s; transition: 0.3s;
&:hover { &:hover {
transform: scale(1.05); transform: scale(1.05);
@ -326,6 +326,7 @@ export default {
} }
.icon { .icon {
position: relative; position: relative;
width: 62px;
transition: 0.5s; transition: 0.5s;
} }
.text { .text {

@ -38,7 +38,6 @@
class="table"> class="table">
<thead> <thead>
<tr> <tr>
<th>序号</th>
<th>光源名称</th> <th>光源名称</th>
<th>国家</th> <th>国家</th>
<th>电子束能量GeV</th> <th>电子束能量GeV</th>
@ -59,7 +58,6 @@
<td>{{ item.stations }}</td> <td>{{ item.stations }}</td>
<td>{{ item.intergenerational }}</td> <td>{{ item.intergenerational }}</td>
<td>{{ item.time }}</td> <td>{{ item.time }}</td>
<td>{{ item.name }}</td>
<td>{{ item.emittance }}</td> <td>{{ item.emittance }}</td>
<td>{{ item.status }}</td> <td>{{ item.status }}</td>
</tr> </tr>
@ -68,7 +66,6 @@
class="table"> class="table">
<thead> <thead>
<tr> <tr>
<th>序号</th>
<th>光源名称</th> <th>光源名称</th>
<th>国家</th> <th>国家</th>
<th>地点</th> <th>地点</th>
@ -78,6 +75,7 @@
<th>重复频率/Hz Repetition rate</th> <th>重复频率/Hz Repetition rate</th>
<th>设施长度/m Overall length</th> <th>设施长度/m Overall length</th>
<th>线站数量</th> <th>线站数量</th>
<th>状态</th>
<th>出光时间</th> <th>出光时间</th>
</tr> </tr>
</thead> </thead>

@ -21,7 +21,7 @@
</div> </div>
<img class="bg" <img class="bg"
width="562" width="562"
height="506" height="418"
:src="modules[1].form.pic" :src="modules[1].form.pic"
alt=""> alt="">
</div> </div>
@ -220,13 +220,13 @@ export default {
-webkit-line-clamp: 6; -webkit-line-clamp: 6;
} }
.bg { .bg {
margin: -122px 0 0 0; margin: -115px -80px 0 0;
border-top-right-radius: 40px; border-top-right-radius: 40px;
} }
} }
.core { .core {
position: relative; position: relative;
height: 370px; height: 424px;
margin-bottom: 40px; margin-bottom: 40px;
&:last-child { &:last-child {
.texts { .texts {
@ -264,15 +264,17 @@ export default {
.fac { .fac {
.event { .event {
position: relative; position: relative;
padding: 70px 250px 70px 60px; height: 387px;
padding: 70px 300px 70px 60px;
background: url(http://10.10.11.7/images/overview/16.png) 0 0/100% 100% no-repeat; background: url(http://10.10.11.7/images/overview/16.png) 0 0/100% 100% no-repeat;
h6 { h6 {
position: relative;
font-size: 2.2rem; font-size: 2.2rem;
font-family: PingFangSC-Medium, PingFang SC; font-family: PingFangSC-Medium, PingFang SC;
color: #333; color: #333;
} }
.en { .en {
margin-top: -10px; margin-top: -30px;
font-size: 2rem; font-size: 2rem;
font-family: AppleSystemUIFont; font-family: AppleSystemUIFont;
color: #e4e4e4; color: #e4e4e4;
@ -289,7 +291,7 @@ export default {
li { li {
position: relative; position: relative;
width: calc((100% - 40px) / 3); width: calc((100% - 40px) / 3);
height: 380px; height: 359px;
margin-right: 20px; margin-right: 20px;
&:last-child { &:last-child {
margin-right: 0; margin-right: 0;
@ -325,6 +327,7 @@ export default {
.scan { .scan {
.scan-inner { .scan-inner {
display: flex; display: flex;
justify-content: flex-end;
padding-left: 20%; padding-left: 20%;
} }
.left { .left {
@ -366,7 +369,6 @@ export default {
font-family: PingFangSC-Medium, PingFang SC; font-family: PingFangSC-Medium, PingFang SC;
color: #333; color: #333;
line-height: 1.6; line-height: 1.6;
@include mul-ellipsis(2);
} }
} }
.total { .total {
@ -386,10 +388,15 @@ export default {
} }
} }
.pic { .pic {
width: 70%; width: 826px;
height: 700px; height: 700px;
} }
} }
@media (max-width: 1600px) {
.scan .scan-inner {
padding-left: 10vw;
}
}
@media (max-width: 1400px) { @media (max-width: 1400px) {
.history { .history {
.texts { .texts {

@ -27,9 +27,9 @@
<ul class="teams"> <ul class="teams">
<li v-for="(item, i) in articles" <li v-for="(item, i) in articles"
:key="i"> :key="i"
<div class="line cursor-pointer" @click="toArtice(item, modules[1].form)">
@click="toArtice(item, modules[1].form)"> <div class="line">
<img src="http://10.10.11.7/images/researchTeam/3.png" <img src="http://10.10.11.7/images/researchTeam/3.png"
alt="" alt=""
class="icon"> class="icon">
@ -103,14 +103,15 @@ export default {
data : data :
data[data.length - 1][data[data.length - 1].state ? 'theEditedJson' : 'jsonBeforeEditing']) data[data.length - 1][data[data.length - 1].state ? 'theEditedJson' : 'jsonBeforeEditing'])
this.modules = json this.modules = json
this.allList = json[1].list
console.log("🚀 ~ file: index.vue ~ line 180 ~ this.$post ~ json", json) console.log("🚀 ~ file: index.vue ~ line 180 ~ this.$post ~ json", json)
// //
const { column, articleNum } = json[1].form const { column, articleNum } = json[1].form
if (column.length) { if (column.length) {
this.$post(`${this.api.queryArticlesByColumnType}?columnId=${column[column.length - 1]}`).then(({ data }) => { this.$post(`${this.api.queryArticlesByColumnType}?columnId=${column[column.length - 1]}`).then(({ data }) => {
this.articles = Util.removeTag(data) const articles = Util.removeTag(data)
this.allList = articles
this.articles = this.sortList(articles)
}).catch(err => { }) }).catch(err => { })
} }
} }
@ -119,11 +120,18 @@ export default {
// //
filter () { filter () {
const { title, curLetter } = this const { title, curLetter } = this
this.modules[1].list = this.allList.filter(e => { this.articles = this.allList.filter(e => {
console.log(11, pinyin(e.name, { toneType: 'none' })[0].toUpperCase()) return (e.title.includes(title) || e.post.includes(title) || e.major.includes(title) || e.honor.includes(title)) && (curLetter === '全部' || (curLetter !== '全部' && curLetter === pinyin(e.title, { toneType: 'none' })[0].toUpperCase()))
return (e.name.includes(title) || e.job.includes(title) || e.major.includes(title) || e.honor.includes(title)) && (curLetter === '全部' || (curLetter !== '全部' && curLetter === pinyin(e.name, { toneType: 'none' })[0].toUpperCase()))
}) })
}, },
//
sortList (list) {
list.forEach(e => {
e.sortTitle = pinyin(e.title, { toneType: 'none' })[0].toUpperCase()
})
return list.sort((a, b) => a.sortTitle.charCodeAt(0) - b.sortTitle.charCodeAt(0))
},
// //
letterClick (e) { letterClick (e) {
this.curLetter = e this.curLetter = e
@ -137,13 +145,13 @@ export default {
@import url(../../plugins/wow/animate.css); @import url(../../plugins/wow/animate.css);
@import '../../styles/page/page.scss'; @import '../../styles/page/page.scss';
.content { .content {
width: 1400px; width: 1200px;
} }
.article { .article {
display: flex; display: flex;
justify-content: space-between; justify-content: space-between;
.left { .left {
width: 66%; width: 75%;
.search { .search {
display: inline-flex; display: inline-flex;
width: 34%; width: 34%;
@ -199,6 +207,7 @@ export default {
padding: 20px 30px; padding: 20px 30px;
margin: 0 10px 10px 0; margin: 0 10px 10px 0;
background: url(http://10.10.11.7/images/researchTeam/2.png) 0 0 / cover no-repeat; background: url(http://10.10.11.7/images/researchTeam/2.png) 0 0 / cover no-repeat;
cursor: pointer;
&:nth-child(even) { &:nth-child(even) {
margin-right: 0; margin-right: 0;
} }

@ -149,7 +149,7 @@ export default {
margin-top: 2rem; margin-top: 2rem;
li { li {
position: relative; position: relative;
height: 600px; height: 559px;
margin-bottom: 60px; margin-bottom: 60px;
&:nth-child(even) { &:nth-child(even) {
.texts { .texts {
@ -301,7 +301,7 @@ export default {
display: flex; display: flex;
flex-direction: column; flex-direction: column;
justify-content: center; justify-content: center;
height: 840px; height: 643px;
text-align: center; text-align: center;
background: url(../../assets/images/about-bg.png) no-repeat center center; background: url(../../assets/images/about-bg.png) no-repeat center center;
background-size: 100% 100%; background-size: 100% 100%;

@ -71,6 +71,28 @@
<span class="date">{{ item.releaseTime }}</span> <span class="date">{{ item.releaseTime }}</span>
</li> </li>
</ul> </ul>
<p class="l-title">{{$t('column.hot')}}</p>
<ul class="list">
<li v-for="(item, i) in hots"
:key="i"
:title="item.title"
@click="toArtice(item)">
<p class="text">{{ item.title }}</p>
<span class="date">{{ item.releaseTime }}</span>
</li>
</ul>
<p class="l-title">{{$t('column.latestNews')}}</p>
<ul class="list">
<li v-for="(item, i) in news"
:key="i"
:title="item.title"
@click="toArtice(item)">
<p class="text">{{ item.title }}</p>
<span class="date">{{ item.releaseTime }}</span>
</li>
</ul>
</div> </div>
</div> </div>
</div> </div>
@ -93,11 +115,13 @@ export default {
value: 'id', value: 'id',
label: 'title' label: 'title'
}, },
articles: [] articles: [],
news: [],
hots: []
} }
}, },
mounted () { mounted () {
this.getColumn()
}, },
methods: { methods: {
// //
@ -109,14 +133,25 @@ export default {
const json = JSON.parse(this.preview ? const json = JSON.parse(this.preview ?
data : data :
data[data.length - 1][data[data.length - 1].state ? 'theEditedJson' : 'jsonBeforeEditing']) data[data.length - 1][data[data.length - 1].state ? 'theEditedJson' : 'jsonBeforeEditing'])
json[4].list = json[4].list.filter(e => e.isEnable)
json[4].list.unshift({
title: '人才中心'
})
json[4].list.forEach((e, i) => {
e.id = i
})
this.modules = json this.modules = json
this.$nextTick(e => {
this.$refs.column.setCurrentKey(0)
})
console.log("🚀 ~ file: index.vue ~ line 180 ~ this.$post ~ json", json) console.log("🚀 ~ file: index.vue ~ line 180 ~ this.$post ~ json", json)
// //
const { column } = json[5].form const { column } = json[5].form
if (column.length) { if (column.length) {
this.$post(`${this.api.queryArticlesByColumnType}?columnId=${column[column.length - 1]}`).then(({ data }) => { this.$post(`${this.api.queryArticlesByColumnType}?columnId=${column[column.length - 1]}`).then(({ data }) => {
this.articles = Util.removeTag(data) this.articles = Util.removeTag(data.slice(0, 5))
}).catch(err => { }) }).catch(err => { })
} }
} }
@ -126,7 +161,21 @@ export default {
this.openLink(row) this.openLink(row)
console.log("🚀 ~ file: index.vue:126 ~ columnClick ~ row:", row) console.log("🚀 ~ file: index.vue:126 ~ columnClick ~ row:", row)
} },
//
getColumn () {
this.$post(`${this.api.hotContent}?siteId=${this.site}`).then(({ data }) => {
this.hots = Util.removeTag(data)
}).catch(err => { })
this.$post(this.api.newlyPublishedArticles, {
pageNum: 1,
pageSize: 5,
siteId: this.site
}).then(({ data }) => {
this.news = Util.removeTag(data.records)
}).catch(res => { })
},
} }
}; };
</script> </script>
@ -138,13 +187,13 @@ export default {
background-color: #fff; background-color: #fff;
} }
.content { .content {
width: 1400px; width: 1200px;
} }
.article { .article {
display: flex; display: flex;
justify-content: space-between; justify-content: space-between;
.left { .left {
width: 66%; width: 75%;
.talent-title { .talent-title {
padding-bottom: 10px; padding-bottom: 10px;
font-size: 1.2rem; font-size: 1.2rem;
@ -165,7 +214,7 @@ export default {
margin-top: 4rem; margin-top: 4rem;
li { li {
position: relative; position: relative;
height: 450px; height: 433px;
margin-bottom: 2rem; margin-bottom: 2rem;
&:nth-child(even) { &:nth-child(even) {
.texts { .texts {
@ -243,7 +292,7 @@ export default {
} }
} }
} }
@media (max-width: 1400px) { @media (max-width: 1200px) {
.content { .content {
width: 90%; width: 90%;
} }

@ -83,7 +83,7 @@ export default {
@import '../../styles/page/page.scss'; @import '../../styles/page/page.scss';
.content { .content {
display: flex; display: flex;
width: 1400px; width: 1200px;
justify-content: space-between; justify-content: space-between;
.left { .left {
width: calc(100% - 300px); width: calc(100% - 300px);
@ -110,7 +110,7 @@ export default {
color: #333; color: #333;
} }
.job { .job {
margin: 10px 0; margin: 16px 0;
font-size: 1rem; font-size: 1rem;
font-family: PingFangSC-Regular, PingFang SC; font-family: PingFangSC-Regular, PingFang SC;
color: #333; color: #333;

Loading…
Cancel
Save