|
|
|
@ -1,21 +1,22 @@
|
|
|
|
|
<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 }}
|
|
|
|
|
<img src="@/assets/image/vxEwm/back.png" alt="" class="back-icon" />
|
|
|
|
|
<span> 返回{{ $store.state.showBtnData.text }}</span>
|
|
|
|
|
</div>
|
|
|
|
|
<div class="app-download-hint"></div>
|
|
|
|
|
<div class="app-download-hint">查看更多信息请下载 “安全木渎APP”</div>
|
|
|
|
|
<div class="download-btn" @click="handlerDownload()">
|
|
|
|
|
<span>></span>
|
|
|
|
|
<a>点击下载</a>
|
|
|
|
@ -26,20 +27,13 @@
|
|
|
|
|
</template>
|
|
|
|
|
|
|
|
|
|
<script>
|
|
|
|
|
import { phoneIf } from '@/util/sbIf.js'
|
|
|
|
|
import { Toast } from 'vant'
|
|
|
|
|
import { phoneIf } from '@/util/sbIf.js'
|
|
|
|
|
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',
|
|
|
|
|
}
|
|
|
|
|
return {}
|
|
|
|
|
},
|
|
|
|
|
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
|
|
|
|
@ -48,18 +42,19 @@ export default {
|
|
|
|
|
backHome() {
|
|
|
|
|
this.$router.back()
|
|
|
|
|
},
|
|
|
|
|
/**
|
|
|
|
|
* 下载APP
|
|
|
|
|
*/
|
|
|
|
|
handlerDownload() {
|
|
|
|
|
let temp = document.createElement('a') // 创建a标签
|
|
|
|
|
const equipment = phoneIf()
|
|
|
|
|
if (equipment == 'IOS') {
|
|
|
|
|
if (window.plus) window.plus.runtime.openURL(this.urliOS)
|
|
|
|
|
Toast('请点击右上角 “...” 选择默认浏览器打开')
|
|
|
|
|
// temp.href =
|
|
|
|
|
// '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' // 设置下载名称
|
|
|
|
|
} else if (equipment == 'Android') {
|
|
|
|
|
if (window.plus) window.plus.runtime.openURL(this.urlAndorid)
|
|
|
|
|
temp.href = 'https://www.pgyer.com/6TpZ' // 设置下载名称
|
|
|
|
|
} else {
|
|
|
|
|
Toast(`暂未开发${equipment}版本app`)
|
|
|
|
|
}
|
|
|
|
|
temp.click()
|
|
|
|
|
},
|
|
|
|
|
},
|
|
|
|
|
}
|
|
|
|
@ -70,97 +65,91 @@ export default {
|
|
|
|
|
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%;
|
|
|
|
|
min-height: 100vh;
|
|
|
|
|
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;
|
|
|
|
|
background-size: cover;
|
|
|
|
|
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');
|
|
|
|
|
|
|
|
|
|
.general-header {
|
|
|
|
|
position: absolute;
|
|
|
|
|
top: 1vh;
|
|
|
|
|
left: 50%;
|
|
|
|
|
transform: translateX(-50%);
|
|
|
|
|
width: 4.8rem;
|
|
|
|
|
height: 8.3vh;
|
|
|
|
|
|
|
|
|
|
background: url('~@/assets/image/vxEwm/logo.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;
|
|
|
|
|
|
|
|
|
|
.general-view {
|
|
|
|
|
position: absolute;
|
|
|
|
|
top: 37%;
|
|
|
|
|
transform: translateY(-37%);
|
|
|
|
|
height: 73%;
|
|
|
|
|
width: 100%;
|
|
|
|
|
background: #e8f3fc;
|
|
|
|
|
border-radius: 30px;
|
|
|
|
|
overflow: hidden;
|
|
|
|
|
box-sizing: border-box;
|
|
|
|
|
padding: 0.3rem 0.21rem 0 0.21rem;
|
|
|
|
|
}
|
|
|
|
|
.general-view-two {
|
|
|
|
|
position: absolute;
|
|
|
|
|
top: 37%;
|
|
|
|
|
transform: translateY(-37%);
|
|
|
|
|
height: 73%;
|
|
|
|
|
width: 100%;
|
|
|
|
|
// background: #e8f3fc;
|
|
|
|
|
border-radius: 30px;
|
|
|
|
|
overflow: hidden;
|
|
|
|
|
box-sizing: border-box;
|
|
|
|
|
padding: 0 0.21rem 0 0.21rem;
|
|
|
|
|
}
|
|
|
|
|
.general-footnote {
|
|
|
|
|
position: absolute;
|
|
|
|
|
bottom: 3vh;
|
|
|
|
|
left: 0;
|
|
|
|
|
z-index: 10;
|
|
|
|
|
width: 100%;
|
|
|
|
|
|
|
|
|
|
.back-home {
|
|
|
|
|
display: flex;
|
|
|
|
|
align-items: center;
|
|
|
|
|
justify-content: center;
|
|
|
|
|
width: 1.85rem;
|
|
|
|
|
height: 0.5rem;
|
|
|
|
|
margin: auto;
|
|
|
|
|
.back-icon {
|
|
|
|
|
display: inline-block;
|
|
|
|
|
height: 0.3rem;
|
|
|
|
|
height: 0.25rem;
|
|
|
|
|
margin-right: 0.05rem;
|
|
|
|
|
}
|
|
|
|
|
color: #177fd4;
|
|
|
|
|
font-weight: bold;
|
|
|
|
|
font-size: 0.22rem;
|
|
|
|
|
border-radius: 28px;
|
|
|
|
|
background-image: linear-gradient(to right, #accbee, #e7f0fd);
|
|
|
|
|
}
|
|
|
|
|
.app-download-hint {
|
|
|
|
|
margin-top: 0.1rem;
|
|
|
|
|
font-size: 0.25rem;
|
|
|
|
|
color: #fff;
|
|
|
|
|
font-weight: bold;
|
|
|
|
|
text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.6);
|
|
|
|
|
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;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|