From 5128c29d8640b22ad955363bbfd6580cd020ed0e Mon Sep 17 00:00:00 2001 From: liub Date: Fri, 24 Apr 2026 08:51:26 +0800 Subject: [PATCH] =?UTF-8?q?018A=E6=B7=BB=E5=8A=A0=E6=8A=A5=E8=AD=A6?= =?UTF-8?q?=E6=97=A5=E5=BF=97?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- App.vue | 81 ++-- pages.json | 18 +- pages/018A/018AMsg.vue | 330 ++++++++++++++++ pages/018A/HBY018A.vue | 102 ++++- pages/102/HBY102.vue | 8 +- pages/210/HBY210.vue | 8 +- pages/6075J/BJQ6075J.vue | 45 ++- pages/common/sosSet/remark.vue | 22 ++ utils/Common.js | 10 +- utils/SendBatchData.js | 690 +++++++++++++++++++++++++++++++++ 10 files changed, 1260 insertions(+), 54 deletions(-) create mode 100644 pages/018A/018AMsg.vue create mode 100644 pages/common/sosSet/remark.vue create mode 100644 utils/SendBatchData.js diff --git a/App.vue b/App.vue index ac32eba..3346b2f 100644 --- a/App.vue +++ b/App.vue @@ -35,10 +35,10 @@ //以上代码仅在开发时使用,否则会出现不可预知的问题。 // #ifdef APP|APP-PLUS - - let system=uni.getSystemInfoSync(); - - + + let system = uni.getSystemInfoSync(); + + let initOS = () => { let ble = bleTool.getBleTool(); @@ -52,10 +52,10 @@ } }); if (!uni.setAppBadgeNumber) { //兼容鸿蒙的写法 - if(plus){ + if (plus) { uni.setAppBadgeNumber = plus.runtime.setBadgeNumber; } - + } uni.onPushMessage((res) => { console.log("收到推送消息:", res); //监听推送消息 @@ -73,7 +73,7 @@ }); } - + if (plus.os.name == 'Android') { if (plus.runtime.isAgreePrivacy()) { initOS(); @@ -83,8 +83,8 @@ } - - console.log("system=",system); + + console.log("system=", system); // #endif }, onShow: function() { @@ -103,13 +103,13 @@ if (appid !== 'HBuilder') { upgrade.checkAndUpdateWgt(); } - + uni.setKeepScreenOn({ - keepScreenOn:true - }).then(res=>{ + keepScreenOn: true + }).then(res => { console.log("已设置屏幕常亮"); - }).catch(ex=>{ - console.error("设置屏幕常亮失败,ex=",ex) + }).catch(ex => { + console.error("设置屏幕常亮失败,ex=", ex) }) // #endif @@ -118,15 +118,15 @@ onHide: function() { console.log('App Hide'); // #ifdef APP|APP-PLUS - + uni.setKeepScreenOn({ - keepScreenOn:false - }).then(res=>{ + keepScreenOn: false + }).then(res => { console.log("已关闭屏幕常亮"); - }).catch(ex=>{ - console.error("设置屏幕常亮失败,ex=",ex) + }).catch(ex => { + console.error("设置屏幕常亮失败,ex=", ex) }) - + // 上传中不主动断开:语音上传进行中则不断开蓝牙 let ble = bleTool.getBleTool(); if (ble && ble.isVoiceUploading && ble.isVoiceUploading()) { @@ -143,7 +143,7 @@ ble2.StopSearch().catch(ex => {}); ble2.disconnectDevice().catch(ex => {}); console.log("断开所有蓝牙设备"); - + } }, BLE_DISCONNECT_DELAY); @@ -231,9 +231,10 @@ color: #ffffffde; } -.uni-app--maxwidth,.uni-body{ - background-color: #121212; -} + .uni-app--maxwidth, + .uni-body { + background-color: #121212; + } .fleft { float: left; @@ -264,14 +265,32 @@ align-items: center; } - - @font-face { - font-family: "PingFang SC"; - src: url("~@/static/fonts/PingFangSC.ttf") format("opentype"); + .navbarRight .img { + width: 35rpx; + height: 35rpx; + margin-right: 30rpx; } - @font-face { - font-family: "PingFangBold"; - src: url("~@/static/fonts/PingFangBold.ttf") format("opentype"); + .uni-navbar--fixed { + top: 0rpx; } + + ::v-deep .uni-navbar--fixed { + top: 0px; + } + + ::v-deep .uni-navbar__placeholder { + display: none !important; + } + + + // @font-face { + // font-family: "PingFang SC"; + // src: url("~@/static/fonts/PingFangSC.ttf") format("opentype"); + // } + + // @font-face { + // font-family: "PingFangBold"; + // src: url("~@/static/fonts/PingFangBold.ttf") format("opentype"); + // } \ No newline at end of file diff --git a/pages.json b/pages.json index 5e1319e..b688c26 100644 --- a/pages.json +++ b/pages.json @@ -478,13 +478,27 @@ { "path": "pages/common/sosSet/TxtMsgSetting", "style": { - "navigationBarTitleText": "短信设置" + "navigationBarTitleText": "短信设置", + "navigationStyle": "custom" } }, { "path": "pages/common/sosSet/LinkManSetting", "style": { - "navigationBarTitleText": "紧急联系人" + "navigationBarTitleText": "紧急联系人", + "navigationStyle": "custom" + } + }, + { + "path": "pages/common/sosSet/remark", + "style": { + "navigationBarTitleText": "" + } + }, + { + "path": "pages/018A/018AMsg", + "style": { + "navigationBarTitleText": "报警记录" } } diff --git a/pages/018A/018AMsg.vue b/pages/018A/018AMsg.vue new file mode 100644 index 0000000..8947683 --- /dev/null +++ b/pages/018A/018AMsg.vue @@ -0,0 +1,330 @@ + + + + + \ No newline at end of file diff --git a/pages/018A/HBY018A.vue b/pages/018A/HBY018A.vue index c8b5db6..6378a92 100644 --- a/pages/018A/HBY018A.vue +++ b/pages/018A/HBY018A.vue @@ -1,5 +1,20 @@