粒子研究院前台前端
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

107 lines
2.5 KiB

2 years ago
<template>
2 years ago
<div class="wrap p-b-30">
2 years ago
<div class="single-banner single-banner-overview">
2 years ago
<img class="banner-img"
:src="modules[0].form.pic"
alt="">
2 years ago
<div class="texts">
<h6 class="banner-title">{{ modules[0].form.title }}</h6>
</div>
</div>
2 years ago
<div class="org">
<div class="left">
<h6>{{ modules[1].form.title }}</h6>
2 years ago
<p class="text"
v-html="modules[1].form.des"></p>
2 years ago
</div>
2 years ago
<img class="pic"
src="http://10.10.11.7/images/overviewSetup/1.png"
alt="">
2 years ago
</div>
<div class="lg-bg">
2 years ago
<el-image style="width: 100%;"
:src="modules[2].form.pic"
:preview-src-list="[modules[2].form.pic]">
</el-image>
2 years ago
</div>
</div>
</template>
<script>
import mixins from '@/mixins/page'
import WOW from 'wow.js'
export default {
mixins: [mixins],
2 years ago
data () {
2 years ago
return {
2 years ago
2 years ago
}
},
2 years ago
mounted () {
2 years ago
new WOW().init()
},
methods: {
// 获取文章详情
2 years ago
getInfo () {
2 years ago
// 预览/详情
this.$post(
`${this.api[this.preview ? "getRedisCache" : "findPage"]}?columnId=${this.id}`
)
.then(({ data }) => {
if (data.length) {
// state:已发布(1)则取theEditedJson,草稿(0)则取jsonBeforeEditing
const json = JSON.parse(
this.preview
? data
: data[data.length - 1][
2 years ago
data[data.length - 1].state ? "theEditedJson" : "jsonBeforeEditing"
]
2 years ago
);
this.modules = json;
console.log("🚀 ~ file: index.vue ~ line 180 ~ this.$post ~ json", json);
}
})
2 years ago
.catch((err) => { });
2 years ago
},
}
};
</script>
<style lang="scss" scoped>
@import url(../../plugins/wow/animate.css);
2 years ago
@import '../../styles/page/page.scss';
2 years ago
.org {
2 years ago
display: flex;
justify-content: space-between;
align-items: center;
width: 1294px;
padding: 9px 86px 29px 116px;
margin: 0 auto 50px;
background: #fcfcfc;
border-radius: 160px;
.left {
width: 705px;
2 years ago
}
2 years ago
h6 {
font-size: 1.4rem;
font-family: AlimamaShuHeiTi-Bold, AlimamaShuHeiTi;
font-weight: bold;
color: #333;
2 years ago
}
2 years ago
.text {
margin-top: 10px;
font-size: 1rem;
color: #020202;
line-height: 2rem;
2 years ago
}
2 years ago
.pic {
2 years ago
width: 320px;
height: 282px;
2 years ago
}
2 years ago
}
2 years ago
.lg-bg {
2 years ago
width: 50%;
2 years ago
margin: 0 auto;
2 years ago
}
</style>