parent
8003df1491
commit
1c417b2294
Binary file not shown.
Binary file not shown.
After Width: | Height: | Size: 182 KiB |
@ -0,0 +1,122 @@
|
||||
<template>
|
||||
<div class="vx-container">
|
||||
<div class="general-header"></div>
|
||||
<div class="general-view">
|
||||
<router-view />
|
||||
</div>
|
||||
<div class="general-footnote">
|
||||
<div class="app-download-hint"></div>
|
||||
<div class="download-btn" @click="handlerDownload()">
|
||||
<span>></span>
|
||||
<a>点击下载</a>
|
||||
<span><</span>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
import { phoneIf } from '@/util/sbIf.js'
|
||||
import { Toast } from 'vant'
|
||||
export default {
|
||||
data() {
|
||||
return {
|
||||
urlAndorid: 'https://www.pgyer.com/6TpZ',
|
||||
urliOS: '',
|
||||
}
|
||||
},
|
||||
created() {
|
||||
document.title = this.$route.query.name || '工业园' //修改浏览器标题
|
||||
let windowBar = document.getElementById('statusBar')
|
||||
windowBar.style.height = 0 + 'px'
|
||||
},
|
||||
methods: {
|
||||
/**
|
||||
* 下载APP
|
||||
*/
|
||||
handlerDownload() {
|
||||
const equipment = phoneIf()
|
||||
if (equipment == 'IOS') {
|
||||
if (window.plus) window.plus.runtime.openURL(this.urliOS)
|
||||
} else if (equipment == 'Android') {
|
||||
if (window.plus) window.plus.runtime.openURL(this.urlAndorid)
|
||||
} else {
|
||||
Toast(`暂未开发${equipment}版本app`)
|
||||
}
|
||||
},
|
||||
},
|
||||
}
|
||||
</script>
|
||||
|
||||
<style lang="scss" scoped>
|
||||
.vx-container {
|
||||
position: relative;
|
||||
top: 0;
|
||||
left: 0;
|
||||
width: 100%;
|
||||
height: 100vh;
|
||||
overflow: hidden;
|
||||
}
|
||||
.general-header {
|
||||
position: absolute;
|
||||
top: 0;
|
||||
left: 0;
|
||||
z-index: 10;
|
||||
width: 100%;
|
||||
height: 16%;
|
||||
background: url('~@/assets/image/vxEwm/top-header-bg.png');
|
||||
background-size: 100% 100%;
|
||||
}
|
||||
.general-view {
|
||||
position: absolute;
|
||||
top: 50%;
|
||||
left: 50%;
|
||||
transform: translate(-50%, -50%);
|
||||
z-index: 20;
|
||||
width: 100%;
|
||||
height: 80%;
|
||||
background-color: #e8f3fc;
|
||||
border-radius: 20px;
|
||||
overflow: hidden;
|
||||
box-sizing: border-box;
|
||||
padding: 0.3rem 0.21rem;
|
||||
}
|
||||
.general-footnote {
|
||||
position: absolute;
|
||||
bottom: 0;
|
||||
left: 0;
|
||||
z-index: 10;
|
||||
width: 100%;
|
||||
height: 20%;
|
||||
background: url('~@/assets/image/vxEwm/bottom-foot-bg.png');
|
||||
background-size: 100% 100%;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
align-items: center;
|
||||
justify-content: flex-end;
|
||||
.back-home {
|
||||
width: 1.94rem;
|
||||
height: 0.5rem;
|
||||
background: url('~@/assets/image/vxEwm/backHome.png');
|
||||
background-size: 100% 100%;
|
||||
}
|
||||
.app-download-hint {
|
||||
width: 4.11rem;
|
||||
height: 0.4rem;
|
||||
margin: 0.1rem 0;
|
||||
background: url('~@/assets/image/vxEwm/download-text.png');
|
||||
background-size: 100% 100%;
|
||||
}
|
||||
.download-btn {
|
||||
margin-bottom: 0.1rem;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
color: #feffff;
|
||||
a {
|
||||
margin: 0 0.1rem;
|
||||
text-decoration: underline;
|
||||
}
|
||||
}
|
||||
}
|
||||
</style>
|
Loading…
Reference in new issue