master
许宏杰 1 year ago
parent 7ccfc6138f
commit c3cb20e09a

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.2 MiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 352 KiB

@ -26,7 +26,11 @@
<div class="item-value">{{ checksinfo.inAddress }}</div> <div class="item-value">{{ checksinfo.inAddress }}</div>
</div> </div>
<div class="cell-map" id="show-maps"> <div class="cell-map" id="show-maps">
<img class="cell-map-point" src="@/assets/image/vxEwm/location.png" v-if="showPosition"></img> <img
class="cell-map-point"
src="@/assets/image/vxEwm/location.png"
v-if="showPosition"
/>
</div> </div>
<van-divider /> <van-divider />
<div class="list-item"> <div class="list-item">
@ -49,7 +53,11 @@
<van-divider /> <van-divider />
<div class="list-item-two" v-show="isShow1"> <div class="list-item-two" v-show="isShow1">
<div class="item-title">隐患上报记录</div> <div class="item-title">隐患上报记录</div>
<div class="item-two-value" v-for="(item, index) in troublelist" :key="index"> <div
class="item-two-value"
v-for="(item, index) in troublelist"
:key="index"
>
<div class="two-value-wai-bg"> <div class="two-value-wai-bg">
<div class="two-value-nei-bg"> <div class="two-value-nei-bg">
<span>{{ index + 1 }}</span> <span>{{ index + 1 }}</span>
@ -130,7 +138,6 @@ export default {
this.checksinfo = res.data this.checksinfo = res.data
document.title = this.checksinfo.enterpriseName || '企业' // document.title = this.checksinfo.enterpriseName || '企业' //
// //
var longitude = Number(res.data.longitude) var longitude = Number(res.data.longitude)
var latitude = Number(res.data.latitude) var latitude = Number(res.data.latitude)
@ -198,12 +205,9 @@ div{
height: 100%; height: 100%;
overflow: hidden; overflow: hidden;
padding: 0.25rem 0.21rem; padding: 0.25rem 0.21rem;
background: #FFFFFF; background: #ffffff;
border-radius: 20px; border-radius: 20px;
.info-content { .info-content {
height: calc(100% - 0.1rem); height: calc(100% - 0.1rem);
overflow-y: auto; overflow-y: auto;
.list-item { .list-item {
@ -272,7 +276,7 @@ div{
font-family: PingFang-SC, PingFang-SC; font-family: PingFang-SC, PingFang-SC;
font-weight: bold; font-weight: bold;
font-size: 0.19rem; font-size: 0.19rem;
color: #FFFFFF; color: #ffffff;
// line-height: 0.34rem; // line-height: 0.34rem;
} }
} }
@ -290,8 +294,7 @@ div{
} }
#show-maps { #show-maps {
border-radius: 6px; border-radius: 6px;
border: 1px solid #acd5fe;
border: 1px solid #ACD5FE;
} }
/deep/.van-image { /deep/.van-image {
width: 1.44rem; width: 1.44rem;
@ -301,5 +304,4 @@ height: 0.96rem;
margin: 0 0.1rem 0.1rem 0; margin: 0 0.1rem 0.1rem 0;
} }
</style> </style>

@ -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>

