|
|
|
@ -3,76 +3,110 @@ |
|
|
|
|
<div class="actions"> |
|
|
|
|
<p class="page-name">页面设置/装置介绍-实验站</p> |
|
|
|
|
<div> |
|
|
|
|
<el-button type="primary" @click="preview">预览</el-button> |
|
|
|
|
<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 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'"> |
|
|
|
|
<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 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 class="cover" |
|
|
|
|
@click="toSet(0)">点击更换banner与链接</div> |
|
|
|
|
</div> |
|
|
|
|
|
|
|
|
|
<div class="block station"> |
|
|
|
|
<div class="inner c-wrap"> |
|
|
|
|
<h6>{{ modules[1].form.title }}</h6> |
|
|
|
|
<h6 v-html="modules[1].form.title"></h6> |
|
|
|
|
<p class="en">{{ modules[1].form.subTitle }}</p> |
|
|
|
|
<template v-if="modules[1].form.pic"> |
|
|
|
|
<video v-if="Util.isVideo(modules[1].form.mediaType)" class="pic" ref="video" autoplay controls loop> |
|
|
|
|
<source :src="modules[1].form.pic" type="video/mp4"> |
|
|
|
|
<video v-if="Util.isVideo(modules[1].form.mediaType)" |
|
|
|
|
class="pic" |
|
|
|
|
ref="video" |
|
|
|
|
autoplay |
|
|
|
|
controls |
|
|
|
|
loop> |
|
|
|
|
<source :src="modules[1].form.pic" |
|
|
|
|
type="video/mp4"> |
|
|
|
|
您的浏览器不支持 video 标签。 |
|
|
|
|
</video> |
|
|
|
|
<img v-else class="pic" :src="modules[1].form.pic" alt=""> |
|
|
|
|
<img v-else |
|
|
|
|
class="pic" |
|
|
|
|
:src="modules[1].form.pic" |
|
|
|
|
alt=""> |
|
|
|
|
</template> |
|
|
|
|
<div class="des" v-html="modules[1].form.des"></div> |
|
|
|
|
<div class="cover" @click="toSet(1)">点击更改图片与概述</div> |
|
|
|
|
<div class="des" |
|
|
|
|
v-html="modules[1].form.des"></div> |
|
|
|
|
<div class="cover" |
|
|
|
|
@click="toSet(1)">点击更改图片与概述</div> |
|
|
|
|
</div> |
|
|
|
|
</div> |
|
|
|
|
|
|
|
|
|
<ul class="list"> |
|
|
|
|
<li class="item1"> |
|
|
|
|
<img src="@/assets/images/exp/2.png" alt=""> |
|
|
|
|
<img src="@/assets/images/exp/2.png" |
|
|
|
|
alt=""> |
|
|
|
|
<h6>{{ modules[2].form.title }}</h6> |
|
|
|
|
<div class="cover" @click="toSet(2)">点击更改标题与链接</div> |
|
|
|
|
<div class="cover" |
|
|
|
|
@click="toSet(2)">点击更改标题与链接</div> |
|
|
|
|
</li> |
|
|
|
|
<li class="item2"> |
|
|
|
|
<img src="@/assets/images/exp/3.png" alt=""> |
|
|
|
|
<img src="@/assets/images/exp/3.png" |
|
|
|
|
alt=""> |
|
|
|
|
<h6>{{ modules[3].form.title }}</h6> |
|
|
|
|
<div class="cover" @click="toSet(3)">点击更改标题与链接</div> |
|
|
|
|
<div class="cover" |
|
|
|
|
@click="toSet(3)">点击更改标题与链接</div> |
|
|
|
|
</li> |
|
|
|
|
<li class="item3"> |
|
|
|
|
<img src="@/assets/images/exp/4.png" alt=""> |
|
|
|
|
<img src="@/assets/images/exp/4.png" |
|
|
|
|
alt=""> |
|
|
|
|
<h6>{{ modules[4].form.title }}</h6> |
|
|
|
|
<div class="cover" @click="toSet(4)">点击更改标题与链接</div> |
|
|
|
|
<div class="cover" |
|
|
|
|
@click="toSet(4)">点击更改标题与链接</div> |
|
|
|
|
</li> |
|
|
|
|
<li class="item4"> |
|
|
|
|
<img src="@/assets/images/exp/5.png" alt=""> |
|
|
|
|
<img src="@/assets/images/exp/5.png" |
|
|
|
|
alt=""> |
|
|
|
|
<h6>{{ modules[5].form.title }}</h6> |
|
|
|
|
<div class="cover" @click="toSet(5)">点击更改标题与链接</div> |
|
|
|
|
<div class="cover" |
|
|
|
|
@click="toSet(5)">点击更改标题与链接</div> |
|
|
|
|
</li> |
|
|
|
|
<li class="item5"> |
|
|
|
|
<img src="@/assets/images/exp/6.png" alt=""> |
|
|
|
|
<img src="@/assets/images/exp/6.png" |
|
|
|
|
alt=""> |
|
|
|
|
<h6>{{ modules[6].form.title }}</h6> |
|
|
|
|
<div class="cover" @click="toSet(6)">点击更改标题与链接</div> |
|
|
|
|
<div class="cover" |
|
|
|
|
@click="toSet(6)">点击更改标题与链接</div> |
|
|
|
|
</li> |
|
|
|
|
<li class="item6"> |
|
|
|
|
<img src="@/assets/images/exp/7.png" alt=""> |
|
|
|
|
<img src="@/assets/images/exp/7.png" |
|
|
|
|
alt=""> |
|
|
|
|
<h6>{{ modules[7].form.title }}</h6> |
|
|
|
|
<div class="cover" @click="toSet(7)">点击更改标题与链接</div> |
|
|
|
|
<div class="cover" |
|
|
|
|
@click="toSet(7)">点击更改标题与链接</div> |
|
|
|
|
</li> |
|
|
|
|
</ul> |
|
|
|
|
</div> |
|
|
|
|
|
|
|
|
|
<Module ref="module" :data.sync="curData" :visible.sync="diaVisible" @moduleSubmit="moduleSubmit" /> |
|
|
|
|
<Module ref="module" |
|
|
|
|
:data.sync="curData" |
|
|
|
|
:visible.sync="diaVisible" |
|
|
|
|
@moduleSubmit="moduleSubmit" /> |
|
|
|
|
</div> |
|
|
|
|
</template> |
|
|
|
|
|
|
|
|
@ -122,7 +156,7 @@ export default { |
|
|
|
|
</script> |
|
|
|
|
|
|
|
|
|
<style lang="scss" scoped> |
|
|
|
|
@import "../../../styles/page/page.scss"; |
|
|
|
|
@import '../../../styles/page/page.scss'; |
|
|
|
|
.station { |
|
|
|
|
.inner { |
|
|
|
|
width: 1200px; |
|
|
|
@ -139,7 +173,7 @@ export default { |
|
|
|
|
margin-bottom: 20px; |
|
|
|
|
font-size: 45px; |
|
|
|
|
font-family: AppleSystemUIFont; |
|
|
|
|
color: #E4E4E4; |
|
|
|
|
color: #e4e4e4; |
|
|
|
|
line-height: 1; |
|
|
|
|
} |
|
|
|
|
.pic { |
|
|
|
@ -175,7 +209,8 @@ export default { |
|
|
|
|
font-weight: 500; |
|
|
|
|
color: #fff; |
|
|
|
|
} |
|
|
|
|
.item1, .item2 { |
|
|
|
|
.item1, |
|
|
|
|
.item2 { |
|
|
|
|
width: 25%; |
|
|
|
|
} |
|
|
|
|
.item3 { |
|
|
|
|