master
parent
7ccfc6138f
commit
c3cb20e09a
After Width: | Height: | Size: 1.2 MiB |
After Width: | Height: | Size: 352 KiB |
@ -1,167 +0,0 @@
|
|||||||
<template>
|
|
||||||
<div class="vx-container">
|
|
||||||
<div class="general-header"></div>
|
|
||||||
<div class="general-info-bg"></div>
|
|
||||||
<div
|
|
||||||
:class="$route.name == '巡检详情' ? 'general-view-two' : 'general-view'"
|
|
||||||
>
|
|
||||||
<router-view />
|
|
||||||
</div>
|
|
||||||
<div class="general-footnote">
|
|
||||||
<div
|
|
||||||
class="back-home"
|
|
||||||
v-show="$store.state.showBtnData.isShow == 'true'"
|
|
||||||
@click="backHome"
|
|
||||||
>
|
|
||||||
返回{{ $store.state.showBtnData.text }}
|
|
||||||
</div>
|
|
||||||
<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 {
|
|
||||||
isShow: true,
|
|
||||||
urlAndorid: 'https://www.pgyer.com/6TpZ',
|
|
||||||
urliOS:
|
|
||||||
'https://apps.apple.com/cn/app/%E6%9C%A8%E6%B8%8E%E6%99%BA%E6%85%A7%E5%AE%89%E7%9B%91/id1597682147',
|
|
||||||
}
|
|
||||||
},
|
|
||||||
created() {
|
|
||||||
console.log(this.$store.state.showBtnData, '值')
|
|
||||||
document.title = this.$route.query.name || '企业' //修改浏览器标题
|
|
||||||
let windowBar = document.getElementById('statusBar')
|
|
||||||
windowBar.style.height = 0 + 'px'
|
|
||||||
this.isShow = this.$route.query.isShow
|
|
||||||
},
|
|
||||||
methods: {
|
|
||||||
backHome() {
|
|
||||||
this.$router.back()
|
|
||||||
},
|
|
||||||
/**
|
|
||||||
* 下载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-info-bg {
|
|
||||||
position: absolute;
|
|
||||||
top: 15%;
|
|
||||||
left: 0;
|
|
||||||
z-index: 10;
|
|
||||||
width: 100%;
|
|
||||||
height: 74%;
|
|
||||||
background: url('~@/assets/image/vxEwm/middle-bg.png');
|
|
||||||
background-size: 100% 100%;
|
|
||||||
}
|
|
||||||
.general-view {
|
|
||||||
position: absolute;
|
|
||||||
top: 50%;
|
|
||||||
left: 50%;
|
|
||||||
transform: translate(-50%, -53%);
|
|
||||||
z-index: 20;
|
|
||||||
width: 100%;
|
|
||||||
height: 75%;
|
|
||||||
background-color: #e8f3fc;
|
|
||||||
border-radius: 20px;
|
|
||||||
overflow: hidden;
|
|
||||||
box-sizing: border-box;
|
|
||||||
padding: 0.3rem 0.21rem;
|
|
||||||
}
|
|
||||||
.general-view-two {
|
|
||||||
position: absolute;
|
|
||||||
top: 50%;
|
|
||||||
left: 50%;
|
|
||||||
transform: translate(-50%, -50%);
|
|
||||||
z-index: 20;
|
|
||||||
width: 90%;
|
|
||||||
height: 70%;
|
|
||||||
background-color: #ffffff;
|
|
||||||
border-radius: 20px;
|
|
||||||
overflow: hidden;
|
|
||||||
box-sizing: border-box;
|
|
||||||
padding: 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;
|
|
||||||
color: #177fd4;
|
|
||||||
font-weight: bold;
|
|
||||||
font-size: 0.22rem;
|
|
||||||
border-radius: 28px;
|
|
||||||
line-height: 0.52rem;
|
|
||||||
background-image: linear-gradient(to right, #accbee, #e7f0fd);
|
|
||||||
}
|
|
||||||
.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