@ -1,8 +1,15 @@
<template> <template>
<div class="vx-container"> <div class="vx-container">
<div class="general-header"></div> <div class="general-header"></div>
<div class="header-bg"></div>
<div <div
:class="$route.name == '巡检详情' ? 'general-view-two' : 'general-view'" :class="$route.name == '巡检详情' ? 'general-view-two' : 'general-view'"
:style="{
height: $store.state.showBtnData.isShow == 'true' ? '' : '79%',
top: $store.state.showBtnData.isShow == 'true' ? '' : '46%',
transform:
$store.state.showBtnData.isShow == 'true' ? '' : 'translateY(-46%)',
}"
> >
<router-view /> <router-view />
</div> </div>
@ -23,6 +30,7 @@
<span><</span> <span><</span>
</div> </div>
</div> </div>
<div class="footonte-bg"></div>
</div> </div>
</template> </template>
@ -40,15 +48,14 @@ export default {
}, },
methods: { methods: {
backHome() { backHome() {
console.log('sasasa')
this.$router.back() this.$router.back()
}, },
handlerDownload() { handlerDownload() {
let temp = document.createElement('a') // a let temp = document.createElement('a') // a
const equipment = phoneIf() const equipment = phoneIf()
if (equipment == 'IOS') { if (equipment == 'IOS') {
Toast('请点击右上角 “...” 选择默认浏览器打开') temp.href = 'https://www.jichuanglanhai.com/demo/vx-url.html' //
// 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') { } else if (equipment == 'Android') {
temp.href = 'https://www.pgyer.com/6TpZ' // temp.href = 'https://www.pgyer.com/6TpZ' //
} else { } else {
@ -70,14 +77,26 @@ export default {
background-size: cover; background-size: cover;
overflow: hidden; 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 { .general-header {
position: absolute; position: absolute;
top: 1vh; top: 1vh;
left: 50%; left: 50%;
transform: translateX(-50%); transform: translateX(-50%);
z-index: 10;
width: 4.8rem; width: 4.8rem;
height: 8.3vh; height: 8.3vh;
background: url('~@/assets/image/vxEwm/logo.png'); background: url('~@/assets/image/vxEwm/logo.png');
background-size: 100% 100%; background-size: 100% 100%;
} }
@ -88,16 +107,28 @@ export default {
transform: translateY(-37%); transform: translateY(-37%);
height: 73%; height: 73%;
width: 100%; width: 100%;
z-index: 20;
background: #e8f3fc; background: #e8f3fc;
border-radius: 30px; border-radius: 30px;
overflow: hidden; overflow: hidden;
box-sizing: border-box; box-sizing: border-box;
padding: 0.3rem 0.21rem 0 0.21rem; 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-view-two { .general-view-two {
position: absolute; position: absolute;
top: 37%; top: 37%;
transform: translateY(-37%); transform: translateY(-37%);
z-index: 10;
height: 73%; height: 73%;
width: 100%; width: 100%;
// background: #e8f3fc; // background: #e8f3fc;
@ -108,7 +139,7 @@ export default {
} }
.general-footnote { .general-footnote {
position: absolute; position: absolute;
bottom: 3vh; bottom: 0;
left: 0; left: 0;
z-index: 10; z-index: 10;
width: 100%; width: 100%;
@ -137,11 +168,12 @@ export default {
font-size: 0.25rem; font-size: 0.25rem;
color: #fff; color: #fff;
font-weight: bold; font-weight: bold;
text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.6); text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
font-family: 'PingFang-SC-Regular'; font-family: 'PingFang-SC-Regular';
} }
.download-btn { .download-btn {
margin-top: 0.1rem; margin-top: 0.1rem;
padding-bottom: 3vh;
display: flex; display: flex;
align-items: center; align-items: center;
justify-content: center; justify-content: center;

@ -240,7 +240,7 @@
<div class="item-value">{{ parkList.status | fiterStatus }}</div> <div class="item-value">{{ parkList.status | fiterStatus }}</div>
</div> </div>
<van-divider /> <van-divider />
<div class="list-item"> <div class="list-item" style="margin: 0">
<div class="item-title">入住园区</div> <div class="item-title">入住园区</div>
<div class="item-value">{{ parkList.parkName }}</div> <div class="item-value">{{ parkList.parkName }}</div>
</div> </div>

@ -1,6 +1,7 @@
<template> <template>
<div class="vx-container"> <div class="vx-container">
<div class="general-header"></div> <div class="general-header"></div>
<div class="header-bg"></div>
<div class="general-view"> <div class="general-view">
<router-view /> <router-view />
</div> </div>
@ -13,6 +14,7 @@
<span><</span> <span><</span>
</div> </div>
</div> </div>
<div class="footonte-bg"></div>
</div> </div>
</template> </template>
@ -29,9 +31,7 @@ export default {
let temp = document.createElement('a') // a let temp = document.createElement('a') // a
const equipment = phoneIf() const equipment = phoneIf()
if (equipment == 'IOS') { if (equipment == 'IOS') {
temp.href = temp.href = 'https://www.jichuanglanhai.com/demo/vx-url.html' //
'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' //
Toast('请点击右上角 “...” 选择默认浏览器打开')
} else if (equipment == 'Android') { } else if (equipment == 'Android') {
temp.href = 'https://www.pgyer.com/6TpZ' // temp.href = 'https://www.pgyer.com/6TpZ' //
} else { } else {
@ -53,14 +53,25 @@ export default {
background-size: cover; background-size: cover;
overflow: hidden; 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 { .general-header {
position: absolute; position: absolute;
top: 1vh; top: 1vh;
left: 50%; left: 50%;
transform: translateX(-50%); transform: translateX(-50%);
z-index: 10;
width: 4.8rem; width: 4.8rem;
height: 8.3vh; height: 8.3vh;
background: url('~@/assets/image/vxEwm/logo.png'); background: url('~@/assets/image/vxEwm/logo.png');
background-size: 100% 100%; background-size: 100% 100%;
} }
@ -73,10 +84,21 @@ export default {
width: 100%; width: 100%;
background: #e8f3fc; background: #e8f3fc;
border-radius: 30px; border-radius: 30px;
z-index: 20;
overflow: hidden; overflow: hidden;
box-sizing: border-box; box-sizing: border-box;
padding: 0.3rem 0.21rem 0 0.21rem; 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 { .general-footnote {
position: absolute; position: absolute;
bottom: 3vh; bottom: 3vh;
@ -87,7 +109,7 @@ export default {
font-size: 0.25rem; font-size: 0.25rem;
color: #fff; color: #fff;
font-weight: bold; font-weight: bold;
text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.6); text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
font-family: 'PingFang-SC-Regular'; font-family: 'PingFang-SC-Regular';
} }
.download-btn { .download-btn {

@ -246,12 +246,16 @@ export default {
}, },
}, },
created() { created() {
this.querParams.parkProfileId = this.$route.query.id mapJson.forEach((item) => {
if (item.parkOrgId == this.$route.query.id) {
this.querParams.parkProfileId = item.id
}
})
this.loading = Toast.loading('加载中...') this.loading = Toast.loading('加载中...')
this.$nextTick(() => { this.$nextTick(() => {
this.getList() this.getList()
this.initMap() this.initMap()
this.getWuzi() this.getWuzi()
this.getFzr() this.getFzr()
this.loading.clear() this.loading.clear()
@ -331,7 +335,7 @@ export default {
let parkId = this.$route.query.id let parkId = this.$route.query.id
let parkName = '' let parkName = ''
mapJson.forEach((item) => { mapJson.forEach((item) => {
if (item.id == parkId) { if (item.parkOrgId == parkId) {
parkName = item.parkName parkName = item.parkName
} }
}) })

Loading…
Cancel
Save