|
|
@ -3,59 +3,85 @@ |
|
|
|
<div class="actions"> |
|
|
|
<div class="actions"> |
|
|
|
<p class="page-name">页面设置/装置介绍</p> |
|
|
|
<p class="page-name">页面设置/装置介绍</p> |
|
|
|
<div> |
|
|
|
<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 @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> |
|
|
|
<el-button @click="back">放弃编辑</el-button> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
|
|
|
|
|
|
|
|
<div class="modules"> |
|
|
|
<div class="modules"> |
|
|
|
<div class="relative"> |
|
|
|
<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"> |
|
|
|
<template v-for="(item, i) in modules[0].list"> |
|
|
|
<el-carousel-item v-if="item.pic && item.isEnable" :key="i"> |
|
|
|
<el-carousel-item v-if="item.pic && item.isEnable" |
|
|
|
<img width="100%" height="100%" :src="item.pic" alt=""> |
|
|
|
:key="i"> |
|
|
|
|
|
|
|
<img width="100%" |
|
|
|
|
|
|
|
height="100%" |
|
|
|
|
|
|
|
:src="item.pic" |
|
|
|
|
|
|
|
alt=""> |
|
|
|
</el-carousel-item> |
|
|
|
</el-carousel-item> |
|
|
|
</template> |
|
|
|
</template> |
|
|
|
</el-carousel> |
|
|
|
</el-carousel> |
|
|
|
<div class="cover" @click="toSet(0)">点击更换banner与链接</div> |
|
|
|
<div class="cover" |
|
|
|
|
|
|
|
@click="toSet(0)">点击更换banner与链接</div> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
|
|
|
|
|
|
|
|
<div class="block share"> |
|
|
|
<div class="block share"> |
|
|
|
<div class="inner"> |
|
|
|
<div class="inner"> |
|
|
|
<div class="c-wrap"> |
|
|
|
<div class="c-wrap"> |
|
|
|
<h6>{{ modules[1].form.title }}</h6> |
|
|
|
<h6>{{ modules[1].form.title }}</h6> |
|
|
|
<p class="en" v-html="modules[1].form.des"></p> |
|
|
|
<p class="en" |
|
|
|
<div class="cover" @click="toSet(1)">点击更改标题与描述</div> |
|
|
|
v-html="modules[1].form.des"></p> |
|
|
|
|
|
|
|
<div class="cover" |
|
|
|
|
|
|
|
@click="toSet(1)">点击更改标题与描述</div> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
<div class="c-wrap"> |
|
|
|
<div class="c-wrap"> |
|
|
|
<div class="sum">{{ modules[2].form.title }}</div> |
|
|
|
<div class="sum">{{ modules[2].form.title }}</div> |
|
|
|
<div class="flex"> |
|
|
|
<div class="flex"> |
|
|
|
<div class="left"> |
|
|
|
<div class="left"> |
|
|
|
<div class="des" v-html="modules[2].form.des"></div> |
|
|
|
<div class="des" |
|
|
|
|
|
|
|
v-html="modules[2].form.des"></div> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
<img class="pic" :src="modules[2].form.pic" alt=""> |
|
|
|
<img class="pic" |
|
|
|
|
|
|
|
:src="modules[2].form.pic" |
|
|
|
|
|
|
|
alt=""> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
<div class="cover" @click="toSet(2)">点击更改标题、描述与图片</div> |
|
|
|
<div class="cover" |
|
|
|
|
|
|
|
@click="toSet(2)">点击更改标题、描述与图片</div> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
|
|
|
|
|
|
|
|
<div class="intro"> |
|
|
|
<div class="intro"> |
|
|
|
<img class="pic" src="http://10.10.11.7/images/device/2.png" alt=""> |
|
|
|
<div class="intro-inner c-wrap"> |
|
|
|
<div class="des" v-html="modules[3].form.des"></div> |
|
|
|
<img class="pic" |
|
|
|
<div class="cover" @click="toSet(3)">点击更改描述</div> |
|
|
|
:src="modules[3].form.pic" |
|
|
|
|
|
|
|
alt=""> |
|
|
|
|
|
|
|
<div class="des" |
|
|
|
|
|
|
|
v-html="modules[3].form.des"></div> |
|
|
|
|
|
|
|
<div class="cover" |
|
|
|
|
|
|
|
@click="toSet(3)">点击更改描述</div> |
|
|
|
|
|
|
|
</div> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
|
|
|
|
|
|
|
|
<div class="unit"> |
|
|
|
<div class="unit"> |
|
|
|
<h6>{{ modules[4].form.title }}</h6> |
|
|
|
<h6>{{ modules[4].form.title }}</h6> |
|
|
|
<img class="pic" :src="modules[4].form.pic" alt=""> |
|
|
|
<img class="pic" |
|
|
|
<div class="cover" @click="toSet(4)">点击更改标题与图片</div> |
|
|
|
:src="modules[4].form.pic" |
|
|
|
|
|
|
|
alt=""> |
|
|
|
|
|
|
|
<div class="cover" |
|
|
|
|
|
|
|
@click="toSet(4)">点击更改标题与图片</div> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
|
|
|
|
|
|
|
|
<Module ref="module" :data.sync="curData" :visible.sync="diaVisible" @moduleSubmit="moduleSubmit" /> |
|
|
|
<Module ref="module" |
|
|
|
|
|
|
|
:data.sync="curData" |
|
|
|
|
|
|
|
:visible.sync="diaVisible" |
|
|
|
|
|
|
|
@moduleSubmit="moduleSubmit" /> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
</template> |
|
|
|
</template> |
|
|
|
|
|
|
|
|
|
|
@ -95,7 +121,7 @@ export default { |
|
|
|
</script> |
|
|
|
</script> |
|
|
|
|
|
|
|
|
|
|
|
<style lang="scss" scoped> |
|
|
|
<style lang="scss" scoped> |
|
|
|
@import "../../../styles/page/page.scss"; |
|
|
|
@import '../../../styles/page/page.scss'; |
|
|
|
.wrap { |
|
|
|
.wrap { |
|
|
|
background: url(http://10.10.11.7/images/device/4.png) (100% 1363px) / auto no-repeat; |
|
|
|
background: url(http://10.10.11.7/images/device/4.png) (100% 1363px) / auto no-repeat; |
|
|
|
} |
|
|
|
} |
|
|
@ -123,7 +149,7 @@ export default { |
|
|
|
font-size: 48px; |
|
|
|
font-size: 48px; |
|
|
|
font-family: PingFangSC-Light, PingFang SC; |
|
|
|
font-family: PingFangSC-Light, PingFang SC; |
|
|
|
font-weight: 300; |
|
|
|
font-weight: 300; |
|
|
|
color: #E3E3E3; |
|
|
|
color: #e3e3e3; |
|
|
|
} |
|
|
|
} |
|
|
|
.sum { |
|
|
|
.sum { |
|
|
|
margin-top: 60px; |
|
|
|
margin-top: 60px; |
|
|
@ -148,24 +174,28 @@ export default { |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
.intro { |
|
|
|
.intro { |
|
|
|
position: relative; |
|
|
|
width: 80%; |
|
|
|
|
|
|
|
height: 19.65rem; |
|
|
|
|
|
|
|
padding-left: 14%; |
|
|
|
|
|
|
|
margin-bottom: 67px; |
|
|
|
|
|
|
|
background-color: #2e4984; |
|
|
|
|
|
|
|
.intro-inner { |
|
|
|
display: flex; |
|
|
|
display: flex; |
|
|
|
align-items: center; |
|
|
|
align-items: center; |
|
|
|
max-width: 1490px; |
|
|
|
height: 100%; |
|
|
|
width: 90%; |
|
|
|
} |
|
|
|
height: 393px; |
|
|
|
|
|
|
|
margin-bottom: 67px; |
|
|
|
|
|
|
|
.pic { |
|
|
|
.pic { |
|
|
|
width: 60%; |
|
|
|
width: 50%; |
|
|
|
height: 100%; |
|
|
|
height: 100%; |
|
|
|
} |
|
|
|
} |
|
|
|
.des { |
|
|
|
.des { |
|
|
|
height: 100%; |
|
|
|
width: 50%; |
|
|
|
padding: 57px 60px 20px 60px; |
|
|
|
height: 19.65rem; |
|
|
|
font-size: 22px; |
|
|
|
padding: 2.85rem 3rem 1rem 3rem; |
|
|
|
|
|
|
|
font-size: 0.96rem; |
|
|
|
color: #fff; |
|
|
|
color: #fff; |
|
|
|
line-height: 40px; |
|
|
|
line-height: 2rem; |
|
|
|
background: #2E4984; |
|
|
|
-webkit-line-clamp: 7; |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
.unit { |
|
|
|
.unit { |
|
|
@ -179,8 +209,8 @@ export default { |
|
|
|
font-size: 20px; |
|
|
|
font-size: 20px; |
|
|
|
font-family: PingFangSC-Medium, PingFang SC; |
|
|
|
font-family: PingFangSC-Medium, PingFang SC; |
|
|
|
font-weight: 500; |
|
|
|
font-weight: 500; |
|
|
|
color: #2A2A2A; |
|
|
|
color: #2a2a2a; |
|
|
|
border-left: 4px solid #1583FF; |
|
|
|
border-left: 4px solid #1583ff; |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
</style> |
|
|
|
</style> |