<template> <div class="wrap"> <div class="actions"> <p class="page-name">页面设置/{{ columnName }}</p> <div> <el-button type="primary" @click="preview">预览</el-button> <el-button @click="save(0)">保存为草稿</el-button> <el-button type="primary" @click="save(1)">发布</el-button> <el-button @click="back">放弃编辑</el-button> </div> </div> <div class="modules"> <div class="relative"> <el-carousel height="480px" :indicator-position="modules[0].list.filter(e => e.isEnable).length > 1 ? '' : 'none'"> <template v-for="(item, i) in modules[0].list"> <el-carousel-item v-if="item.pic && item.isEnable" :key="i"> <img width="100%" height="100%" :src="item.pic" alt=""> </el-carousel-item> </template> </el-carousel> <div class="cover" @click="toSet(0)">点击更换banner与链接</div> </div> <ul class="tabs"> <li :class="{ active: item.id == active }" v-for="(item, i) in modules[1].list" :key="i"> {{ item.columnName }} <div class="cover" @click="toSet(1, i)">关联栏目</div> </li> </ul> <div class="block"> <div class="inner"> <div class="news-banner"> <img width="100%" height="480" src="https://new.iasf.ac.cn/images/about/5.png" alt=""> <div class="right"> <h6>IASF is driven to serve the Science and industry, and solve grand challenges through research and innovation. We are open and creative</h6> <div class="des">Innovation centers are distributed in the bay areas, such as the San Francisco Bay area, the New York Bay area, and the Tokyo Bay area in Japan. And the Guangdong-Hong Kong-Macao Greater Bay </div> <p class="meta">2022-07-24 | Research</p> </div> </div> <ul class="card"> <li> <img class="pic" src="https://new.iasf.ac.cn/images/about/9.png" alt=""> <div class="texts"> <p class="meta">2022-09-09 | Research</p> <div class="des">IASF is driven to serve the Science and industry, and solve grand </div> <img class="arrow" src="@/assets/images/arrow.png" alt=""> </div> </li> <li> <img class="pic" src="https://new.iasf.ac.cn/images/about/10.png" alt=""> <div class="texts"> <p class="meta">2022-09-09 | Research</p> <div class="des">IASF is driven to serve the Science and industry, and solve grand </div> <img class="arrow" src="@/assets/images/arrow.png" alt=""> </div> </li> <li> <img class="pic" src="https://new.iasf.ac.cn/images/about/11.png" alt=""> <div class="texts"> <p class="meta">2022-09-09 | Research</p> <div class="des">IASF is driven to serve the Science and industry, and solve grand </div> <img class="arrow" src="@/assets/images/arrow.png" alt=""> </div> </li> </ul> <div class="more">More news ></div> </div> </div> <div class="block gray"> <div class="inner lg"> <div class="c-wrap"> <h2 class="b-title">{{ modules[2].form.title }}</h2> <p class="intro">{{ modules[2].form.des }}</p> <div class="cover" @click="toSet(2)">点击更换标题与描述</div> </div> <div class="shop-shows"> <div class="left"> <img width="100%" height="400" src="https://new.iasf.ac.cn/images/about/5.png" alt=""> <div class="texts"> <h6>2022 New Year Messag President Sun Dongbai….</h6> <div class="des">2021 is another challenging year for the Institute of Advanced Science Facilities, Shenzhen (IASF)…</div> </div> </div> <div class="right"> <ul class="show-card"> <li> <img class="pic" src="https://new.iasf.ac.cn/images/about/9.png" alt=""> <div class="des">Comprises the installation and nanostructuri</div> </li> <li> <img class="pic" src="https://new.iasf.ac.cn/images/about/10.png" alt=""> <div class="des">Prof. Stephan V. Roth's research</div> </li> </ul> <ul class="card-list"> <li> <img class="pic" src="https://new.iasf.ac.cn/images/about/9.png" alt=""> <div class="texts"> <h6>Hold doctorates or the highest degree in their field</h6> <div class="des">Characterization in Fibre and Polymer Technology, KTH Royal Institute of Technology.Characteriza Royal Institute of technology.…</div> </div> </li> <li> <img class="pic" src="https://new.iasf.ac.cn/images/about/10.png" alt=""> <div class="texts"> <h6>This 2019 image depicted a Centers for Disease</h6> <div class="des">laboratory technician, dressed in personal protective equipment (PPE), in thelaboratory technician, dressed in personal in the…</div> </div> </li> <li> <img class="pic" src="https://new.iasf.ac.cn/images/about/11.png" alt=""> <div class="texts"> <h6>Browse premium related images on iStock</h6> <div class="des">which would undergo analysis, here, in this laboratory environment.which would undergo analysis, here, in this laboratory environment.…</div> </div> </li> </ul> </div> <div class="cover" @click="toSet(3)">关联栏目</div> </div> </div> </div> <div class="block conference"> <div class="inner lg"> <div class="c-wrap"> <h2 class="b-title">{{ modules[4].form.title }}</h2> <p class="intro">{{ modules[4].form.des }}</p> <div class="cover" @click="toSet(4)">点击更换标题与描述</div> </div> <div class="shows"> <div class="left"> <img width="100%" height="558" src="https://new.iasf.ac.cn/images/about/5.png" alt=""> <div class="texts"> <div class="meta"> <p class="date">09</p> <p class="year">2022-03</p> </div> <div> <h6>Browse premium related images on iStock</h6> <div class="des">which would undergo analysis, here, in this laboratory environment.which would undergo analysis, here, in this laboratory environment.…</div> </div> </div> </div> <ul class="card-list"> <li> <img class="pic" src="https://new.iasf.ac.cn/images/about/9.png" alt=""> <div class="texts"> <h6>Professional technical Free electron laser device</h6> <p class="text"> <img class="icon" src="@/assets/images/address.png" alt=""> Jiahang Shao </p> <p class="text"> <img class="icon" src="@/assets/images/address.png" alt=""> Time: 2022.8.13 14:30 </p> <p class="text"> <img class="icon" src="@/assets/images/address.png" alt=""> Address: Big conference room on the fourth floor of headquarters </p> </div> </li> <li> <img class="pic" src="https://new.iasf.ac.cn/images/about/9.png" alt=""> <div class="texts"> <h6>Professional technical Free electron laser device</h6> <p class="text"> <img class="icon" src="@/assets/images/address.png" alt=""> Jiahang Shao </p> <p class="text"> <img class="icon" src="@/assets/images/address.png" alt=""> Time: 2022.8.13 14:30 </p> <p class="text"> <img class="icon" src="@/assets/images/address.png" alt=""> Address: Big conference room on the fourth floor of headquarters </p> </div> </li> <li> <img class="pic" src="https://new.iasf.ac.cn/images/about/9.png" alt=""> <div class="texts"> <h6>Professional technical Free electron laser device</h6> <p class="text"> <img class="icon" src="@/assets/images/address.png" alt=""> Jiahang Shao </p> <p class="text"> <img class="icon" src="@/assets/images/address.png" alt=""> Time: 2022.8.13 14:30 </p> <p class="text"> <img class="icon" src="@/assets/images/address.png" alt=""> Address: Big conference room on the fourth floor of headquarters </p> </div> </li> <li> <img class="pic" src="https://new.iasf.ac.cn/images/about/9.png" alt=""> <div class="texts"> <h6>Professional technical Free electron laser device</h6> <p class="text"> <img class="icon" src="@/assets/images/address.png" alt=""> Jiahang Shao </p> <p class="text"> <img class="icon" src="@/assets/images/address.png" alt=""> Time: 2022.8.13 14:30 </p> <p class="text"> <img class="icon" src="@/assets/images/address.png" alt=""> Address: Big conference room on the fourth floor of headquarters </p> </div> </li> </ul> <div class="cover" @click="toSet(5)">关联栏目</div> </div> </div> </div> </div> <Module ref="module" :data.sync="curData" :visible.sync="diaVisible" @moduleSubmit="moduleSubmit" /> </div> </template> <script> import mixins from '@/mixins/page' import Modules from '@/const/modules' export default { mixins: [mixins], data () { return { modules: Modules.news, tabs: [ { id: 1, name: 'General news' }, { id: 2, name: 'Research news' }, { id: 3, name: 'Journal covers' }, { id: 1, name: 'General news' }, { id: 2, name: 'Research news' }, { id: 3, name: 'Journal covers' } ], active: '' } }, mounted () { }, methods: { } }; </script> <style lang="scss" scoped> @import '../../../styles/page/page.scss'; .tabs { display: flex; justify-content: center; box-shadow: 0px 2px 14px 0px rgba(167, 167, 167, 0.26); li { position: relative; min-width: 100px; padding: 25px 19px; margin: 0 10px; font-size: 22px; color: #333; border-bottom: 4px solid transparent; text-shadow: 0px 2px 14px rgba(167, 167, 167, 0.26); cursor: pointer; &.active { color: #1583ff; border-bottom-color: #1583ff; } } } .news-banner { display: flex; height: auto; .pic { width: 700px; height: 380px; } .right { padding: 50px 50px 30px; background: #1583ff; color: #fff; } h6 { font-size: 24px; } .des { margin: 30px 0; font-size: 16px; line-height: 24px; } .meta { font-size: 16px; } } .card { display: flex; margin-top: 40px; li { width: 448px; margin-right: 28px; box-shadow: 0px 0px 20px 0px rgba(176, 176, 176, 0.21); border-radius: 6px; cursor: pointer; &:last-child { margin-right: 0; } } .pic { width: 100%; height: 240px; } .texts { padding: 40px 30px; } .meta { font-size: 16px; color: #666; } .des { margin: 10px 0; font-size: 20px; color: #333; line-height: 28px; } .arrow { width: 36px; } } .more { width: 374px; margin: 58px auto 0; line-height: 64px; font-size: 30px; text-align: center; color: #1583ff; border-radius: 35px; border: 2px solid #2b6cef; cursor: pointer; } .shop-shows { position: relative; display: flex; .left { width: 660px; margin-right: 20px; background-color: #fff; .texts { padding: 40px 30px; } h6 { font-size: 24px; color: #272727; } .des { margin-top: 10px; font-size: 16px; color: #666; line-height: 30px; } } .right { width: 824px; } .show-card { display: flex; margin-bottom: 20px; li { position: relative; &:first-child { margin-right: 22px; } } .pic { width: 401px; height: 197px; } .des { position: absolute; bottom: 0; left: 0; width: 100%; font-size: 16px; color: #fff; line-height: 48px; text-align: center; background: rgba(0, 0, 0, 0.49); box-shadow: 0px 0px 30px 0px rgba(48, 48, 48, 0.08); } } .card-list { padding: 34px 26px; background-color: #fff; li { display: inline-flex; padding-right: 124px; margin-bottom: 38px; background: url(../../../assets/images/arrow.png) (right 20px)/ (23px 23px) no-repeat; &:last-child { margin-bottom: 0; } } .pic { width: 116px; height: 85px; margin-right: 28px; } h6 { font-size: 20px; color: #272727; } .des { margin-top: 15px; font-size: 14px; color: #666; line-height: 24px; } } } .conference { background: #072947; .b-title, .intro { color: #fff; } .shows { position: relative; display: flex; } .left { width: 688px; margin-right: 20px; background-color: #fff; .texts { display: flex; padding: 40px 30px; } .meta { padding: 10px 23px 10px 0; margin-right: 32px; text-align: center; border-right: 1px solid #ddd; } .date { font-size: 45px; font-family: DINAlternate-Bold, DINAlternate; font-weight: bold; color: #1f1f1f; line-height: 52px; } .year { font-size: 16px; white-space: nowrap; color: #666; } h6 { font-size: 20px; color: #272727; } .des { margin-top: 10px; font-size: 14px; color: #666; line-height: 24px; } } .card-list { width: 784px; li { display: flex; padding: 24px; margin-bottom: 13px; background-color: #fff; } .pic { width: 188px; height: 130px; margin-right: 28px; } h6 { margin-bottom: 10px; font-size: 20px; color: #333; } .text { display: flex; align-items: center; margin: 10px 0; } .icon { width: 15px; margin-right: 12px; } } } </style>