|
|
@ -6,16 +6,23 @@ |
|
|
|
:indicator-position="modules[0].list.filter(e => e.isEnable).length > 1 ? '' : 'none'"> |
|
|
|
: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" :key="i"> |
|
|
|
<div class="pic" :style="{ backgroundImage: 'url(' + item.pic + ')' }"></div> |
|
|
|
<div v-if="isImg(item.mediaType)" class="pic" :style="{ backgroundImage: 'url(' + item.pic + ')' }"></div> |
|
|
|
|
|
|
|
<video v-else class="pic" width="100%" height="100%" autoplay muted loop> |
|
|
|
|
|
|
|
<source :src="item.pic" type="video/mp4"> |
|
|
|
|
|
|
|
您的浏览器不支持 video 标签。 |
|
|
|
|
|
|
|
</video> |
|
|
|
<div class="text-wrap"> |
|
|
|
<div class="text-wrap"> |
|
|
|
<div v-if="!GTA && !i" class="qrcode-wrap"> |
|
|
|
<div class="qrcodes fadeInUp"> |
|
|
|
<img class="qrcode" src="https://occupationlab.com/images/mini-program.jpg" alt=""> |
|
|
|
<div v-if="item.weixinPic1" class="qrcode"> |
|
|
|
<p class="text">扫小程序下单</p> |
|
|
|
<img width="103" :src="item.weixinPic1" alt=""> |
|
|
|
</div> |
|
|
|
<p v-if="item.weixinText1" class="text">{{ item.weixinText1 }}</p> |
|
|
|
<div class="texts"> |
|
|
|
</div> |
|
|
|
<h6>{{ item.title }}</h6> |
|
|
|
<div v-if="item.weixinPic2" class="qrcode m-l-30"> |
|
|
|
<p class="sub">{{ item.des }}</p> |
|
|
|
<img width="103" :src="item.weixinPic2" alt=""> |
|
|
|
|
|
|
|
<p v-if="item.weixinText2" class="text">{{ item.weixinText2 }}</p> |
|
|
|
|
|
|
|
</div> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
|
|
|
|
<div class="text" v-html="item.des"></div> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
</el-carousel-item> |
|
|
|
</el-carousel-item> |
|
|
|
</template> |
|
|
|
</template> |
|
|
@ -186,10 +193,12 @@ |
|
|
|
import mixins from '@/mixins/page' |
|
|
|
import mixins from '@/mixins/page' |
|
|
|
import { Loading } from "element-ui"; |
|
|
|
import { Loading } from "element-ui"; |
|
|
|
import ScrollReveal from 'scrollreveal' |
|
|
|
import ScrollReveal from 'scrollreveal' |
|
|
|
|
|
|
|
import Util from '@/libs/util' |
|
|
|
export default { |
|
|
|
export default { |
|
|
|
mixins: [mixins], |
|
|
|
mixins: [mixins], |
|
|
|
data () { |
|
|
|
data () { |
|
|
|
return { |
|
|
|
return { |
|
|
|
|
|
|
|
isImg: Util.isImg, |
|
|
|
timer: null, |
|
|
|
timer: null, |
|
|
|
curTab: '', |
|
|
|
curTab: '', |
|
|
|
tabs: [ |
|
|
|
tabs: [ |
|
|
@ -520,12 +529,9 @@ export default { |
|
|
|
.carousel { |
|
|
|
.carousel { |
|
|
|
.pic { |
|
|
|
.pic { |
|
|
|
height: 100%; |
|
|
|
height: 100%; |
|
|
|
|
|
|
|
background-position: center center; |
|
|
|
|
|
|
|
background-size: 100% 100%; |
|
|
|
background-repeat: no-repeat; |
|
|
|
background-repeat: no-repeat; |
|
|
|
background-size: cover; |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
img { |
|
|
|
|
|
|
|
height: 100%; |
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
/deep/.el-carousel__container { |
|
|
|
/deep/.el-carousel__container { |
|
|
@ -542,36 +548,24 @@ export default { |
|
|
|
transform: translateY(-50%); |
|
|
|
transform: translateY(-50%); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
h6 { |
|
|
|
.qrcodes { |
|
|
|
margin-bottom: 25px; |
|
|
|
display: flex; |
|
|
|
font-size: 2.2rem; |
|
|
|
margin-right: 50px; |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
.sub { |
|
|
|
|
|
|
|
font-size: 1.5rem; |
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
.qrcode-wrap { |
|
|
|
.qrcode { |
|
|
|
display: inline-block; |
|
|
|
|
|
|
|
padding: 5px; |
|
|
|
|
|
|
|
margin-right: 50px; |
|
|
|
|
|
|
|
text-align: center; |
|
|
|
text-align: center; |
|
|
|
background-color: #fff; |
|
|
|
|
|
|
|
border-radius: 12px; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
.text { |
|
|
|
.text { |
|
|
|
margin-top: 5px; |
|
|
|
margin-top: 10px; |
|
|
|
font-size: 12px; |
|
|
|
font-size: 12px; |
|
|
|
color: #979797; |
|
|
|
color: #fff; |
|
|
|
|
|
|
|
white-space: nowrap; |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
.qrcode { |
|
|
|
|
|
|
|
width: 120px; |
|
|
|
|
|
|
|
height: 120px; |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
.intro { |
|
|
|
.intro { |
|
|
|
display: flex; |
|
|
|
display: flex; |
|
|
|
justify-content: space-between; |
|
|
|
justify-content: space-between; |
|
|
|