10 changed files with 281 additions and 45 deletions
@ -0,0 +1,222 @@ |
|||
<template> |
|||
<div class="container" ref="appRef" :class="{ red: name == '一曼村' }"> |
|||
<div class="main-title"> |
|||
<outsideTitle :title="title"></outsideTitle> |
|||
</div> |
|||
<div class="main"> |
|||
<div class="main-left"> |
|||
<div class="video"> |
|||
<LivePlayer |
|||
fluent |
|||
autoplay |
|||
:loop="true" |
|||
:videoUrl="videoUrl" |
|||
stretch |
|||
:hide-big-play-button="true" |
|||
:muted="false" |
|||
aspect="513:292" |
|||
alt="正在加载中..." |
|||
></LivePlayer> |
|||
</div> |
|||
<div class="card" @click="$router.push('out-pbService')"> |
|||
<img :src="require('@/assets/pbImage/card-icon1.png')" /> |
|||
<span>公共服务</span> |
|||
</div> |
|||
</div> |
|||
<div class="main-right"> |
|||
<div |
|||
class="card card2" |
|||
@click="$router.push('out-organization')" |
|||
> |
|||
<img :src="require('@/assets/pbImage/card-icon2.png')" /> |
|||
<span>组织振兴</span> |
|||
</div> |
|||
<div class="card card3" @click="$router.push('out-travel')"> |
|||
<img :src="require('@/assets/pbImage/card-icon3.png')" /> |
|||
<span>文化旅游</span> |
|||
</div> |
|||
<div class="card card4" @click="$router.push('out-industry')"> |
|||
<img :src="require('@/assets/pbImage/card-icon4.png')" /> |
|||
<span>产业发展</span> |
|||
</div> |
|||
</div> |
|||
</div> |
|||
</div> |
|||
</template> |
|||
|
|||
<script> |
|||
import outsideTitle from "./components/outsideTitle.vue"; |
|||
import { useIndex } from "../../utils/utilsDramAdmin.js"; |
|||
import LivePlayer from "@liveqing/liveplayer"; |
|||
|
|||
export default { |
|||
name: "", |
|||
components: { |
|||
outsideTitle, |
|||
LivePlayer |
|||
}, |
|||
data() { |
|||
return { |
|||
title: "·" + window.$localStorage.getItem("name") + "公服代办点", |
|||
name: window.$localStorage.getItem("name"), |
|||
areaCode: window.$localStorage.getItem("areaCode"), |
|||
videoUrl: "" |
|||
}; |
|||
}, |
|||
created() {}, |
|||
mounted() { |
|||
const { calcRate, windowDraw } = useIndex(this.$refs.appRef); |
|||
calcRate(); |
|||
windowDraw(); |
|||
this.initData(); |
|||
}, |
|||
beforeDestroy() {}, |
|||
methods: { |
|||
initData() { |
|||
let params = { |
|||
areaCode: this.areaCode |
|||
}; |
|||
this.$http |
|||
.post("/area/info/getById", this.common.request(params)) |
|||
.then(res => { |
|||
if (res.data.code == 200) { |
|||
this.videoUrl = res.data.data.map4; |
|||
} else { |
|||
this.$Message.error("操作失败"); |
|||
} |
|||
}); |
|||
} |
|||
} |
|||
}; |
|||
</script> |
|||
|
|||
<style lang="less" scoped> |
|||
/deep/ .video-wrapper { |
|||
border-radius: 12px; |
|||
} |
|||
|
|||
/deep/ .ivu-page { |
|||
color: #fff; |
|||
background-color: transparent; |
|||
} |
|||
|
|||
/deep/ .ivu-page-next, |
|||
/deep/ .ivu-page-prev, |
|||
/deep/ .ivu-page-item, |
|||
/deep/ .ivu-page-options-elevator input { |
|||
background-color: transparent; |
|||
color: #fff; |
|||
text-align: center; |
|||
} |
|||
|
|||
/deep/ .ivu-page-next a, |
|||
/deep/ .ivu-page-prev a, |
|||
/deep/ .ivu-page-item a { |
|||
color: #fff; |
|||
} |
|||
|
|||
.red { |
|||
background-image: url("../../assets/pbImage/red-bg.png") !important; |
|||
} |
|||
.container { |
|||
width: 1920px; |
|||
height: 1080px; |
|||
transform: scale(var(--scale)) translate(-50%, -50%); |
|||
transform-origin: 0 0; |
|||
position: absolute; |
|||
left: 50%; |
|||
top: 50%; |
|||
background-image: url("../../assets/pbImage/out-bg.png"); |
|||
background-size: 100% 100%; |
|||
display: flex; |
|||
flex-direction: column; |
|||
align-items: center; |
|||
|
|||
.main-title { |
|||
width: 1788px; |
|||
height: 100px; |
|||
position: absolute; |
|||
top: 30px; |
|||
} |
|||
|
|||
.main { |
|||
position: absolute; |
|||
top: 152px; |
|||
width: 1790px; |
|||
height: 890px; |
|||
display: flex; |
|||
justify-content: space-between; |
|||
|
|||
.main-left { |
|||
width: 1026px; |
|||
height: 100%; |
|||
display: flex; |
|||
flex-direction: column; |
|||
justify-content: space-between; |
|||
|
|||
.video { |
|||
width: 100%; |
|||
height: 584px; |
|||
} |
|||
.card { |
|||
width: 100%; |
|||
height: 280px; |
|||
background: url("../../assets/pbImage/card1.png") no-repeat; |
|||
background-size: 100% 100%; |
|||
display: flex; |
|||
justify-content: center; |
|||
align-items: center; |
|||
img { |
|||
width: 158px; |
|||
height: 158px; |
|||
} |
|||
span { |
|||
font-family: ShiShangZhongHeiJianTi; |
|||
font-size: 84px; |
|||
font-weight: 400; |
|||
text-align: center; |
|||
color: #ffffff; |
|||
margin-left: 45px; |
|||
} |
|||
} |
|||
} |
|||
.main-right { |
|||
width: 742px; |
|||
height: 100%; |
|||
display: flex; |
|||
flex-direction: column; |
|||
justify-content: space-between; |
|||
.card { |
|||
width: 100%; |
|||
height: 280px; |
|||
background-color: #fff; |
|||
background-size: 100% 100%; |
|||
display: flex; |
|||
justify-content: center; |
|||
align-items: center; |
|||
img { |
|||
width: 158px; |
|||
height: 158px; |
|||
} |
|||
span { |
|||
font-family: ShiShangZhongHeiJianTi; |
|||
font-size: 84px; |
|||
font-weight: 400; |
|||
text-align: center; |
|||
color: #ffffff; |
|||
margin-left: 45px; |
|||
} |
|||
} |
|||
.card2 { |
|||
background: url("../../assets/pbImage/card2.png") no-repeat; |
|||
} |
|||
.card3 { |
|||
background: url("../../assets/pbImage/card3.png") no-repeat; |
|||
} |
|||
.card4 { |
|||
background: url("../../assets/pbImage/card4.png") no-repeat; |
|||
} |
|||
} |
|||
} |
|||
} |
|||
</style> |
Loading…
Reference in new issue