diff --git a/.hbuilderx/launch.json b/.hbuilderx/launch.json index 7181f97..95fb682 100644 --- a/.hbuilderx/launch.json +++ b/.hbuilderx/launch.json @@ -2,12 +2,12 @@ "version" : "1.0", "configurations" : [ { - "playground" : "custom", + "playground" : "standard", "type" : "uni-app:app-ios" }, { "customPlaygroundType" : "local", - "playground" : "custom", + "playground" : "standard", "type" : "uni-app:app-android" }, { @@ -17,6 +17,9 @@ "default" : { "launchtype" : "local" }, + "h5" : { + "launchtype" : "local" + }, "provider" : "aliyun", "type" : "uniCloud" } diff --git a/App.vue b/App.vue index d01ee49..02cee52 100644 --- a/App.vue +++ b/App.vue @@ -212,4 +212,8 @@ font-family: "PingFangBold"; src: url("~@/static/fonts/PingFangBold.ttf") format("opentype"); } + @font-face { + font-family: "SongTi"; + src: url("~@/static/fonts/SongTi.ttf") format("opentype"); + } \ No newline at end of file diff --git a/components/BottomSlideMenuPlus/BottomSlideMenuPlus.vue b/components/BottomSlideMenuPlus/BottomSlideMenuPlus.vue index 22ffa0e..dc38f7b 100644 --- a/components/BottomSlideMenuPlus/BottomSlideMenuPlus.vue +++ b/components/BottomSlideMenuPlus/BottomSlideMenuPlus.vue @@ -15,7 +15,7 @@ - - - + + - {{headerTxt}} - - x - - - - {{ message }} - - - - - - - - {{ promptTitle || '请输入信息' }} - - - - - - {{ buttonCancelText?buttonCancelText:'取消' }} - - + {{headerTxt}} + + x + + + + {{ message }} + + + + + + + + {{ promptTitle || '请输入信息' }} + + + + + + {{ buttonCancelText?buttonCancelText:'取消' }} + + {{ buttonText }} - - - - - - - - + }" @click="handleButtonClick">{{ buttonText }} + + + + + + + + \ No newline at end of file diff --git a/components/MsgBox/MsgBox.vue b/components/MsgBox/MsgBox.vue index 77e99f1..8cefd65 100644 --- a/components/MsgBox/MsgBox.vue +++ b/components/MsgBox/MsgBox.vue @@ -1,57 +1,66 @@ - diff --git a/static/images/6331/jieN.png b/static/images/6331/jieN.png deleted file mode 100644 index 71d371d..0000000 Binary files a/static/images/6331/jieN.png and /dev/null differ diff --git a/static/images/6331/jieNActive.png b/static/images/6331/jieNActive.png deleted file mode 100644 index 4d00ec1..0000000 Binary files a/static/images/6331/jieNActive.png and /dev/null differ diff --git a/static/images/common/jig.png b/static/images/common/jig.png new file mode 100644 index 0000000..fbb5e19 Binary files /dev/null and b/static/images/common/jig.png differ diff --git a/static/images/common/jigA.png b/static/images/common/jigA.png new file mode 100644 index 0000000..09fed8d Binary files /dev/null and b/static/images/common/jigA.png differ diff --git a/static/images/common/sg.png b/static/images/common/sg.png new file mode 100644 index 0000000..6d8bf65 Binary files /dev/null and b/static/images/common/sg.png differ diff --git a/static/images/common/sgActive.png b/static/images/common/sgActive.png new file mode 100644 index 0000000..17a1d79 Binary files /dev/null and b/static/images/common/sgActive.png differ diff --git a/static/images/lightImg/closeLight.png b/static/images/lightImg/closeLight.png new file mode 100644 index 0000000..506ea9b Binary files /dev/null and b/static/images/lightImg/closeLight.png differ diff --git a/static/images/6155/DeviceDetail/fan.png b/static/images/lightImg/fan.png similarity index 100% rename from static/images/6155/DeviceDetail/fan.png rename to static/images/lightImg/fan.png diff --git a/static/images/670/jieN.png b/static/images/lightImg/jieN.png similarity index 100% rename from static/images/670/jieN.png rename to static/images/lightImg/jieN.png diff --git a/static/images/670/jieNActive.png b/static/images/lightImg/jieNActive.png similarity index 100% rename from static/images/670/jieNActive.png rename to static/images/lightImg/jieNActive.png diff --git a/static/images/6155/DeviceDetail/qiang.png b/static/images/lightImg/qiang.png similarity index 100% rename from static/images/6155/DeviceDetail/qiang.png rename to static/images/lightImg/qiang.png diff --git a/static/images/6155/DeviceDetail/ruo.png b/static/images/lightImg/ruo.png similarity index 100% rename from static/images/6155/DeviceDetail/ruo.png rename to static/images/lightImg/ruo.png diff --git a/static/images/6155/DeviceDetail/shan.png b/static/images/lightImg/shan.png similarity index 100% rename from static/images/6155/DeviceDetail/shan.png rename to static/images/lightImg/shan.png diff --git a/static/images/lightImg/sos.png b/static/images/lightImg/sos.png new file mode 100644 index 0000000..a961fd5 Binary files /dev/null and b/static/images/lightImg/sos.png differ diff --git a/static/images/lightImg/super.png b/static/images/lightImg/super.png new file mode 100644 index 0000000..0167f90 Binary files /dev/null and b/static/images/lightImg/super.png differ diff --git a/static/images/lightImg/warn.png b/static/images/lightImg/warn.png new file mode 100644 index 0000000..90dc68d Binary files /dev/null and b/static/images/lightImg/warn.png differ diff --git a/static/images/lightImg/work.png b/static/images/lightImg/work.png new file mode 100644 index 0000000..a236880 Binary files /dev/null and b/static/images/lightImg/work.png differ diff --git a/utils/BleHelper.js b/utils/BleHelper.js index c127d69..1124b62 100644 --- a/utils/BleHelper.js +++ b/utils/BleHelper.js @@ -1601,7 +1601,7 @@ class BleHelper { // console.log("正在连接" + deviceId); uni.createBLEConnection({ deviceId: deviceId, - timeout: 30000, + timeout: 15000, success: (info) => { //释放连接锁 diff --git a/utils/Common.js b/utils/Common.js index 3570666..f2b829c 100644 --- a/utils/Common.js +++ b/utils/Common.js @@ -218,31 +218,31 @@ export default { value: "1", label: "灯光模式", checked: false, - type: ['6170', '670','102','6155','650','7305'] + type: ['6170', '670','102','6155','650','7305','6075'] }, { value: "2", label: "激光模式", checked: false, - type: ['6170'] + type: ['6170','6075'] }, { value: "3", label: "开机画面", checked: false, - type: ['210', '6170', '670','6155','650','7305'] + type: ['210', '6170', '670','6155','650','7305','6075'] }, { value: "4", label: "人员信息登记", checked: false, - type: ['210', '6170', '670','6155','650','7305'] + type: ['210', '6170', '670','6155','650','7305','6075'] }, { value: "5", label: "发送信息", checked: false, - type: ['210', '6170', '670'] + type: ['210', '6170', '670','6075'] }, { value: "6", @@ -258,7 +258,7 @@ export default { value: "42", label: "SOS", checked: false, - type: ['670','4877'] + type: ['670','4877','6075'] }, { value: "43", diff --git a/utils/mqtt.js b/utils/mqtt.js index 2297fa2..e5554d1 100644 --- a/utils/mqtt.js +++ b/utils/mqtt.js @@ -281,7 +281,36 @@ class MqttClient { } } - publish(topic, message,retained) { + async publish(topic, message,retained) { + let getLan=()=>{ + return new Promise((succ,error)=>{ + uni.getNetworkType({ + success: (res) => { + let networkType = res.networkType; + // 判断网络是否连接 + if (networkType === 'none') { + console.error('无网络连接') + succ(false); + } else { + succ(true); + } + }, + fail: (err) => { + console.error('获取网络状态失败:', err); + + succ(false); + + } + }); + }); + + } + + let flag=await getLan(); + if(!flag){ + + return false; + } if (this.client && this.client.isConnected()) { const mqttMessage = new Paho.Message(message); mqttMessage.destinationName = topic;