yujialong 4 months ago
parent f01ab6e255
commit 4d7fcd0f47
  1. 2529
      src/const/modules.js
  2. 39
      src/pages/column/index.vue
  3. 53
      src/pages/iasf/index.vue

File diff suppressed because it is too large Load Diff

@ -449,17 +449,35 @@ export default {
}).catch(err => { }) }).catch(err => { })
} }
}, },
// banner
getBanner (data) { // id
for (const e of data) { getColumnById (id) {
if (e.columnBanner) this.columnBanner = e.columnBanner function searchColumn (columns, targetId) {
if (e.id == this.info.id) { for (const item of columns) {
break if (item.id === targetId) return item
} else if (e.children.length) {
this.getBanner(e.children) if (item.children && item.children.length) {
const found = searchColumn(item.children, targetId)
if (found) return found
}
} }
return null
} }
return searchColumn(this.columns, id)
}, },
// banner
getBanner (item, defaultBanner) {
// banner banner
if (item.columnBanner) return item.columnBanner
// banner banner
if (item.fatherId) return this.getBanner(this.getColumnById(item.fatherId), defaultBanner)
// banner banner
return defaultBanner
},
// //
getClassification () { getClassification () {
// //
@ -542,8 +560,9 @@ export default {
this.columns = data; this.columns = data;
// banner // banner
if (!this.info.columnBanner) { if (!this.info.columnBanner) {
this.getBanner(data); this.$nextTick(() => {
this.info.columnBanner = this.columnBanner || require('@/assets/images/column-banner.png'); this.info.columnBanner = this.getBanner(this.info, require('@/assets/images/column-banner.png'))
})
} }
this.$nextTick(() => { this.$nextTick(() => {
const el = this.$refs.leftColumn; const el = this.$refs.leftColumn;

@ -157,24 +157,22 @@
</div> </div>
<div class="block people-block"> <div class="block people-block">
<div class="inner"> <h2 class="b-title wow fadeInUp">{{ modules[9].form.title }}</h2>
<h2 class="b-title wow fadeInUp">{{ modules[9].form.title }}</h2> <p class="intro wow fadeInUp" data-wow-delay="0.5s">{{ modules[9].form.des }}</p>
<p class="intro wow fadeInUp" data-wow-delay="0.5s">{{ modules[9].form.des }}</p> <ul v-if="articles4.length" class="people">
<ul v-if="articles4.length" class="people"> <li v-for="(item, i) in articles4" :key="i" @click="toArtice(item, modules[10].form)"
<li v-for="(item, i) in articles4" :key="i" @click="toArtice(item, modules[10].form)" class="wow fadeInDown">
class="wow fadeInDown"> <img class="pic" :src="item.titleImg" alt="">
<img class="pic" :src="item.titleImg" alt=""> <div class="texts">
<div class="texts"> <h6>{{ item.title }}</h6>
<h6>{{ item.title }}</h6> <p class="job">{{ item.post }}</p>
<p class="job">{{ item.post }}</p> <p class="hobby">{{ item.hobby }}</p>
<p class="hobby">{{ item.hobby }}</p> <div class="text" v-html="item.mainBody"></div>
<div class="text" v-html="item.mainBody"></div> </div>
</div> </li>
</li> </ul>
</ul> <div class="all-link" @click="toAll(modules[10].form)">
<div class="all-link" @click="toAll(modules[10].form)"> <span>{{ $t('column.all') }} <img class="icon" src="@/assets/images/arrow.png" alt=""></span>
<span>{{ $t('column.all') }} <img class="icon" src="@/assets/images/arrow.png" alt=""></span>
</div>
</div> </div>
</div> </div>
@ -540,12 +538,10 @@ $bannerMh: 800px;
h6 { h6 {
margin-bottom: 30px; margin-bottom: 30px;
font-size: 68px; font-size: 68px;
font-family: AlimamaShuHeiTi-Bold, AlimamaShuHeiTi;
} }
.text { .text {
font-size: 24px; font-size: 24px;
font-family: AppleSystemUIFont;
} }
} }
} }
@ -568,14 +564,12 @@ $bannerMh: 800px;
.b-title { .b-title {
font-size: 35px; font-size: 35px;
font-family: PingFangSC-Semibold, PingFang SC;
color: #333; color: #333;
} }
.intro { .intro {
margin-bottom: 3.6rem; margin-bottom: 3.6rem;
font-size: 26px; font-size: 26px;
font-family: FZLTXHK--GBK1-0, FZLTXHK--GBK1;
color: #5b5b5e; color: #5b5b5e;
} }
} }
@ -637,7 +631,6 @@ $bannerMh: 800px;
width: 100%; width: 100%;
height: 100%; height: 100%;
font-size: 29px; font-size: 29px;
font-family: PingFangSC-Medium, PingFang SC;
color: #fff; color: #fff;
background-color: rgba(0, 0, 0, 0.3); background-color: rgba(0, 0, 0, 0.3);
transition: 0.3s; transition: 0.3s;
@ -662,14 +655,12 @@ $bannerMh: 800px;
.name { .name {
font-size: 45px; font-size: 45px;
font-family: PingFangSC-Medium, PingFang SC;
} }
h6 { h6 {
margin: 10px 0 20px; margin: 10px 0 20px;
line-height: 63px; line-height: 63px;
font-size: 40px; font-size: 40px;
font-family: PingFangSC-Medium, PingFang SC;
@include mul-ellipsis(2); @include mul-ellipsis(2);
} }
@ -737,7 +728,6 @@ $bannerMh: 800px;
h6 { h6 {
font-size: 24px; font-size: 24px;
font-family: PingFangSC-Semibold, PingFang SC;
line-height: 43px; line-height: 43px;
@include mul-ellipsis(2); @include mul-ellipsis(2);
} }
@ -824,7 +814,6 @@ $bannerMh: 800px;
h6 { h6 {
font-size: 20px; font-size: 20px;
font-family: PingFangSC-Semibold, PingFang SC;
color: #333; color: #333;
@include ellipsis; @include ellipsis;
} }
@ -874,7 +863,6 @@ $bannerMh: 800px;
h6 { h6 {
font-size: 24px; font-size: 24px;
font-family: PingFangSC-Medium, PingFang SC;
cursor: pointer; cursor: pointer;
} }
@ -891,7 +879,6 @@ $bannerMh: 800px;
.des { .des {
font-size: 20px; font-size: 20px;
font-family: PingFangSC-Medium, PingFang SC;
-webkit-line-clamp: 2; -webkit-line-clamp: 2;
line-height: 30px; line-height: 30px;
cursor: pointer; cursor: pointer;
@ -1003,9 +990,10 @@ $bannerMh: 800px;
.people { .people {
display: flex; display: flex;
justify-content: center;
li { li {
width: 33.33%; width: 400px;
padding: 20px 70px 40px; padding: 20px 70px 40px;
text-align: center; text-align: center;
border-right: 1px solid #ddd; border-right: 1px solid #ddd;
@ -1037,14 +1025,12 @@ $bannerMh: 800px;
h6 { h6 {
font-size: 1.1rem; font-size: 1.1rem;
font-family: PingFangSC-Medium, PingFang SC;
color: #333; color: #333;
} }
.job { .job {
margin: 18px 0 12px; margin: 18px 0 12px;
font-size: 1rem; font-size: 1rem;
font-family: PingFangSC-Medium, PingFang SC;
color: #333; color: #333;
} }
@ -1080,7 +1066,6 @@ $bannerMh: 800px;
h6 { h6 {
font-size: 30px; font-size: 30px;
font-family: PingFangSC-Medium, PingFang SC;
} }
.sub-title { .sub-title {
@ -1125,7 +1110,6 @@ $bannerMh: 800px;
h6 { h6 {
font-size: 36px; font-size: 36px;
font-family: PingFangSC-Semibold, PingFang SC;
color: #fff; color: #fff;
} }
@ -1169,7 +1153,6 @@ $bannerMh: 800px;
.text { .text {
margin-top: 15px; margin-top: 15px;
font-size: 1rem; font-size: 1rem;
font-family: PingFangSC-Medium, PingFang SC;
color: #48525e; color: #48525e;
} }
} }

Loading…
Cancel
Save