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.

129 lines
2.8 KiB

<template>
<div class="vx-container">
<div class="general-header"></div>
<div class="header-bg"></div>
<div class="general-view">
<router-view />
</div>
<div class="general-footnote">
<div class="app-download-hint">查看更多信息请下载 安全木渎APP</div>
<div class="download-btn" @click="handlerDownload()">
<span>></span>
<a>点击下载</a>
<span><</span>
</div>
</div>
<div class="footonte-bg"></div>
</div>
</template>
<script>
import { Toast } from 'vant'
import { phoneIf } from '@/util/sbIf.js'
export default {
data() {
return {}
},
created() {},
methods: {
handlerDownload() {
let temp = document.createElement('a') // 创建a标签
const equipment = phoneIf()
if (equipment == 'IOS') {
temp.href = 'https://www.jichuanglanhai.com/demo/vx-url.html' // 设置下载名称
} else if (equipment == 'Android') {
temp.href = 'https://www.pgyer.com/6TpZ' // 设置下载名称
} else {
Toast(`暂未开发${equipment}版本app`)
}
temp.click()
},
},
}
</script>
<style lang="scss" scoped>
.vx-container {
position: relative;
top: 0;
left: 0;
min-height: 100vh;
background: url('~@/assets/image/vxEwm/middle-bg.png');
background-size: cover;
overflow: hidden;
.header-bg {
position: absolute;
top: 0;
left: 0;
height: 25vh;
width: 100%;
z-index: 9;
background: url('~@/assets/image/vxEwm/bg1.png');
background-size: 100% 100%;
}
.general-header {
position: absolute;
top: 1vh;
left: 50%;
transform: translateX(-50%);
z-index: 10;
width: 4.8rem;
height: 8.3vh;
background: url('~@/assets/image/vxEwm/logo.png');
background-size: 100% 100%;
}
.general-view {
position: absolute;
top: 46%;
transform: translateY(-46%);
height: 79%;
width: 100%;
background: #e8f3fc;
border-radius: 30px;
z-index: 20;
overflow: hidden;
box-sizing: border-box;
padding: 0.3rem 0.21rem 0 0.21rem;
}
.footonte-bg {
position: absolute;
bottom: 0;
left: 0;
z-index: 9;
width: 100%;
height: 15vh;
background: url('~@/assets/image/vxEwm/bg2.png');
background-size: 100% 100%;
}
.general-footnote {
position: absolute;
bottom: 3vh;
left: 0;
z-index: 10;
width: 100%;
.app-download-hint {
font-size: 0.25rem;
color: #fff;
font-weight: bold;
text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
font-family: 'PingFang-SC-Regular';
}
.download-btn {
margin-top: 0.1rem;
display: flex;
align-items: center;
justify-content: center;
color: #feffff;
a {
margin: 0 0.1rem;
text-decoration: underline;
}
}
}
}
</style>