修复返回按钮

master
许宏杰 6 months ago
parent 8cdc0f8b17
commit 4d57a869e9

@ -5,10 +5,9 @@
<div
: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%)',
height: $store.state.showBtnData.isShow ? '' : '79%',
top: $store.state.showBtnData.isShow ? '' : '46%',
transform: $store.state.showBtnData.isShow ? '' : 'translateY(-46%)'
}"
>
<router-view />
@ -17,7 +16,7 @@
<div class="general-footnote">
<div
class="back-home"
v-show="$store.state.showBtnData.isShow == 'true'"
v-show="$store.state.showBtnData.isShow"
@click="backHome"
>
<img src="@/assets/image/vxEwm/back.png" alt="" class="back-icon" />
@ -26,7 +25,7 @@
<div class="app-download-hint">查看更多信息请下载 安全木渎APP</div>
<div class="download-btn" @click="handlerDownload()">
<span>></span>
<a>点击下载</a>
<a>点击下载1111</a>
<span> &lt; </span>
</div>
</div>
@ -49,30 +48,30 @@ export default {
if (this.$store.state.showBtnData.text == '工业园') {
this.$router.replace({
path: '/park',
query: { id: this.$store.state.parkId },
query: { id: this.$store.state.parkId }
})
} else if (this.$store.state.showBtnData.text == '楼栋') {
this.$router.replace({
path: '/build',
query: {
buildingId: this.$store.state.buildingId,
parkId: this.$store.state.parkId,
},
parkId: this.$store.state.parkId
}
})
} else {
this.$router.replace({
path: '/enterpriseData/info',
query: {
id: this.$store.state.enterpriseId,
isShow: this.$store.state.parkId ? true : false,
},
isShow: this.$store.state.parkId ? true : false
}
})
}
},
handlerDownload() {
this.$installApk()
},
},
}
}
}
</script>

Loading…
Cancel
Save