From 999f6238af7e804cb0840382d720ee9384874536 Mon Sep 17 00:00:00 2001 From: fanluyan <754122931@qq.com> Date: Fri, 20 Dec 2024 10:51:24 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BA=91=E5=8F=B0=E4=BC=98=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/App.vue | 17 +- src/views/iceWeather/components/leftTree.vue | 2 +- src/views/iceWeather/icing/index.vue | 61 +++++ src/views/iceWeather/weather/index.vue | 211 ++++++++++++++---- .../components/alarmButton.vue | 6 +- .../components/cableButton.vue | 6 +- .../components/parameterArea.vue | 103 ++++++++- .../ptzDevice/components/setTime.vue | 8 +- .../components/ptzDevice/ptzDraw.vue | 16 +- .../setChannel/setChannelDialog.vue | 2 +- .../components/takePicButton.vue | 6 +- .../components/takeTimePicButton.vue | 6 +- .../components/takeVideoButton.vue | 6 +- .../photostatis/components/ipDialog.vue | 41 ++-- .../globalTools/components/termsAdd.vue | 23 ++ 15 files changed, 426 insertions(+), 88 deletions(-) diff --git a/src/App.vue b/src/App.vue index 300b784..26f0c9f 100644 --- a/src/App.vue +++ b/src/App.vue @@ -1,5 +1,5 @@ @@ -9,8 +9,13 @@ import { mapActions } from "vuex"; export default { name: "App", + data() { + return { mobelH: 0 }; + }, mounted() { + this.isMobile2(); let goUrl = this.isMobile(); + if (goUrl === 1) { this.$confirm( "您正在使用手机访问本站,可能无法获得最佳浏览体验, 即将跳转到手机端...", @@ -84,6 +89,13 @@ export default { let goUrl = flag ? 1 : 0; return goUrl; }, + isMobile2() { + let flag = navigator.userAgent.match( + /(phone|pad|pod|iPhone|iPod|ios|iPad|Android|Mobile|BlackBerry|IEMobile|MQQBrowser|JUC|Fennec|wOSBrowser|BrowserNG|WebOS|Symbian|Windows Phone)/i + ); + // localStorage.setItem('isiphone',flag) + this.mobelH = flag ? 1 : 0; + }, }, watch: { "$route.path": { @@ -101,4 +113,7 @@ export default { width: 80% !important; max-width: 450px; } +.zoomclass { + zoom: 0.6; +} diff --git a/src/views/iceWeather/components/leftTree.vue b/src/views/iceWeather/components/leftTree.vue index 0a0d44e..9ae6df8 100644 --- a/src/views/iceWeather/components/leftTree.vue +++ b/src/views/iceWeather/components/leftTree.vue @@ -207,7 +207,7 @@ export default {