From bbb3fc8a889eff0d701c32a63dc76a38d6f4ffc7 Mon Sep 17 00:00:00 2001 From: Zy <1448159279@qq.com> Date: Sat, 4 Jul 2026 17:21:05 +0800 Subject: [PATCH] =?UTF-8?q?=E6=96=B0=E5=A2=9EAPP=E6=89=AB=E7=A0=81?= =?UTF-8?q?=E6=9D=83=E9=99=90?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- wuye-manager-uniapp/.gitignore | 3 +++ wuye-manager-uniapp/manifest.json | 12 +++++----- .../pageSubPack/instrument/addreplacement.vue | 23 ++++++++++++++++--- 3 files changed, 29 insertions(+), 9 deletions(-) diff --git a/wuye-manager-uniapp/.gitignore b/wuye-manager-uniapp/.gitignore index 9c97877..573792f 100644 --- a/wuye-manager-uniapp/.gitignore +++ b/wuye-manager-uniapp/.gitignore @@ -66,3 +66,6 @@ tmp/ npm-debug.log* yarn-debug.log* yarn-error.log* + +# AI init +AGENTS.md diff --git a/wuye-manager-uniapp/manifest.json b/wuye-manager-uniapp/manifest.json index a37c977..39f36d5 100644 --- a/wuye-manager-uniapp/manifest.json +++ b/wuye-manager-uniapp/manifest.json @@ -2,8 +2,8 @@ "name" : "花开管家", "appid" : "__UNI__5F224F3", "description" : "智慧社区管家端,专为小区物业管理人员打造,支持多小区灵活切换管理。集成账号密码、手机号密码双重登录模式,内置忘记密码找回功能,保障账号安全。涵盖消息通知、日常巡检、故障报修、一键开门、工单流转、投诉处理等核心办公功能,物业人员可在线完成巡检打卡、问题上报、工单派发跟进、投诉对接处理等日常工作,同时支持查看个人上报记录、巡检历史,便捷修改账号信息与登录密码。高效简化社区物业办公流程,提升小区服务与管理效率,打造便捷智能的社区管理服务平台。", - "versionName" : "1.0.0", - "versionCode" : "100", + "versionName" : "1.0.2", + "versionCode" : 102, "transformPx" : false, "app-plus" : { "usingComponents" : true, @@ -17,10 +17,10 @@ "useOriginalMsgbox" : true }, "modules" : { - "Geolocation" : {}, "Camera" : {}, "Push" : {}, - "Bluetooth" : {} + "Bluetooth" : {}, + "Barcode" : {} }, "distribute" : { "android" : { @@ -48,8 +48,8 @@ "NSPhotoLibraryUsageDescription" : "需要访问手机相册,选取本地巡检记录照片、业主报修故障图、水电表二维码用于上传工单与巡检台账,仅读取当前业务所需图片,不会获取相册内其他无关照片。", "NSPhotoLibraryAddUsageDescription" : "需要相册写入权限,保存巡检凭证、报修工单至手机相册,方便线下核对查看,图片仅本地存储,不会上传至无关服务器。", "NSCameraUsageDescription" : "本应用需要使用相机,用于管家现场巡检拍摄点位记录、处理业主报修拍摄故障照片,扫描水电表二维码抄表,拍摄影像仅用于小区物业工单与巡检业务存档,不会私自留存、对外分享。", - "NSLocationWhenInUseUsageDescription" : "需要获取位置信息", - "NSLocationAlwaysAndWhenInUseUsageDescription" : "需要获取位置信息", + "NSLocationWhenInUseUsageDescription" : "", + "NSLocationAlwaysAndWhenInUseUsageDescription" : "", "NSBluetoothPeripheralUsageDescription" : "需要蓝牙权限连接小区智能门禁,实现蓝牙一键开门通行,仅用于小区门禁解锁业务,不采集蓝牙设备信息。", "NSBluetoothAlwaysUsageDescription" : "本应用需要蓝牙权限,用于扫描、连接小区蓝牙门禁设备实现一键开门,仅和本小区门禁硬件建立通信,不会扫描、连接无关蓝牙设备。" }, diff --git a/wuye-manager-uniapp/pageSubPack/instrument/addreplacement.vue b/wuye-manager-uniapp/pageSubPack/instrument/addreplacement.vue index 7790816..2a29bec 100644 --- a/wuye-manager-uniapp/pageSubPack/instrument/addreplacement.vue +++ b/wuye-manager-uniapp/pageSubPack/instrument/addreplacement.vue @@ -86,12 +86,27 @@ function handleClick() { function handleScan() { uni.scanCode({ scanType: ['barCode', 'qrCode', 'datamatrix', 'pdf417'], - success: function (res) { + autoZoom: true, + onlyFromCamera: false, + success: res => { formData.value.deviceCode = res.result }, - error: err => { + fail: err => { + if (err.errMsg.includes('permission') || err.errMsg.includes('camera')) { + uni.showModal({ + title: '权限不足', + content: '需要相机权限才能扫码,请前往系统设置开启', + confirmText: '去设置', + success: modalRes => { + if (modalRes.confirm) { + plus.runtime.openURL('app-settings://') + } + } + }) + return + } uni.showToast({ - icon: 'error', + icon: 'none', title: '扫描异常' }) } @@ -106,12 +121,14 @@ function handleSubmit() { icon: 'exception', title: '检查设备编号' }) + return } if (!formData.value.houseId.trim()) { uni.showToast({ icon: 'exception', title: '选择房屋' }) + return } const { villageId } = JSON.parse(uni.getStorageSync('currentVillage')) AddReplaceMainList({