From 1ddb68369d95088ad6871999e36b976a2da96357 Mon Sep 17 00:00:00 2001 From: fengerli <528575642@qq.com> Date: Mon, 28 Jul 2025 18:04:40 +0800 Subject: [PATCH] =?UTF-8?q?=E5=9C=B0=E5=9B=BE=E4=B8=BB=E9=A2=98=E8=89=B2?= =?UTF-8?q?=E4=BF=AE=E6=94=B9=EF=BC=8C=E5=9C=B0=E5=9B=BE=E6=89=93=E7=82=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pages/6170/deviceControl/index.vue | 24 ++- pages/common/index/index.vue | 2 +- pages/common/map/index.vue | 254 ++++++++++++++++++++++++++--- 3 files changed, 247 insertions(+), 33 deletions(-) diff --git a/pages/6170/deviceControl/index.vue b/pages/6170/deviceControl/index.vue index 356e5d3..bf0db50 100644 --- a/pages/6170/deviceControl/index.vue +++ b/pages/6170/deviceControl/index.vue @@ -158,7 +158,7 @@ - + @@ -178,7 +178,7 @@ - + @@ -204,7 +204,7 @@ - + @@ -297,6 +297,12 @@ } }, methods: { + // 点击弹框外的区域关闭 + closePopup() { + this.lightModeA = false; + this.lightModeB = false; + this.lightModeC = false; + }, // *******定位****** gpsPosition() { uni.navigateTo({ @@ -410,10 +416,17 @@ }, // 上传开机画面确认按键 handleupload() { + if (!this.selectedImage) { + uni.showToast({ + title: '请上传一张图片', + icon: 'none' + }); + return; + } uni.uploadFile({ url: baseURL + '/app/device/uploadLogo', filePath: this.selectedImage, - name:this.file, + name: this.file, formData: { deviceId: this.deviceID, }, @@ -430,7 +443,8 @@ title: responseData.msg, icon: 'success' }); - this.selectedImage='' + this.selectedImage = ''; + this.file = null; this.lightModeB = false } else { uni.showToast({ diff --git a/pages/common/index/index.vue b/pages/common/index/index.vue index 1df7c9f..3a135e9 100644 --- a/pages/common/index/index.vue +++ b/pages/common/index/index.vue @@ -17,7 +17,7 @@ - 报警 + 位置 发送信息 diff --git a/pages/common/map/index.vue b/pages/common/map/index.vue index 2559758..2de64c8 100644 --- a/pages/common/map/index.vue +++ b/pages/common/map/index.vue @@ -1,36 +1,236 @@ + \ No newline at end of file