From 6654ee54b508213c80e8a7ed2b0645790abcac40 Mon Sep 17 00:00:00 2001 From: liub Date: Wed, 1 Apr 2026 08:46:32 +0800 Subject: [PATCH] =?UTF-8?q?008A=E5=8A=9F=E8=83=BD=E5=BC=80=E5=A7=8B?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .hbuilderx/launch.json | 2 +- components/MsgBox/MsgBox.vue | 6 +- pages.json | 2 +- pages/018A/HBY018A.vue | 8 +- pages/100/HBY100.vue | 16 +- pages/100J/audioManager/AudioList.vue | 2 +- pages/100J/audioManager/Recording.vue | 2 +- pages/102/HBY102.vue | 18 +- pages/4877/BJQ4877.vue | 18 +- pages/4877/BJQ4877CheckColor.vue | 2 +- pages/4877/BJQ4877V1.vue | 8 +- pages/6075J/BJQ6075J.vue | 16 +- pages/6107/BJQ6107.vue | 6 +- pages/6155/BJQ6155.vue | 36 +- pages/6155/deviceDetail.vue | 24 +- pages/6170/deviceControl/index.vue | 6 +- pages/6331/BJQ6331.vue | 4 +- pages/650/HBY650.vue | 26 +- pages/670/HBY670.vue | 44 +- pages/7305/BJQ7305.vue | 24 +- pages/common/addDevice/addBle.vue | 537 ++++++++++++------ pages/common/audioManager/AudioList.vue | 2 +- pages/common/audioManager/Recording.vue | 2 +- pages/common/user/logOff.vue | 2 +- .../DeviceDetail => common}/uploadErr.png | Bin utils/MsgPops.js | 35 +- 26 files changed, 532 insertions(+), 316 deletions(-) rename static/images/{6155/DeviceDetail => common}/uploadErr.png (100%) diff --git a/.hbuilderx/launch.json b/.hbuilderx/launch.json index 92f9bed..95fb682 100644 --- a/.hbuilderx/launch.json +++ b/.hbuilderx/launch.json @@ -7,7 +7,7 @@ }, { "customPlaygroundType" : "local", - "playground" : "custom", + "playground" : "standard", "type" : "uni-app:app-android" }, { diff --git a/components/MsgBox/MsgBox.vue b/components/MsgBox/MsgBox.vue index 8cefd65..c7a7d52 100644 --- a/components/MsgBox/MsgBox.vue +++ b/components/MsgBox/MsgBox.vue @@ -135,7 +135,7 @@ let cfg = { error: { - icoUrl: '/static/images/6155/DeviceDetail/uploadErr.png', + icoUrl: '/static/images/common/uploadErr.png', borderColor: "#e034344d", buttonBgColor: "#E03434" }, @@ -148,6 +148,10 @@ icoUrl: '/static/images/common/warning.png', borderColor: "#FFC84E", buttonBgColor: "#FFC84E", + }, + info:{ + borderColor: "#BBE600", + buttonBgColor: "#BBE600" } } diff --git a/pages.json b/pages.json index 64d3058..772c296 100644 --- a/pages.json +++ b/pages.json @@ -429,7 +429,7 @@ { "path": "pages/common/addDevice/addBle", "style": { - "navigationBarTitleText": "蓝牙添加设备" + "navigationStyle": "custom" } }, { diff --git a/pages/018A/HBY018A.vue b/pages/018A/HBY018A.vue index 176d060..8be3957 100644 --- a/pages/018A/HBY018A.vue +++ b/pages/018A/HBY018A.vue @@ -453,7 +453,7 @@ if (item.key == 'led_alarm') { this.showPop({ message: '确定开启声光报警?', - iconUrl: "/static/images/6155/DeviceDetail/uploadErr.png", + iconUrl: "/static/images/common/uploadErr.png", borderColor: "#e034344d", buttonBgColor: "#E03434", okCallback: () => { @@ -467,7 +467,7 @@ if (this.formData.sta_LedType == 'led_alarm') { this.showPop({ message: '确定解除声光报警模式?', - iconUrl: "/static/images/6155/DeviceDetail/uploadErr.png", + iconUrl: "/static/images/common/uploadErr.png", borderColor: "#e034344d", buttonBgColor: "#E03434", okCallback: () => { @@ -657,7 +657,7 @@ this.showPop({ message: "蓝牙未连接过该设备,请使用蓝牙重新添加该设备", - iconUrl: "/static/images/6155/DeviceDetail/uploadErr.png", + iconUrl: "/static/images/common/uploadErr.png", borderColor: "#e034344d", buttonBgColor: "#E03434", buttonText: '去连接', @@ -781,7 +781,7 @@ these.Status.Pop.showPop = true; }, showMsg(msg, isSucc) { - let icoUrl = '/static/images/6155/DeviceDetail/uploadErr.png'; + let icoUrl = '/static/images/common/uploadErr.png'; let borderColor = "#e034344d"; let buttonBgColor = "#E03434"; if (isSucc) { diff --git a/pages/100/HBY100.vue b/pages/100/HBY100.vue index 6820055..edc6b87 100644 --- a/pages/100/HBY100.vue +++ b/pages/100/HBY100.vue @@ -658,7 +658,7 @@ this.showPop({ message: '无操作权限', - iconUrl: "/static/images/6155/DeviceDetail/uploadErr.png", + iconUrl: "/static/images/common/uploadErr.png", borderColor: "#e034344d", buttonBgColor: "#E03434", okCallback: null, @@ -993,7 +993,7 @@ onFreqChanging(e){ this.showPop({ message: '无操作权限', - iconUrl: "/static/images/6155/DeviceDetail/uploadErr.png", + iconUrl: "/static/images/common/uploadErr.png", borderColor: "#e034344d", buttonBgColor: "#E03434", okCallback: null, @@ -1045,7 +1045,7 @@ onFreqChanging(e){ this.showPop({ message: '无操作权限', - iconUrl: "/static/images/6155/DeviceDetail/uploadErr.png", + iconUrl: "/static/images/common/uploadErr.png", borderColor: "#e034344d", buttonBgColor: "#E03434", okCallback: null, @@ -1090,7 +1090,7 @@ onFreqChanging(e){ showUnWarn(val) { this.showPop({ message: '确定解除声光报警模式?', - iconUrl: "/static/images/6155/DeviceDetail/uploadErr.png", + iconUrl: "/static/images/common/uploadErr.png", borderColor: "#e034344d", buttonBgColor: "#E03434", okCallback: () => { @@ -1110,7 +1110,7 @@ onFreqChanging(e){ this.showPop({ message: '无操作权限', - iconUrl: "/static/images/6155/DeviceDetail/uploadErr.png", + iconUrl: "/static/images/common/uploadErr.png", borderColor: "#e034344d", buttonBgColor: "#E03434", okCallback: null, @@ -1175,7 +1175,7 @@ onFreqChanging(e){ } else { this.showPop({ message: '确定开启强制报警?', - iconUrl: "/static/images/6155/DeviceDetail/uploadErr.png", + iconUrl: "/static/images/common/uploadErr.png", borderColor: "#e034344d", buttonBgColor: "#E03434", okCallback: task, @@ -1395,7 +1395,7 @@ onFreqChanging(e){ this.showPop({ message: "蓝牙未连接过该设备,请使用蓝牙重新添加该设备", - iconUrl: "/static/images/6155/DeviceDetail/uploadErr.png", + iconUrl: "/static/images/common/uploadErr.png", borderColor: "#e034344d", buttonBgColor: "#E03434", buttonText: '去连接', @@ -1519,7 +1519,7 @@ onFreqChanging(e){ these.Status.Pop.showPop = true; }, showMsg(msg, isSucc) { - let icoUrl = '/static/images/6155/DeviceDetail/uploadErr.png'; + let icoUrl = '/static/images/common/uploadErr.png'; let borderColor = "#e034344d"; let buttonBgColor = "#E03434"; if (isSucc) { diff --git a/pages/100J/audioManager/AudioList.vue b/pages/100J/audioManager/AudioList.vue index 6ec61c5..45fb2af 100644 --- a/pages/100J/audioManager/AudioList.vue +++ b/pages/100J/audioManager/AudioList.vue @@ -758,7 +758,7 @@ these.Status.Pop.showPop = true; }, showMsg(msg, isSucc) { - let icoUrl = '/static/images/6155/DeviceDetail/uploadErr.png'; + let icoUrl = '/static/images/common/uploadErr.png'; let borderColor = "#e034344d"; let buttonBgColor = "#E03434"; if (isSucc) { diff --git a/pages/100J/audioManager/Recording.vue b/pages/100J/audioManager/Recording.vue index 2ff2e10..3563803 100644 --- a/pages/100J/audioManager/Recording.vue +++ b/pages/100J/audioManager/Recording.vue @@ -1165,7 +1165,7 @@ if (okCallback === undefined) { okCallback = null; } - let icoUrl = '/static/images/6155/DeviceDetail/uploadErr.png'; + let icoUrl = '/static/images/common/uploadErr.png'; let borderColor = "#e034344d"; let buttonBgColor = "#E03434"; if (isSucc) { diff --git a/pages/102/HBY102.vue b/pages/102/HBY102.vue index 7f1adab..1ab809c 100644 --- a/pages/102/HBY102.vue +++ b/pages/102/HBY102.vue @@ -598,7 +598,7 @@ this.showPop({ message: '无操作权限', - iconUrl: "/static/images/6155/DeviceDetail/uploadErr.png", + iconUrl: "/static/images/common/uploadErr.png", borderColor: "#e034344d", buttonBgColor: "#E03434", okCallback: null, @@ -774,7 +774,7 @@ this.showPop({ message: '无操作权限', - iconUrl: "/static/images/6155/DeviceDetail/uploadErr.png", + iconUrl: "/static/images/common/uploadErr.png", borderColor: "#e034344d", buttonBgColor: "#E03434", okCallback: null, @@ -842,7 +842,7 @@ if (val === 'E49_on') { this.showPop({ message: '确定开启联机模式?', - iconUrl: "/static/images/6155/DeviceDetail/uploadErr.png", + iconUrl: "/static/images/common/uploadErr.png", borderColor: "#e034344d", buttonBgColor: "#E03434", okCallback: () => { @@ -924,7 +924,7 @@ if (val == 'status_off') { this.showPop({ message: '确定关闭物体感应功能?', - iconUrl: "/static/images/6155/DeviceDetail/uploadErr.png", + iconUrl: "/static/images/common/uploadErr.png", borderColor: "#e034344d", buttonBgColor: "#E03434", okCallback: () => { @@ -950,7 +950,7 @@ debugger; this.showPop({ message: '无操作权限', - iconUrl: "/static/images/6155/DeviceDetail/uploadErr.png", + iconUrl: "/static/images/common/uploadErr.png", borderColor: "#e034344d", buttonBgColor: "#E03434", okCallback: null, @@ -1003,7 +1003,7 @@ debugger; if (item.key == 'led_alarm') { this.showPop({ message: '确定开启强制报警?', - iconUrl: "/static/images/6155/DeviceDetail/uploadErr.png", + iconUrl: "/static/images/common/uploadErr.png", borderColor: "#e034344d", buttonBgColor: "#E03434", okCallback: () => { @@ -1017,7 +1017,7 @@ debugger; if (this.formData.sta_LedType == 'led_alarm') { this.showPop({ message: '确定解除声光报警模式?', - iconUrl: "/static/images/6155/DeviceDetail/uploadErr.png", + iconUrl: "/static/images/common/uploadErr.png", borderColor: "#e034344d", buttonBgColor: "#E03434", okCallback: () => { @@ -1369,7 +1369,7 @@ debugger; this.showPop({ message: "蓝牙未连接过该设备,请使用蓝牙重新添加该设备", - iconUrl: "/static/images/6155/DeviceDetail/uploadErr.png", + iconUrl: "/static/images/common/uploadErr.png", borderColor: "#e034344d", buttonBgColor: "#E03434", buttonText: '去连接', @@ -1493,7 +1493,7 @@ debugger; these.Status.Pop.showPop = true; }, showMsg(msg, isSucc) { - let icoUrl = '/static/images/6155/DeviceDetail/uploadErr.png'; + let icoUrl = '/static/images/common/uploadErr.png'; let borderColor = "#e034344d"; let buttonBgColor = "#E03434"; if (isSucc) { diff --git a/pages/4877/BJQ4877.vue b/pages/4877/BJQ4877.vue index 9c3c0c2..a6da37e 100644 --- a/pages/4877/BJQ4877.vue +++ b/pages/4877/BJQ4877.vue @@ -713,7 +713,7 @@ this.showPop({ message: '无操作权限', - iconUrl: "/static/images/6155/DeviceDetail/uploadErr.png", + iconUrl: "/static/images/common/uploadErr.png", borderColor: "#e034344d", buttonBgColor: "#E03434", okCallback: null, @@ -794,7 +794,7 @@ this.showPop({ message: '无操作权限', - iconUrl: "/static/images/6155/DeviceDetail/uploadErr.png", + iconUrl: "/static/images/common/uploadErr.png", borderColor: "#e034344d", buttonBgColor: "#E03434", okCallback: null, @@ -857,7 +857,7 @@ this.showPop({ message: '无操作权限', - iconUrl: "/static/images/6155/DeviceDetail/uploadErr.png", + iconUrl: "/static/images/common/uploadErr.png", borderColor: "#e034344d", buttonBgColor: "#E03434", okCallback: null, @@ -918,7 +918,7 @@ showUnWarn(val) { // this.showPop({ // message: '确定解除声光报警模式?', - // iconUrl: "/static/images/6155/DeviceDetail/uploadErr.png", + // iconUrl: "/static/images/common/uploadErr.png", // borderColor: "#e034344d", // buttonBgColor: "#E03434", // okCallback: () => { @@ -940,7 +940,7 @@ this.showPop({ message: '无操作权限', - iconUrl: "/static/images/6155/DeviceDetail/uploadErr.png", + iconUrl: "/static/images/common/uploadErr.png", borderColor: "#e034344d", buttonBgColor: "#E03434", okCallback: null, @@ -999,7 +999,7 @@ this.showPop({ message: '无操作权限', - iconUrl: "/static/images/6155/DeviceDetail/uploadErr.png", + iconUrl: "/static/images/common/uploadErr.png", borderColor: "#e034344d", buttonBgColor: "#E03434", okCallback: null, @@ -1039,7 +1039,7 @@ let confirmTask = () => { this.showPop({ message: '确定' + (this.formData.sta_SOSType === 'sos' ? '关闭' : '开启') + '声光报警模式?', - iconUrl: "/static/images/6155/DeviceDetail/uploadErr.png", + iconUrl: "/static/images/common/uploadErr.png", borderColor: "#e034344d", buttonBgColor: "#E03434", okCallback: task, @@ -1260,7 +1260,7 @@ this.showPop({ message: "蓝牙未连接过该设备,请使用蓝牙重新添加该设备", - iconUrl: "/static/images/6155/DeviceDetail/uploadErr.png", + iconUrl: "/static/images/common/uploadErr.png", borderColor: "#e034344d", buttonBgColor: "#E03434", buttonText: '去连接', @@ -1384,7 +1384,7 @@ these.Status.Pop.showPop = true; }, showMsg(msg, isSucc) { - let icoUrl = '/static/images/6155/DeviceDetail/uploadErr.png'; + let icoUrl = '/static/images/common/uploadErr.png'; let borderColor = "#e034344d"; let buttonBgColor = "#E03434"; if (isSucc) { diff --git a/pages/4877/BJQ4877CheckColor.vue b/pages/4877/BJQ4877CheckColor.vue index c258f59..d1637b4 100644 --- a/pages/4877/BJQ4877CheckColor.vue +++ b/pages/4877/BJQ4877CheckColor.vue @@ -195,7 +195,7 @@ these.Status.Pop.showPop = true; }, showMsg(msg, isSucc) { - let icoUrl = '/static/images/6155/DeviceDetail/uploadErr.png'; + let icoUrl = '/static/images/common/uploadErr.png'; let borderColor = "#e034344d"; let buttonBgColor = "#E03434"; if (isSucc) { diff --git a/pages/4877/BJQ4877V1.vue b/pages/4877/BJQ4877V1.vue index 1491555..153718a 100644 --- a/pages/4877/BJQ4877V1.vue +++ b/pages/4877/BJQ4877V1.vue @@ -507,7 +507,7 @@ import request, { baseURL } from '@/utils/request.js'; showUnWarn(val) { this.showPop({ message: '确定解除声光报警模式?', - iconUrl: "/static/images/6155/DeviceDetail/uploadErr.png", + iconUrl: "/static/images/common/uploadErr.png", borderColor: "#e034344d", buttonBgColor: "#E03434", okCallback: () => { @@ -562,7 +562,7 @@ import request, { baseURL } from '@/utils/request.js'; if (item.val === 'sos') { this.showPop({ message: '确定开启声光报警模式?', - iconUrl: "/static/images/6155/DeviceDetail/uploadErr.png", + iconUrl: "/static/images/common/uploadErr.png", borderColor: "#e034344d", buttonBgColor: "#E03434", okCallback: task, @@ -760,7 +760,7 @@ import request, { baseURL } from '@/utils/request.js'; this.showPop({ message: "蓝牙未连接过该设备,请使用蓝牙重新添加该设备", - iconUrl: "/static/images/6155/DeviceDetail/uploadErr.png", + iconUrl: "/static/images/common/uploadErr.png", borderColor: "#e034344d", buttonBgColor: "#E03434", buttonText: '去连接', @@ -884,7 +884,7 @@ import request, { baseURL } from '@/utils/request.js'; these.Status.Pop.showPop = true; }, showMsg(msg, isSucc) { - let icoUrl = '/static/images/6155/DeviceDetail/uploadErr.png'; + let icoUrl = '/static/images/common/uploadErr.png'; let borderColor = "#e034344d"; let buttonBgColor = "#E03434"; if (isSucc) { diff --git a/pages/6075J/BJQ6075J.vue b/pages/6075J/BJQ6075J.vue index e9c6e12..d6310a2 100644 --- a/pages/6075J/BJQ6075J.vue +++ b/pages/6075J/BJQ6075J.vue @@ -774,7 +774,7 @@ borderColor: "#e034344d", buttonBgColor: "#E03434", buttonText: "确定", - iconUrl: "/static/images/6155/DeviceDetail/uploadErr.png" + iconUrl: "/static/images/common/uploadErr.png" }, these); reject(err); these.videoHexArray = null; @@ -864,7 +864,7 @@ if (arr[0].status == 'rejected') { showPop({ message: "设备准备未就绪", - iconUrl: "/static/images/6155/DeviceDetail/uploadErr.png", + iconUrl: "/static/images/common/uploadErr.png", borderColor: "#e034344d", buttonBgColor: "#E03434", }, these); @@ -891,7 +891,7 @@ showPop({ message: "与服务器连接出现异常,请检查网络设置", - iconUrl: "/static/images/6155/DeviceDetail/uploadErr.png", + iconUrl: "/static/images/common/uploadErr.png", borderColor: "#e034344d", buttonBgColor: "#E03434", }, these); @@ -902,7 +902,7 @@ hideLoading(these); showPop({ message: "出现异常," + ex.msg, - iconUrl: "/static/images/6155/DeviceDetail/uploadErr.png", + iconUrl: "/static/images/common/uploadErr.png", borderColor: "#e034344d", buttonBgColor: "#E03434", }, these); @@ -974,7 +974,7 @@ err = err.join(";"); showPop({ message: err, - iconUrl: "/static/images/6155/DeviceDetail/uploadErr.png", + iconUrl: "/static/images/common/uploadErr.png", borderColor: "#e034344d", buttonBgColor: "#E03434", }, these); @@ -1106,7 +1106,7 @@ these.closeAction(); showPop({ message: err.msg, - iconUrl: "/static/images/6155/DeviceDetail/uploadErr.png", + iconUrl: "/static/images/common/uploadErr.png", borderColor: "#e034344d", buttonBgColor: "#E03434", }); @@ -1129,7 +1129,7 @@ console.log("握手没有成功"); showPop({ message: err.msg, - iconUrl: "/static/images/6155/DeviceDetail/uploadErr.png", + iconUrl: "/static/images/common/uploadErr.png", borderColor: "#e034344d", buttonBgColor: "#E03434", }); @@ -1924,7 +1924,7 @@ showPop({ message: "蓝牙未连接过该设备,请使用蓝牙重新添加该设备", - iconUrl: "/static/images/6155/DeviceDetail/uploadErr.png", + iconUrl: "/static/images/common/uploadErr.png", borderColor: "#e034344d", buttonBgColor: "#E03434", buttonText: '去连接', diff --git a/pages/6107/BJQ6107.vue b/pages/6107/BJQ6107.vue index 3d0d043..84fb5db 100644 --- a/pages/6107/BJQ6107.vue +++ b/pages/6107/BJQ6107.vue @@ -670,7 +670,7 @@ this.showPop({ key: key, message: msg, - iconUrl: "/static/images/6155/DeviceDetail/uploadErr.png", + iconUrl: "/static/images/common/uploadErr.png", borderColor: "#e034344d", buttonBgColor: "#E03434", okCallback: sosToggle, @@ -841,7 +841,7 @@ this.showPop({ key: Common.guid(), message: "蓝牙未连接过该设备,请使用蓝牙重新添加该设备", - iconUrl: "/static/images/6155/DeviceDetail/uploadErr.png", + iconUrl: "/static/images/common/uploadErr.png", borderColor: "#e034344d", buttonBgColor: "#E03434", buttonText: '去连接', @@ -974,7 +974,7 @@ let cfg = { error: { - icoUrl: '/static/images/6155/DeviceDetail/uploadErr.png', + icoUrl: '/static/images/common/uploadErr.png', borderColor: "#e034344d", buttonBgColor: "#E03434" }, diff --git a/pages/6155/BJQ6155.vue b/pages/6155/BJQ6155.vue index 4d2b5da..65de89b 100644 --- a/pages/6155/BJQ6155.vue +++ b/pages/6155/BJQ6155.vue @@ -698,7 +698,7 @@ if (this.formData.battary <= 20) { this.showPop({ message: "设备电量低", - iconUrl: "/static/images/6155/DeviceDetail/uploadErr.png", + iconUrl: "/static/images/common/uploadErr.png", borderColor: "#e034344d", buttonBgColor: "#E03434", }); @@ -733,7 +733,7 @@ showBleUnConnect() { this.showPop({ message: "蓝牙未连接过该设备,请使用蓝牙重新添加该设备", - iconUrl: "/static/images/6155/DeviceDetail/uploadErr.png", + iconUrl: "/static/images/common/uploadErr.png", borderColor: "#e034344d", buttonBgColor: "#E03434", buttonText: '去连接', @@ -860,7 +860,7 @@ these.Status.BottomMenu.show = false; these.showPop({ message: err.msg, - iconUrl: "/static/images/6155/DeviceDetail/uploadErr.png", + iconUrl: "/static/images/common/uploadErr.png", borderColor: "#e034344d", buttonBgColor: "#E03434", }); @@ -883,7 +883,7 @@ console.log("握手没有成功"); these.showPop({ message: err.msg, - iconUrl: "/static/images/6155/DeviceDetail/uploadErr.png", + iconUrl: "/static/images/common/uploadErr.png", borderColor: "#e034344d", buttonBgColor: "#E03434", }); @@ -939,7 +939,7 @@ this.showPop({ message: '无操作权限', - iconUrl: "/static/images/6155/DeviceDetail/uploadErr.png", + iconUrl: "/static/images/common/uploadErr.png", borderColor: "#e034344d", buttonBgColor: "#E03434", okCallback: null, @@ -1072,7 +1072,7 @@ borderColor: "#e034344d", buttonBgColor: "#E03434", buttonText: "确定", - iconUrl: "/static/images/6155/DeviceDetail/uploadErr.png" + iconUrl: "/static/images/common/uploadErr.png" }); reject(err); these.videoHexArray = null; @@ -1162,7 +1162,7 @@ if (arr[0].status == 'rejected') { these.showPop({ message: "设备准备未就绪", - iconUrl: "/static/images/6155/DeviceDetail/uploadErr.png", + iconUrl: "/static/images/common/uploadErr.png", borderColor: "#e034344d", buttonBgColor: "#E03434", }); @@ -1189,7 +1189,7 @@ these.showPop({ message: "与服务器连接出现异常,请检查网络设置", - iconUrl: "/static/images/6155/DeviceDetail/uploadErr.png", + iconUrl: "/static/images/common/uploadErr.png", borderColor: "#e034344d", buttonBgColor: "#E03434", }); @@ -1200,7 +1200,7 @@ hideLoading(these); these.showPop({ message: "出现异常," + ex.msg, - iconUrl: "/static/images/6155/DeviceDetail/uploadErr.png", + iconUrl: "/static/images/common/uploadErr.png", borderColor: "#e034344d", buttonBgColor: "#E03434", }); @@ -1273,7 +1273,7 @@ err = err.join(";"); these.showPop({ message: err, - iconUrl: "/static/images/6155/DeviceDetail/uploadErr.png", + iconUrl: "/static/images/common/uploadErr.png", borderColor: "#e034344d", buttonBgColor: "#E03434", }); @@ -1297,7 +1297,7 @@ this.showPop({ message: '无操作权限', - iconUrl: "/static/images/6155/DeviceDetail/uploadErr.png", + iconUrl: "/static/images/common/uploadErr.png", borderColor: "#e034344d", buttonBgColor: "#E03434", okCallback: null, @@ -1353,7 +1353,7 @@ this.showPop({ message: '无操作权限', - iconUrl: "/static/images/6155/DeviceDetail/uploadErr.png", + iconUrl: "/static/images/common/uploadErr.png", borderColor: "#e034344d", buttonBgColor: "#E03434", okCallback: null, @@ -1437,7 +1437,7 @@ }).catch((ex) => { these.showPop({ message: "发送失败," + ex.msg, - iconUrl: "/static/images/6155/DeviceDetail/uploadErr.png", + iconUrl: "/static/images/common/uploadErr.png", borderColor: "#e034344d", buttonBgColor: "#E03434", }); @@ -1546,7 +1546,7 @@ this.showPop({ message: '无操作权限', - iconUrl: "/static/images/6155/DeviceDetail/uploadErr.png", + iconUrl: "/static/images/common/uploadErr.png", borderColor: "#e034344d", buttonBgColor: "#E03434", okCallback: null, @@ -1585,7 +1585,7 @@ if (err) { this.showPop({ message: "单位、部门、姓名必须填写且最多8字", - iconUrl: "/static/images/6155/DeviceDetail/uploadErr.png", + iconUrl: "/static/images/common/uploadErr.png", borderColor: "#e034344d", buttonBgColor: "#E03434", }); @@ -1706,7 +1706,7 @@ hideLoading(these); these.showPop({ message: "发送失败: " + (err.msg || err.message), - iconUrl: "/static/images/6155/DeviceDetail/uploadErr.png", + iconUrl: "/static/images/common/uploadErr.png", borderColor: "#e034344d", buttonBgColor: "#E03434", }); @@ -1723,7 +1723,7 @@ hideLoading(these); this.showPop({ message: "发送失败: " + (ex.msg || ex.message), - iconUrl: "/static/images/6155/DeviceDetail/uploadErr.png", + iconUrl: "/static/images/common/uploadErr.png", borderColor: "#e034344d", buttonBgColor: "#E03434", }); @@ -1793,7 +1793,7 @@ this.showPop({ message: '无操作权限', - iconUrl: "/static/images/6155/DeviceDetail/uploadErr.png", + iconUrl: "/static/images/common/uploadErr.png", borderColor: "#e034344d", buttonBgColor: "#E03434", okCallback: null, diff --git a/pages/6155/deviceDetail.vue b/pages/6155/deviceDetail.vue index ef29fc8..2420b44 100644 --- a/pages/6155/deviceDetail.vue +++ b/pages/6155/deviceDetail.vue @@ -678,7 +678,7 @@ if (this.formData.battary <= 20) { this.showPop({ message: "设备电量低", - iconUrl: "/static/images/6155/DeviceDetail/uploadErr.png", + iconUrl: "/static/images/common/uploadErr.png", borderColor: "#e034344d", buttonBgColor: "#E03434", }); @@ -713,7 +713,7 @@ showBleUnConnect() { this.showPop({ message: "蓝牙未连接过该设备,请使用蓝牙重新添加该设备", - iconUrl: "/static/images/6155/DeviceDetail/uploadErr.png", + iconUrl: "/static/images/common/uploadErr.png", borderColor: "#e034344d", buttonBgColor: "#E03434", buttonText: '去连接', @@ -913,7 +913,7 @@ these.Status.BottomMenu.show = false; these.showPop({ message: "发送数据包失败了" + err.msg, - iconUrl: "/static/images/6155/DeviceDetail/uploadErr.png", + iconUrl: "/static/images/common/uploadErr.png", borderColor: "#e034344d", buttonBgColor: "#E03434", }); @@ -972,7 +972,7 @@ this.showPop({ message: '无操作权限', - iconUrl: "/static/images/6155/DeviceDetail/uploadErr.png", + iconUrl: "/static/images/common/uploadErr.png", borderColor: "#e034344d", buttonBgColor: "#E03434", okCallback: null, @@ -1285,7 +1285,7 @@ err = err.join(";"); these.showPop({ message: err, - iconUrl: "/static/images/6155/DeviceDetail/uploadErr.png", + iconUrl: "/static/images/common/uploadErr.png", borderColor: "#e034344d", buttonBgColor: "#E03434", }); @@ -1362,7 +1362,7 @@ this.showPop({ message: '无操作权限', - iconUrl: "/static/images/6155/DeviceDetail/uploadErr.png", + iconUrl: "/static/images/common/uploadErr.png", borderColor: "#e034344d", buttonBgColor: "#E03434", okCallback: null, @@ -1442,7 +1442,7 @@ this.showPop({ message: '无操作权限', - iconUrl: "/static/images/6155/DeviceDetail/uploadErr.png", + iconUrl: "/static/images/common/uploadErr.png", borderColor: "#e034344d", buttonBgColor: "#E03434", okCallback: null, @@ -1522,7 +1522,7 @@ }).catch((ex) => { these.showPop({ message: "发送失败," + ex.msg, - iconUrl: "/static/images/6155/DeviceDetail/uploadErr.png", + iconUrl: "/static/images/common/uploadErr.png", borderColor: "#e034344d", buttonBgColor: "#E03434", }); @@ -1632,7 +1632,7 @@ this.showPop({ message: '无操作权限', - iconUrl: "/static/images/6155/DeviceDetail/uploadErr.png", + iconUrl: "/static/images/common/uploadErr.png", borderColor: "#e034344d", buttonBgColor: "#E03434", okCallback: null, @@ -1658,7 +1658,7 @@ if (err) { this.showPop({ message: "单位、部门、姓名必须填写且最多7字", - iconUrl: "/static/images/6155/DeviceDetail/uploadErr.png", + iconUrl: "/static/images/common/uploadErr.png", borderColor: "#e034344d", buttonBgColor: "#E03434", }); @@ -1756,7 +1756,7 @@ hideLoading(these); this.showPop({ message: "发送失败: " + (ex.msg || ex.message), - iconUrl: "/static/images/6155/DeviceDetail/uploadErr.png", + iconUrl: "/static/images/common/uploadErr.png", borderColor: "#e034344d", buttonBgColor: "#E03434", }); @@ -1798,7 +1798,7 @@ this.showPop({ message: '无操作权限', - iconUrl: "/static/images/6155/DeviceDetail/uploadErr.png", + iconUrl: "/static/images/common/uploadErr.png", borderColor: "#e034344d", buttonBgColor: "#E03434", okCallback: null, diff --git a/pages/6170/deviceControl/index.vue b/pages/6170/deviceControl/index.vue index 3010b2b..37b46ba 100644 --- a/pages/6170/deviceControl/index.vue +++ b/pages/6170/deviceControl/index.vue @@ -514,7 +514,7 @@ showPop({ message: "蓝牙未连接过该设备,请使用蓝牙重新添加该设备", - iconUrl: "/static/images/6155/DeviceDetail/uploadErr.png", + iconUrl: "/static/images/common/uploadErr.png", borderColor: "#e034344d", buttonBgColor: "#E03434", buttonText: '去连接', @@ -1272,7 +1272,7 @@ showPop({ message: err.msg, - iconUrl: "/static/images/6155/DeviceDetail/uploadErr.png", + iconUrl: "/static/images/common/uploadErr.png", borderColor: "#e034344d", buttonBgColor: "#E03434", }, these); @@ -1295,7 +1295,7 @@ console.log("握手没有成功"); showPop({ message: err.msg, - iconUrl: "/static/images/6155/DeviceDetail/uploadErr.png", + iconUrl: "/static/images/common/uploadErr.png", borderColor: "#e034344d", buttonBgColor: "#E03434", }, these); diff --git a/pages/6331/BJQ6331.vue b/pages/6331/BJQ6331.vue index 0b52b2a..0c21335 100644 --- a/pages/6331/BJQ6331.vue +++ b/pages/6331/BJQ6331.vue @@ -596,7 +596,7 @@ import request, { baseURL } from '@/utils/request.js'; ble.sendHexs(f.deviceId, array, f.writeServiceId, f.wirteCharactId, 100).catch(ex => { these.showPop({ message: "发送失败," + ex.msg, - iconUrl: "/static/images/6155/DeviceDetail/uploadErr.png", + iconUrl: "/static/images/common/uploadErr.png", borderColor: "#e034344d", buttonBgColor: "#E03434", }); @@ -736,7 +736,7 @@ import request, { baseURL } from '@/utils/request.js'; this.showPop({ message: "蓝牙未连接过该设备,请使用蓝牙重新添加该设备", - iconUrl: "/static/images/6155/DeviceDetail/uploadErr.png", + iconUrl: "/static/images/common/uploadErr.png", borderColor: "#e034344d", buttonBgColor: "#E03434", buttonText: '去连接', diff --git a/pages/650/HBY650.vue b/pages/650/HBY650.vue index dd3d34b..a42aa07 100644 --- a/pages/650/HBY650.vue +++ b/pages/650/HBY650.vue @@ -735,7 +735,7 @@ import request, { baseURL } from '@/utils/request.js'; this.showPop({ message: '无操作权限', - iconUrl: "/static/images/6155/DeviceDetail/uploadErr.png", + iconUrl: "/static/images/common/uploadErr.png", borderColor: "#e034344d", buttonBgColor: "#E03434", okCallback: null, @@ -815,7 +815,7 @@ import request, { baseURL } from '@/utils/request.js'; these.showPop({ message: ex.msg, - iconUrl: "/static/images/6155/DeviceDetail/uploadErr.png", + iconUrl: "/static/images/common/uploadErr.png", borderColor: "#e034344d", buttonBgColor: "#E03434", }); @@ -840,7 +840,7 @@ import request, { baseURL } from '@/utils/request.js'; this.showPop({ message: "蓝牙未连接过该设备,请使用蓝牙重新添加该设备", - iconUrl: "/static/images/6155/DeviceDetail/uploadErr.png", + iconUrl: "/static/images/common/uploadErr.png", borderColor: "#e034344d", buttonBgColor: "#E03434", buttonText: '去连接', @@ -873,7 +873,7 @@ import request, { baseURL } from '@/utils/request.js'; this.showPop({ message: '无操作权限', - iconUrl: "/static/images/6155/DeviceDetail/uploadErr.png", + iconUrl: "/static/images/common/uploadErr.png", borderColor: "#e034344d", buttonBgColor: "#E03434", okCallback: null, @@ -1025,7 +1025,7 @@ import request, { baseURL } from '@/utils/request.js'; these.showPop({ message: err.msg, - iconUrl: "/static/images/6155/DeviceDetail/uploadErr.png", + iconUrl: "/static/images/common/uploadErr.png", borderColor: "#e034344d", buttonBgColor: "#E03434", }); @@ -1046,7 +1046,7 @@ import request, { baseURL } from '@/utils/request.js'; console.log("握手没有成功"); these.showPop({ message: err.msg, - iconUrl: "/static/images/6155/DeviceDetail/uploadErr.png", + iconUrl: "/static/images/common/uploadErr.png", borderColor: "#e034344d", buttonBgColor: "#E03434", }); @@ -1201,7 +1201,7 @@ import request, { baseURL } from '@/utils/request.js'; borderColor: "#e034344d", buttonBgColor: "#E03434", buttonText: "确定", - iconUrl: "/static/images/6155/DeviceDetail/uploadErr.png" + iconUrl: "/static/images/common/uploadErr.png" }); reject(err); return; @@ -1299,7 +1299,7 @@ import request, { baseURL } from '@/utils/request.js'; these.showPop({ message: "与服务器连接出现异常,请检查网络设置", - iconUrl: "/static/images/6155/DeviceDetail/uploadErr.png", + iconUrl: "/static/images/common/uploadErr.png", borderColor: "#e034344d", buttonBgColor: "#E03434", }); @@ -1310,7 +1310,7 @@ import request, { baseURL } from '@/utils/request.js'; hideLoading(these); these.showPop({ message: "出现异常," + ex.msg, - iconUrl: "/static/images/6155/DeviceDetail/uploadErr.png", + iconUrl: "/static/images/common/uploadErr.png", borderColor: "#e034344d", buttonBgColor: "#E03434", }); @@ -1382,7 +1382,7 @@ import request, { baseURL } from '@/utils/request.js'; this.showPop({ message: '无操作权限', - iconUrl: "/static/images/6155/DeviceDetail/uploadErr.png", + iconUrl: "/static/images/common/uploadErr.png", borderColor: "#e034344d", buttonBgColor: "#E03434", okCallback: null, @@ -1501,7 +1501,7 @@ import request, { baseURL } from '@/utils/request.js'; this.showPop({ message: '无操作权限', - iconUrl: "/static/images/6155/DeviceDetail/uploadErr.png", + iconUrl: "/static/images/common/uploadErr.png", borderColor: "#e034344d", buttonBgColor: "#E03434", okCallback: null, @@ -1626,7 +1626,7 @@ import request, { baseURL } from '@/utils/request.js'; these.showPop({ message: "文字发送失败," + err.msg, - iconUrl: "/static/images/6155/DeviceDetail/uploadErr.png", + iconUrl: "/static/images/common/uploadErr.png", borderColor: "#e034344d", buttonBgColor: "#E03434", }); @@ -1660,7 +1660,7 @@ import request, { baseURL } from '@/utils/request.js'; hideLoading(these); these.showPop({ message: ex.msg, - iconUrl: "/static/images/6155/DeviceDetail/uploadErr.png", + iconUrl: "/static/images/common/uploadErr.png", borderColor: "#e034344d", buttonBgColor: "#E03434", }); diff --git a/pages/670/HBY670.vue b/pages/670/HBY670.vue index 1b9238b..dd054e8 100644 --- a/pages/670/HBY670.vue +++ b/pages/670/HBY670.vue @@ -717,7 +717,7 @@ } this.showPop({ message: "蓝牙未连接过该设备,请使用蓝牙重新添加该设备,取消" + (4 - this.Status.bleLinkCnt) + "次后不再提醒", - iconUrl: "/static/images/6155/DeviceDetail/uploadErr.png", + iconUrl: "/static/images/common/uploadErr.png", borderColor: "#e034344d", buttonBgColor: "#E03434", buttonText: '去连接', @@ -1171,7 +1171,7 @@ this.showPop({ message: '无操作权限', - iconUrl: "/static/images/6155/DeviceDetail/uploadErr.png", + iconUrl: "/static/images/common/uploadErr.png", borderColor: "#e034344d", buttonBgColor: "#E03434", okCallback: null, @@ -1214,7 +1214,7 @@ console.log("ex=", ex); these.showPop({ message: "通信异常,请检查手机或设备网络", - iconUrl: "/static/images/6155/DeviceDetail/uploadErr.png", + iconUrl: "/static/images/common/uploadErr.png", borderColor: "#e034344d", buttonBgColor: "#E03434", }); @@ -1278,7 +1278,7 @@ console.log("ex=", ex); these.showPop({ message: "通信异常,请检查手机或设备网络", - iconUrl: "/static/images/6155/DeviceDetail/uploadErr.png", + iconUrl: "/static/images/common/uploadErr.png", borderColor: "#e034344d", buttonBgColor: "#E03434", }); @@ -1341,7 +1341,7 @@ showHeader: true, headerTxt: "强制报警", message: message, - iconUrl: "/static/images/6155/DeviceDetail/uploadErr.png", + iconUrl: "/static/images/common/uploadErr.png", borderColor: "#e034344d", buttonBgColor: "#E03434", buttonText: "解除报警", @@ -1360,7 +1360,7 @@ this.showPop({ message: '无操作权限', - iconUrl: "/static/images/6155/DeviceDetail/uploadErr.png", + iconUrl: "/static/images/common/uploadErr.png", borderColor: "#e034344d", buttonBgColor: "#E03434", okCallback: null, @@ -1434,7 +1434,7 @@ console.log("ex=", ex); these.showPop({ message: "通信异常,请检查手机或设备网络", - iconUrl: "/static/images/6155/DeviceDetail/uploadErr.png", + iconUrl: "/static/images/common/uploadErr.png", borderColor: "#e034344d", buttonBgColor: "#E03434", }); @@ -1552,7 +1552,7 @@ this.showPop({ message: '确定开启声光报警模式?', - iconUrl: "/static/images/6155/DeviceDetail/uploadErr.png", + iconUrl: "/static/images/common/uploadErr.png", borderColor: "#e034344d", buttonBgColor: "#E03434", okCallback: OpenSOS, @@ -1580,7 +1580,7 @@ this.showPop({ message: '无操作权限', - iconUrl: "/static/images/6155/DeviceDetail/uploadErr.png", + iconUrl: "/static/images/common/uploadErr.png", borderColor: "#e034344d", buttonBgColor: "#E03434", okCallback: null, @@ -1622,7 +1622,7 @@ console.log("ex=", ex) these.showPop({ message: "通信异常,请检查手机或设备网络", - iconUrl: "/static/images/6155/DeviceDetail/uploadErr.png", + iconUrl: "/static/images/common/uploadErr.png", borderColor: "#e034344d", buttonBgColor: "#E03434", }); @@ -1678,7 +1678,7 @@ this.showPop({ message: '无操作权限', - iconUrl: "/static/images/6155/DeviceDetail/uploadErr.png", + iconUrl: "/static/images/common/uploadErr.png", borderColor: "#e034344d", buttonBgColor: "#E03434", okCallback: null, @@ -1717,7 +1717,7 @@ these.showPop({ message: res.errMsg ? res.errMsg : "未知的原因上传失败了", - iconUrl: "/static/images/6155/DeviceDetail/uploadErr.png", + iconUrl: "/static/images/common/uploadErr.png", borderColor: "#e034344d", buttonBgColor: "#E03434", }); @@ -1847,7 +1847,7 @@ // these.Status.BottomMenu.show = false; // these.showPop({ // message: err.msg, - // iconUrl: "/static/images/6155/DeviceDetail/uploadErr.png", + // iconUrl: "/static/images/common/uploadErr.png", // borderColor: "#e034344d", // buttonBgColor: "#E03434", // }); @@ -2025,7 +2025,7 @@ borderColor: "#e034344d", buttonBgColor: "#E03434", buttonText: "确定", - iconUrl: "/static/images/6155/DeviceDetail/uploadErr.png" + iconUrl: "/static/images/common/uploadErr.png" }); reject(err); return; @@ -2125,7 +2125,7 @@ these.showPop({ message: "与服务器连接出现异常,请检查网络设置", - iconUrl: "/static/images/6155/DeviceDetail/uploadErr.png", + iconUrl: "/static/images/common/uploadErr.png", borderColor: "#e034344d", buttonBgColor: "#E03434", }); @@ -2136,7 +2136,7 @@ hideLoading(these); these.showPop({ message: "出现异常," + ex.msg, - iconUrl: "/static/images/6155/DeviceDetail/uploadErr.png", + iconUrl: "/static/images/common/uploadErr.png", borderColor: "#e034344d", buttonBgColor: "#E03434", }); @@ -2207,7 +2207,7 @@ this.showPop({ message: '无操作权限', - iconUrl: "/static/images/6155/DeviceDetail/uploadErr.png", + iconUrl: "/static/images/common/uploadErr.png", borderColor: "#e034344d", buttonBgColor: "#E03434", okCallback: null, @@ -2328,7 +2328,7 @@ this.showPop({ message: '无操作权限', - iconUrl: "/static/images/6155/DeviceDetail/uploadErr.png", + iconUrl: "/static/images/common/uploadErr.png", borderColor: "#e034344d", buttonBgColor: "#E03434", okCallback: null, @@ -2370,7 +2370,7 @@ }).catch((ex) => { these.showPop({ message: "文字发送失败," + ex.msg, - iconUrl: "/static/images/6155/DeviceDetail/uploadErr.png", + iconUrl: "/static/images/common/uploadErr.png", borderColor: "#e034344d", buttonBgColor: "#E03434", }); @@ -2530,7 +2530,7 @@ // hideLoading(these); // these.showPop({ // message: ex.msg, - // iconUrl: "/static/images/6155/DeviceDetail/uploadErr.png", + // iconUrl: "/static/images/common/uploadErr.png", // borderColor: "#e034344d", // buttonBgColor: "#E03434", // }); @@ -2546,7 +2546,7 @@ this.showPop({ message: '无操作权限', - iconUrl: "/static/images/6155/DeviceDetail/uploadErr.png", + iconUrl: "/static/images/common/uploadErr.png", borderColor: "#e034344d", buttonBgColor: "#E03434", okCallback: null, @@ -2613,7 +2613,7 @@ } else { these.showPop({ message: res.msg, - iconUrl: "/static/images/6155/DeviceDetail/uploadErr.png", + iconUrl: "/static/images/common/uploadErr.png", borderColor: "#e034344d", buttonBgColor: "#E03434", }); diff --git a/pages/7305/BJQ7305.vue b/pages/7305/BJQ7305.vue index 2940bbd..32b4d38 100644 --- a/pages/7305/BJQ7305.vue +++ b/pages/7305/BJQ7305.vue @@ -620,7 +620,7 @@ if ('battary' in json && this.formData.battary <= 20) { this.showPop({ message: "设备电量低", - iconUrl: "/static/images/6155/DeviceDetail/uploadErr.png", + iconUrl: "/static/images/common/uploadErr.png", borderColor: "#e034344d", buttonBgColor: "#E03434", }); @@ -656,7 +656,7 @@ showBleUnConnect() { this.showPop({ message: "蓝牙未连接过该设备,请使用蓝牙重新添加该设备", - iconUrl: "/static/images/6155/DeviceDetail/uploadErr.png", + iconUrl: "/static/images/common/uploadErr.png", borderColor: "#e034344d", buttonBgColor: "#E03434", buttonText: '去连接', @@ -766,7 +766,7 @@ these.Status.BottomMenu.show = false; these.showPop({ message: "发送数据包失败了: " + err.msg, - iconUrl: "/static/images/6155/DeviceDetail/uploadErr.png", + iconUrl: "/static/images/common/uploadErr.png", borderColor: "#e034344d", buttonBgColor: "#E03434", }); @@ -931,7 +931,7 @@ this.showPop({ message: '无操作权限', - iconUrl: "/static/images/6155/DeviceDetail/uploadErr.png", + iconUrl: "/static/images/common/uploadErr.png", borderColor: "#e034344d", buttonBgColor: "#E03434", okCallback: null, @@ -951,7 +951,7 @@ this.showPop({ message: '无操作权限', - iconUrl: "/static/images/6155/DeviceDetail/uploadErr.png", + iconUrl: "/static/images/common/uploadErr.png", borderColor: "#e034344d", buttonBgColor: "#E03434", okCallback: null, @@ -1081,7 +1081,7 @@ }).catch((ex) => { these.showPop({ message: "发送失败," + ex.msg, - iconUrl: "/static/images/6155/DeviceDetail/uploadErr.png", + iconUrl: "/static/images/common/uploadErr.png", borderColor: "#e034344d", buttonBgColor: "#E03434", }); @@ -1183,7 +1183,7 @@ debugger; this.showPop({ message: '无操作权限', - iconUrl: "/static/images/6155/DeviceDetail/uploadErr.png", + iconUrl: "/static/images/common/uploadErr.png", borderColor: "#e034344d", buttonBgColor: "#E03434", okCallback: null, @@ -1209,7 +1209,7 @@ debugger; if (err) { this.showPop({ message: "单位、部门、姓名必须填写且最多5字", - iconUrl: "/static/images/6155/DeviceDetail/uploadErr.png", + iconUrl: "/static/images/common/uploadErr.png", borderColor: "#e034344d", buttonBgColor: "#E03434", }); @@ -1360,7 +1360,7 @@ debugger; } else { this.showPop({ message: "出现异常发送失败", - iconUrl: "/static/images/6155/DeviceDetail/uploadErr.png", + iconUrl: "/static/images/common/uploadErr.png", borderColor: "#e034344d", buttonBgColor: "#E03434", }); @@ -1407,7 +1407,7 @@ debugger; this.showPop({ message: '无操作权限', - iconUrl: "/static/images/6155/DeviceDetail/uploadErr.png", + iconUrl: "/static/images/common/uploadErr.png", borderColor: "#e034344d", buttonBgColor: "#E03434", okCallback: null, @@ -1439,7 +1439,7 @@ debugger; ble.sendData(f.deviceId, buffer, f.writeServiceId, f.wirteCharactId, 100).catch(ex => { these.showPop({ message: "发送失败," + ex.msg, - iconUrl: "/static/images/6155/DeviceDetail/uploadErr.png", + iconUrl: "/static/images/common/uploadErr.png", borderColor: "#e034344d", buttonBgColor: "#E03434", }); @@ -1488,7 +1488,7 @@ debugger; ble.sendData(f.deviceId, buffer, f.writeServiceId, f.wirteCharactId, 100).catch(ex => { these.showPop({ message: "发送失败," + ex.msg, - iconUrl: "/static/images/6155/DeviceDetail/uploadErr.png", + iconUrl: "/static/images/common/uploadErr.png", borderColor: "#e034344d", buttonBgColor: "#E03434", }); diff --git a/pages/common/addDevice/addBle.vue b/pages/common/addDevice/addBle.vue index 0063bf4..509d0b2 100644 --- a/pages/common/addDevice/addBle.vue +++ b/pages/common/addDevice/addBle.vue @@ -1,6 +1,22 @@ @@ -98,19 +117,41 @@ hideLoading, updateLoading } from '@/utils/loading.js' - import common from '@/utils/Common.js' + import common from '@/utils/Common.js' const pagePath = "pages/common/addBLE/addEquip"; + import { + MsgSuccess, + MsgError, + MsgClose, + MsgWarning, + showPop, + MsgClear + } from '@/utils/MsgPops.js'; + import MQTT from '@/utils/MqHelper.js'; + var ble = null; var these = null; var eventChannel = null; var time = null; var time1 = null; - // var serv = null; + var mq = null; export default { data() { return { Status: { intval: null, + pcAuthori: false, + navbar: { + icons: [ + + { + src: '/static/images/common/scane.png' + } + ], + title: '添加设备', + showBack: true, + height: 90 + } }, search: '', groupid: '', @@ -120,7 +161,8 @@ EquipMents: [], //搜索出来的设备 devices: [], devicesCnt: 0, - privateNetUrl: '' + privateNetUrl: '', + scanKey: '' } }, @@ -137,18 +179,30 @@ }, onUnload() { - ble.StopSearch().then(res => { - console.log("停止搜索成功") - }).catch(ex => { - console.error("停止搜索成功", ex); - }); - ble.removeAllCallback(pagePath); - ble.disconnectDevice(); + if (ble) { + ble.StopSearch().then(res => { + console.log("停止搜索成功") + }).catch(ex => { + console.error("停止搜索成功", ex); + }); + ble.removeAllCallback(pagePath); + ble.disconnectDevice(); + } + + + if (mq) { + mq.disconnect(); + } }, onLoad() { + these = this; + + + mq = MQTT.getMqTool(); + mq.init(); this.groupid = common.DateFormat(new Date(), 'yyyy-MM-dd HH:mm:ss'); - these = this; + ble = bleTool.getBleTool(); // serv = serTool.serverInit(); @@ -356,12 +410,13 @@ if (!arr[i].name) { continue; } - - - arr[i].name=arr[i].name.replace(/\r\n/g, '').replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g, ''); - - - + + + arr[i].name = arr[i].name.replace(/\r\n/g, '').replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g, + ''); + + + let f = these.EquipMents.find(function(v, index) { if (v.deviceId == arr[i].deviceId) { these.$set(these.EquipMents[index], "RSSI", arr[i].RSSI); @@ -381,7 +436,7 @@ } } - + these.sendEquipToMq(); // console.log("equip=", these.EquipMents) }, pagePath); // console.log("addEquip") @@ -403,6 +458,7 @@ console.log("111111"); } if (f.imei) { + f.imei = f.imei.replace(/\u0000/g, ''); item = this.EquipMents.find((v, index) => { if (v.deviceId == f.deviceId) { v.imei = f.imei; @@ -474,7 +530,7 @@ let callback = () => { these.getTypeDeviceCnt().then(res => { - console.error("设备数量:",res); + console.error("设备数量:", res); these.devicesCnt = res; if (res > 0 && res <= 10000) { these.getAlltypeDevices().then(devs => { @@ -490,10 +546,28 @@ }); } - + callback(); + + }); + + + + + setTimeout(()=>{ + MsgSuccess("如需要在PC上查看此数据,请复制链接后在PC端打开,然后点右上角扫码授权","复制链接",these,()=>{ + uni.setClipboardData({ + data:'https://static-mp-5b7c35fc-f6fe-4100-a2e1-3669e4d4bfc9.next.bspapp.com/AppTools/views/index.html', + success(){ + uni.showToast({ + title:'已复制链接' + }); + } + }); + }); + },500); }, onShow: function() { @@ -503,65 +577,87 @@ }, methods: { + prevPage() { + uni.navigateBack({ + + }); + }, + handleRightClick: function(s, e) { + + this.scan(); + }, + initWatch() { + this.$watch("devicesCnt", (newVal, oldVal) => { + const phone = uni.getStorageSync('phone'); + mq.sendData('pc/' + phone, JSON.stringify({ + devicesCnt: this.devicesCnt + }), false); + }); + + + + + + }, //获取某个类型下的所有设备 getAlltypeDevices() { return new Promise((succ, err) => { - - let json = { - "tenant_id": this.type.tenantId, - "deviceType": this.type.deviceTypeId - }; - - request({ - url: "/app/xinghan/device/getEquipAllByType", - method: 'POST', - data: json, - }).then(res=>{ - - if(res && res.code==200){ - - succ(res.data); - return; - } - err(res); - }).catch(ex=>{ - console.error("ex=",ex); - err(ex); - }); - + + let json = { + "tenant_id": this.type.tenantId, + "deviceType": this.type.deviceTypeId + }; + + request({ + url: "/app/xinghan/device/getEquipAllByType", + method: 'POST', + data: json, + }).then(res => { + + if (res && res.code == 200) { + + succ(res.data); + return; + } + err(res); + }).catch(ex => { + console.error("ex=", ex); + err(ex); + }); + }); }, //获取类型下的设备数量 getTypeDeviceCnt() { return new Promise((resolve, reject) => { - - - - - let json = { - "tenant_id": this.type.tenantId, - "deviceType": this.type.deviceTypeId - }; - console.error("json=",json); - - request({ - url: "/app/xinghan/device/getEquipCountByType", - method: 'POST', - data: json, - }).then(res=>{ - console.error("getEquipCountByType res.data=",res.data) - if(res && res.code==200){ - - resolve(res.data); - return; - } - reject(res); - }).catch(ex=>{ - console.error("ex=",ex); - reject(ex); - }); - - + + + + + let json = { + "tenant_id": this.type.tenantId, + "deviceType": this.type.deviceTypeId + }; + console.error("json=", json); + + request({ + url: "/app/xinghan/device/getEquipCountByType", + method: 'POST', + data: json, + }).then(res => { + console.error("getEquipCountByType res.data=", res.data) + if (res && res.code == 200) { + + resolve(res.data); + return; + } + reject(res); + }).catch(ex => { + console.error("ex=", ex); + reject(ex); + }); + + }); }, getDevice(item) { @@ -581,37 +677,40 @@ if (this.devicesCnt > 0) { if (this.devices && this.devices.length > 0) { let eqp = this.devices.find(v => { - let flag= v.bluetooth_name.replace(/\r\n/g, '').replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g, '') == item.name; - + let flag = v.bluetooth_name.replace(/\r\n/g, '').replace( + /^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g, '') == item.name; + return flag; - + }); if (eqp) { - + these.$set(these.EquipMents[fIndex], "isUpload", true); these.$set(these.EquipMents[fIndex], "remark", "校验完成,设备已入库"); these.$set(these.EquipMents[fIndex], "macAddress", eqp.device_mac); - these.$set(these.EquipMents[fIndex], "device_name",eqp.device_name); - console.log("从缓存中找到了设备",eqp); + these.$set(these.EquipMents[fIndex], "device_name", eqp.device_name); + console.log("从缓存中找到了设备", eqp); resolve(eqp); return; } } - console.error("缓存中找不到此设备22222222",this.devices); + // console.error("缓存中找不到此设备22222222", this.devices); these.$set(these.EquipMents[fIndex], "remark", "校验完成,设备未入库"); reject(null); + + these.sendEquipToMq(); return; } - - - - let succCallback=(data)=>{ - if(data){ + + + + let succCallback = (data) => { + if (data) { these.$set(these.EquipMents[fIndex], "isUpload", true); these.$set(these.EquipMents[fIndex], "remark", @@ -620,77 +719,176 @@ data.device_mac); these.$set(these.EquipMents[fIndex], "imei", data .device_imei); - these.$set(these.EquipMents[fIndex], "device_name",data.device_name); - } - else{ - console.error("设备未入库111111",data) + these.$set(these.EquipMents[fIndex], "device_name", data.device_name); + } else { + console.error("设备未入库111111", data) these.$set(these.EquipMents[fIndex], "remark", "校验完成,设备未入库"); } - + these.sendEquipToMq(); } - - let errCallback=()=>{ + + let errCallback = () => { these.$set(these.EquipMents[fIndex], "remark", "校验出现异常"); + + these.sendEquipToMq(); } - - - - - let p2=new Promise((resolve,reject)=>{ + + + + + let p2 = new Promise((resolve, reject) => { let json = { "tenant_id": this.type.tenantId, "deviceType": this.type.deviceTypeId, "deviceName": item.name }; - + request({ - url:'/app/xinghan/device/GetDeviceByName', - data:json, + url: '/app/xinghan/device/GetDeviceByName', + data: json, method: 'POST' - }).then(res=>{ - if(res && res.code==200){ - - - resolve(res.data); - return; - - + }).then(res => { + if (res && res.code == 200) { + + + resolve(res.data); + return; + + } - + reject(res); - }).catch(ex=>{ + }).catch(ex => { reject(ex); }); }) - - Promise.any([p2]).then(res=>{ + + Promise.any([p2]).then(res => { succCallback(res); - }).catch(ex=>{ + + }).catch(ex => { errCallback(ex); + }).finally(() => { + }); }); }, + scan() { + uni.scanCode({ + success: (res) => { + console.log('条码内容:' + res.result); + + + let getUrlParams = (url) => { + var p = {}, + s = (url.indexOf('?') > -1 ? url.split('?')[1] : '').split('&'); + for (var i = 0; i < s.length; i++) { + if (!s[i]) continue; + var kv = s[i].split('='); + p[decodeURIComponent(kv[0])] = kv[1] ? decodeURIComponent(kv[1].replace( + /\+/g, ' ')) : ''; + } + return p; + } + + let json = getUrlParams(res.result); + if (!json.key) { + uni.showModal({ + title: '错误', + content: "无效的二维码" + }) + return; + } + this.scanKey = json.key; + let msg = { + scanResult: '已扫码', + scanCode: 200 + }; + mq.sendData('pc/' + json.key, JSON.stringify(msg), false); + uni.showModal({ + title: '授权申请', + content: 'pc端授权登陆', + confirmText: '同意', + cancelText: '拒绝', + showCancel: true, + success(res) { + if (res.confirm) { + these.pcAuthori(json); + return; + } + if (res.cancel) { + msg.scanResult = "用户拒绝授权"; + msg.scanCode = 500; + mq.sendData('pc/' + json.key, JSON.stringify(msg), false); + } + }, + + }) + + + + }, + fail: (err) => { + console.log('扫码失败', err); + uni.showToast({ + title: '扫码失败', + icon: 'none' + }); + } + }); + }, + pcAuthori() { //同意授权 + const token = 'Bearer ' + uni.getStorageSync('token'); + const clientid = uni.getStorageSync('clientID'); + const phone = uni.getStorageSync('phone'); + let msg = { + scanResult: '用户同意授权', + scanUsr: phone, + scanCode: 0, + Authorization: token, + clientid: clientid, + }; + console.log("同意授权", msg); + this.Status.pcAuthori = true; + mq.sendData('pc/' + this.scanKey, JSON.stringify(msg), false); + + these.sendEquipToMq(); + + + }, + sendEquipToMq() { + if (mq && this.scanKey) { + const phone = uni.getStorageSync('phone'); + setTimeout(() => { + mq.sendData('pc/' + phone, JSON.stringify({ + EquipMents: this.EquipMents + }), false); + }, 500); + } + }, ReSearch() { if (!ble) { return; } - + ble.disconnectDevice().finally(dis => { - + ble.StopSearch().finally(res => { - + this.EquipMents = []; this.PairEquip = []; ble.StartSearch().then(result => { - + }).catch(err => { console.error("err=", err); + MsgError("出现错误:" + err.msg, '', these); }); }).catch(ex => { console.error("ex=", ex); + MsgError("出现错误:" + ex.msg, '', these); }); }); @@ -727,7 +925,7 @@ this.devices.push({ bluetooth_name: item.name, device_mac: item.macAddress, - device_name:item.name + device_name: item.name }); this.devicesCnt = this.devices.length; @@ -742,63 +940,31 @@ if (v.deviceId == item.deviceId) { this.$set(this.EquipMents[index], "isUpload", false); this.$set(this.EquipMents[index], "remark", res.msg); - - - this.devices.find((d,i)=>{ - if(d.device_mac==item.macAddress){ - - this.$set(this.EquipMents[index], "device_name", d.device_name); + + + this.devices.find((d, i) => { + if (d.device_mac == item.macAddress) { + + this.$set(this.EquipMents[index], "device_name", d + .device_name); return true; } }); - + return true; } return false; }); - + } - }) + }).catch(ex => {}).finally(() => { + these.sendEquipToMq(); + }); } time = setTimeout(exec, 100) }, - isItemLink: function(item, index, type) { - let src = '/static/images/BLEAdd/noLink.png'; - if (!item) { - - return src; - } - if (type == 'link') { - if (this.PairEquip && this.PairEquip.length) { - if (this.PairEquip.length > 0) { - let f = this.PairEquip.find(function(v) { - return v.deviceId == item.deviceId; - }); - if (f) { - src = '/static/images/BLEAdd/linked.png'; - } - } - - - } - } else if (type == 'mac') { - if (item.macAddress) { - src = '/static/images/BLEAdd/linked.png'; - } - } else if (type == 'imei') { - if (item.imei) { - src = '/static/images/BLEAdd/linked.png'; - } - } else if (type == 'upload') { - if (item.isUpload) { - src = '/static/images/BLEAdd/linked.png'; - } - } - - return src; - }, Link: function(item) { let exec = () => { @@ -865,6 +1031,8 @@ execLink().then((res) => { linkCallback(res); + + these.sendEquipToMq(); }).catch(ex => { console.log("ex=", ex) uni.showModal({ @@ -1042,6 +1210,7 @@ width: 100%; height: calc(100% - 186rpx); overflow-y: scroll; + margin-top: 120rpx; } .list .item { @@ -1253,6 +1422,16 @@ animation: rotateClockwise 3s linear infinite; } + .topStatric { + width: 100%; + box-sizing: border-box; + padding: 30rpx; + position: fixed; + top: 0rpx; + z-index: 99; + background-color: #121212; + } + /* #ifdef H5 */ .topStatric { @@ -1274,17 +1453,13 @@ margin-top: 240rpx; } + .topStatric { + top: 90rpx + } + /* #endif */ - .topStatric { - width: 100%; - box-sizing: border-box; - padding: 30rpx; - position: fixed; - top: 0rpx; - z-index: 99; - background-color: #121212; - } + .uni-mt-5 { background-color: #000000; @@ -1293,4 +1468,22 @@ .uni-easyinput__content { background-color: #121212 !important; } + + .navbarRight .img { + width: 35rpx; + height: 35rpx; + margin-right: 20rpx; + } + + .uni-navbar--fixed { + top: 0rpx; + } + + /deep/ .uni-navbar--fixed { + top: 0px; + } + + /deep/ .uni-navbar__placeholder { + display: none !important; + } \ No newline at end of file diff --git a/pages/common/audioManager/AudioList.vue b/pages/common/audioManager/AudioList.vue index 1015b47..9f8267d 100644 --- a/pages/common/audioManager/AudioList.vue +++ b/pages/common/audioManager/AudioList.vue @@ -872,7 +872,7 @@ these.Status.Pop.showPop = true; }, showMsg(msg, isSucc) { - let icoUrl = '/static/images/6155/DeviceDetail/uploadErr.png'; + let icoUrl = '/static/images/common/uploadErr.png'; let borderColor = "#e034344d"; let buttonBgColor = "#E03434"; if (isSucc) { diff --git a/pages/common/audioManager/Recording.vue b/pages/common/audioManager/Recording.vue index d960fc5..1eeb44f 100644 --- a/pages/common/audioManager/Recording.vue +++ b/pages/common/audioManager/Recording.vue @@ -1206,7 +1206,7 @@ if (okCallback === undefined) { okCallback = null; } - let icoUrl = '/static/images/6155/DeviceDetail/uploadErr.png'; + let icoUrl = '/static/images/common/uploadErr.png'; let borderColor = "#e034344d"; let buttonBgColor = "#E03434"; if (isSucc) { diff --git a/pages/common/user/logOff.vue b/pages/common/user/logOff.vue index 34ded02..628d251 100644 --- a/pages/common/user/logOff.vue +++ b/pages/common/user/logOff.vue @@ -2,7 +2,7 @@ - + 注销账号后账号将永久失效且不可恢复, diff --git a/static/images/6155/DeviceDetail/uploadErr.png b/static/images/common/uploadErr.png similarity index 100% rename from static/images/6155/DeviceDetail/uploadErr.png rename to static/images/common/uploadErr.png diff --git a/utils/MsgPops.js b/utils/MsgPops.js index 295ba05..fd61c84 100644 --- a/utils/MsgPops.js +++ b/utils/MsgPops.js @@ -1,11 +1,12 @@ var MsgType = { error: "error", succ: "succ", - warn: "warn" + warn: "warn", + info:'info' } var time = null; // 显示成功 -export const MsgSuccess = (msg, btnTxt, ev) => { +export const MsgSuccess = (msg, btnTxt, ev,tapCallback) => { if (!ev) { @@ -15,13 +16,13 @@ export const MsgSuccess = (msg, btnTxt, ev) => { return null; } - let option = ev.$refs.msgPop.showMsg(msg, btnTxt, MsgType.succ); + let option = ev.$refs.msgPop.showMsg(msg, btnTxt, MsgType.succ,tapCallback); createClear(ev); return option; } //显示失败 -export const MsgError = (msg, btnTxt, ev) => { +export const MsgError = (msg, btnTxt, ev,tapCallback) => { if (!ev) { @@ -32,12 +33,12 @@ export const MsgError = (msg, btnTxt, ev) => { return null; } - let option = ev.$refs.msgPop.showMsg(msg, btnTxt, MsgType.error); + let option = ev.$refs.msgPop.showMsg(msg, btnTxt, MsgType.error,tapCallback); createClear(ev); return option; } //显示警告 -export const MsgWarning = (msg, btnTxt, ev, isClear) => { +export const MsgWarning = (msg, btnTxt, ev, isClear,tapCallback) => { if (!ev) { return null; @@ -46,7 +47,7 @@ export const MsgWarning = (msg, btnTxt, ev, isClear) => { return null; } - let option = ev.$refs.msgPop.showMsg(msg, btnTxt, MsgType.warn); + let option = ev.$refs.msgPop.showMsg(msg, btnTxt, MsgType.warn,tapCallback); if (isClear === undefined || isClear) { createClear(ev); } @@ -55,7 +56,25 @@ export const MsgWarning = (msg, btnTxt, ev, isClear) => { } +//显示警告 +export const MsgInfo = (msg, btnTxt, ev, isClear,btnCallback) => { + if (!ev) { + return null; + } + if (!ev.$refs.msgPop) { + + return null; + } + let option = ev.$refs.msgPop.showMsg(msg, btnTxt, MsgType.info,btnCallback); + if (isClear === undefined || isClear) { + createClear(ev); + } + + return option; + + +} // 隐藏loading export const MsgClose = (options, ev) => { @@ -109,7 +128,7 @@ const createClear = (ev) => { showPop({ key: key, message: "消息太多, 是否全部关闭", - iconUrl: "/static/images/6155/DeviceDetail/uploadErr.png", + iconUrl: "/static/images/common/uploadErr.png", borderColor: "#e034344d", buttonBgColor: "#E03434", buttonText: '全部关闭',