|
@@ -1,5 +1,5 @@
|
|
|
<template>
|
|
|
- <div class="foot-mark-box ">
|
|
|
+ <div v-if="!isMobileTerminal" class="foot-mark-box">
|
|
|
<div>
|
|
|
<div>陕ICP备17000711号-1</div>
|
|
|
<div>平台联系邮箱:operation@changan-inkasso.com</div>
|
|
@@ -19,16 +19,41 @@
|
|
|
</template>
|
|
|
|
|
|
<script>
|
|
|
+import { isMobileDevice } from '@/utils'
|
|
|
+
|
|
|
export default {
|
|
|
components: {
|
|
|
RegisterProtocal: () => import('@/views/login/components/RegisterProtocal')
|
|
|
},
|
|
|
+ data() {
|
|
|
+ return {
|
|
|
+ isMobileTerminal: false
|
|
|
+ }
|
|
|
+ },
|
|
|
+ mounted() {
|
|
|
+ this.isMobile()
|
|
|
+ window.addEventListener('resize', this.isMobile)
|
|
|
+ },
|
|
|
+ beforeDestroy() {
|
|
|
+ window.removeEventListener('resize', this.isMobile)
|
|
|
+ },
|
|
|
methods: {
|
|
|
aboutClick() {
|
|
|
window.open(`#/about`)
|
|
|
},
|
|
|
userProtocol() {
|
|
|
this.$refs.dialog.show = true
|
|
|
+ },
|
|
|
+ // 是否是手机端
|
|
|
+ isMobile() {
|
|
|
+ debugger
|
|
|
+ if (isMobileDevice() && window.screen.width < 768) {
|
|
|
+ this.isMobileTerminal = true
|
|
|
+ this.$store.dispatch('app/closeSideBar', { withoutAnimation: false })
|
|
|
+ } else {
|
|
|
+ this.isMobileTerminal = false
|
|
|
+ this.$store.dispatch('app/openSideBar')
|
|
|
+ }
|
|
|
}
|
|
|
}
|
|
|
}
|
|
@@ -61,5 +86,19 @@ export default {
|
|
|
margin: -20px;
|
|
|
margin-top: -60px;
|
|
|
}
|
|
|
+ .hamburger-container {
|
|
|
+ line-height: 46px;
|
|
|
+ height: 100%;
|
|
|
+ float: left;
|
|
|
+ cursor: pointer;
|
|
|
+ transition: background .3s;
|
|
|
+ -webkit-tap-highlight-color:transparent;
|
|
|
+ background-color: #fff;
|
|
|
+
|
|
|
+ &:hover {
|
|
|
+ // background: rgba(0, 0, 0, .025)
|
|
|
+ background: #fff;
|
|
|
+ }
|
|
|
+ }
|
|
|
}
|
|
|
</style>
|