深圳或然科技官网后台
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.
 
 
 
 
 

191 lines
4.4 KiB

<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>
<div class="block share">
<div class="inner">
<div class="c-wrap">
<h6 v-html="modules[1].form.title"></h6>
<p class="en" v-html="modules[1].form.des"></p>
<div class="cover" @click="toSet(1)">点击更改标题与描述</div>
</div>
<div class="c-wrap">
<div class="sum">{{ modules[2].form.title }}</div>
<div class="flex">
<div class="left">
<div class="des" v-html="modules[2].form.des"></div>
</div>
<img class="pic" :src="modules[2].form.pic" alt="">
</div>
<div class="cover" @click="toSet(2)">点击更改标题、描述与图片</div>
</div>
</div>
</div>
<div class="intro">
<div class="intro-inner c-wrap">
<img class="pic" :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 class="unit">
<div class="title" v-html="modules[4].form.title"></div>
<img class="pic" :src="modules[4].form.pic" alt="">
<div class="cover" @click="toSet(4)">点击更改标题与图片</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: _.cloneDeep(Modules.deviceIntroBeam)
}
},
mounted () { },
methods: {
}
};
</script>
<style lang="scss" scoped>
@import '../../../styles/page/page.scss';
.wrap {
background: url(https://huorantech.com/images/device/4.png) (100% 1363px) / auto no-repeat;
}
.banner {
background: url(https://huorantech.com/images/device/13.png) 0 0/100% 100% no-repeat;
}
.share {
position: relative;
.inner {
width: 1323px;
}
.left {
width: 547px;
margin-right: 66px;
}
h6 {
position: relative;
font-size: 48px;
font-family: PingFangSC-Medium, PingFang SC;
font-weight: 500;
color: #333333;
}
.en {
margin-top: -35px;
font-size: 48px;
font-family: PingFangSC-Light, PingFang SC;
font-weight: 300;
color: #e3e3e3;
}
.sum {
margin-top: 60px;
font-size: 28px;
font-family: PingFangSC-Medium, PingFang SC;
font-weight: 500;
color: #333333;
line-height: 44px;
}
.des {
margin-top: 25px;
font-size: 18px;
color: #333;
line-height: 37px;
overflow: visible;
}
.pic {
width: 710px;
height: 509px;
margin-top: -30px;
border-top-left-radius: 20px;
}
}
.intro {
width: 80%;
height: 19.65rem;
padding-left: 14%;
margin-bottom: 67px;
background-color: #2e4984;
.intro-inner {
display: flex;
align-items: center;
height: 100%;
}
.pic {
width: 50%;
height: 100%;
}
.des {
width: 50%;
height: 19.65rem;
padding: 2.85rem 3rem 1rem 3rem;
font-size: 0.96rem;
color: #fff;
line-height: 2rem;
-webkit-line-clamp: 7;
}
}
.unit {
position: relative;
width: 986px;
padding-bottom: 60px;
margin: 0 auto;
.title {
padding-left: 15px;
margin-bottom: 15px;
font-size: 20px;
font-family: PingFangSC-Medium, PingFang SC;
font-weight: 500;
color: #2a2a2a;
border-left: 4px solid #1583ff;
}
}
</style>