diff --git a/config/index.js b/config/index.js index a655ae5..e977462 100644 --- a/config/index.js +++ b/config/index.js @@ -6,7 +6,7 @@ const config = { API_PREFIX: '', // MQTT 配置 MQTT_HOST: '47.120.79.150', - MQTT_PORT: 8083, + MQTT_PORT: 9083, MQTT_USERNAME: 'admin', MQTT_PASSWORD: '#YtvpSfCNG' }, @@ -16,7 +16,7 @@ const config = { API_PREFIX: '', // MQTT 配置 MQTT_HOST: '47.120.79.150', - MQTT_PORT: 8083, + MQTT_PORT: 9083, MQTT_USERNAME: 'admin', MQTT_PASSWORD: '#YtvpSfCNG' } diff --git a/pages.json b/pages.json index 945622f..0f32fea 100644 --- a/pages.json +++ b/pages.json @@ -1,197 +1,222 @@ { - "pages": [ - - - { - "path": "pages/common/login/index", - "style": { - "navigationStyle": "custom" - } - }, - - - - - { - "path": "pages/common/index/index", - "style": { - "navigationStyle": "custom" - } - }, - { - "path": "pages/common/user/index", - "style": { - "navigationBarTitleText": "我的" - } - }, - { - "path": "pages/common/scan/scan", - "style": { - "navigationBarTitleText": "扫描" - } - }, - { - "path": "pages/common/qrcode/qrcode", - "style": { - "navigationBarTitleText": "扫描到的设备" - } - }, - { - "path": "pages/common/send/index", - "style": { - "navigationBarTitleText": "发送信息" - } - }, - { - "path": "pages/common/userAgreement/index", - "style": { - "navigationBarTitleText": "用户协议" - } - }, - { - "path": "pages/common/privacyAgreement/index", - "style": { - "navigationBarTitleText": "隐私协议" - } - }, - { - "path": "pages/common/aboutUs/index", - "style": { - "navigationBarTitleText": "关于我们" - } - }, - { - "path": "pages/6170/deviceControl/index", - "style": { - "navigationStyle": "custom" - } - }, - { - "path": "pages/common/operationVideo/index", - "style": { - "navigationStyle": "custom" - } - }, - { - "path": "pages/common/addvideo/index", - "style": { - "navigationStyle": "custom" - } - }, - // 操作说明 - { - "path": "pages/common/operatingInstruct/index", - "style": { - "navigationStyle": "custom" - } - }, - // 产品说明 - { - "path": "pages/common/productDes/index", - "style": { - "navigationStyle": "custom" - } - }, - { - "path" : "pages/common/addBLE/addEquip", - "style" : - { - "navigationBarTitleText" : "添加设备" - } - }, - { - "path" : "pages/common/addBLE/LinkBle", - "style" : - { - "navigationBarTitleText" : "扫描到的设备" - } - }, - { - "path" : "pages/6155/deviceDetail", - "style" : - { - "navigationBarTitleText" : "HBY 6155" - } - }, - { - "path" : "pages/6155/ImgCrop", - "style" : - { - "navigationBarTitleText" : "图像裁剪", - "navigationStyle": "custom", - "fullscreen": true - } - }, - { - "path" : "pages/650/HBY650", - "style" : - { - "navigationBarTitleText" : "HBY650" - } - }, - { - "path": "pages/common/map/index", - "style": { - "navigationBarTitleText": "地图" - } - }, - { - "path": "pages/common/allType/index", - "style": { - "navigationBarTitleText": "所有类型" - } - }, - { - "path": "pages/6170/allShare/index", - "style": { - "navigationBarTitleText": "所有分享" - } - }, - - { - "path": "pages/6170/share/index", - "style": { - "navigationBarTitleText": "分享" - } - }, - { - "path": "pages/6170/shareDevices/index", - "style": { - "navigationBarTitleText": "分享设备" - } - }, - { - "path": "pages/6170/shareManagement/index", - "style": { - "navigationBarTitleText": "分享管理" - } - } - - - ], - "tabBar": { - "color": "#fff", - "selectedColor": "#BBE600", - "backgroundColor": "#202020", - "list": [{ - "pagePath": "pages/common/index/index", - "text": "我的设备", - "iconPath": "/static/tabs/device.png", - "selectedIconPath": "/static/tabs/device-HL.png" - }, - { - "pagePath": "pages/common/user/index", - "text": "我的", - "iconPath": "/static/tabs/my.png", - "selectedIconPath": "/static/tabs/my-HL.png" - } - ] - }, - "globalStyle": { - "navigationBarTextStyle": "white", - "navigationBarTitleText": "uni-app", - "navigationBarBackgroundColor": "#121212", - "backgroundColor": "#121212" - }, - "uniIdRouter": {} + "pages": [ + { + "path": "pages/common/login/index", + "style": { + "navigationStyle": "custom" + } + }, + { + "path": "pages/common/index/index", + "style": { + "navigationStyle": "custom", + "enablePullDownRefresh": true + } + }, + { + "path": "pages/common/user/index", + "style": { + "navigationBarTitleText": "我的" + } + }, + { + "path": "pages/common/scan/scan", + "style": { + "navigationBarTitleText": "扫描" + } + }, + { + "path": "pages/common/qrcode/qrcode", + "style": { + "navigationBarTitleText": "扫描到的设备" + } + }, + { + "path": "pages/common/send/index", + "style": { + "navigationBarTitleText": "发送信息", + "enablePullDownRefresh": true + } + }, + { + "path": "pages/common/userAgreement/index", + "style": { + "navigationBarTitleText": "用户协议" + } + }, + { + "path": "pages/common/privacyAgreement/index", + "style": { + "navigationBarTitleText": "隐私协议" + } + }, + { + "path": "pages/common/aboutUs/index", + "style": { + "navigationBarTitleText": "关于我们" + } + }, + { + "path": "pages/6170/deviceControl/index", + "style": { + "navigationStyle": "custom" + } + }, + { + "path": "pages/6170/callPolice/index", + "style": { + "navigationBarTitleText": "报警" + } + }, + { + "path": "pages/210/deviceControl/index", + "style": { + "navigationStyle": "custom" + } + }, + { + "path": "pages/common/operationVideo/index", + "style": { + "navigationStyle": "custom" + } + }, + { + "path": "pages/common/addvideo/index", + "style": { + "navigationStyle": "custom" + } + }, + // 操作说明 + { + "path": "pages/common/operatingInstruct/index", + "style": { + "navigationStyle": "custom" + } + }, + // 产品说明 + { + "path": "pages/common/productDes/index", + "style": { + "navigationStyle": "custom" + } + }, + { + "path": "pages/common/addBLE/addEquip", + "style": { + "navigationBarTitleText": "添加设备" + } + }, + { + "path": "pages/common/addBLE/LinkBle", + "style": { + "navigationBarTitleText": "扫描到的设备" + } + }, + { + "path": "pages/6155/deviceDetail", + "style": { + "navigationBarTitleText": "HBY 6155" + } + }, + { + "path": "pages/6155/ImgCrop", + "style": { + "navigationBarTitleText": "图像裁剪", + "navigationStyle": "custom", + "fullscreen": true + } + }, + { + "path": "pages/650/HBY650", + "style": { + "navigationBarTitleText": "HBY650" + } + }, + { + "path": "pages/common/map/index", + "style": { + "navigationBarTitleText": "地图" + } + }, + { + "path": "pages/common/allType/index", + "style": { + "navigationBarTitleText": "所有类型" + } + }, + { + "path": "pages/6170/allShare/index", + "style": { + "navigationBarTitleText": "所有分享" + } + }, + { + "path": "pages/6170/share/index", + "style": { + "navigationBarTitleText": "分享" + } + }, + { + "path": "pages/6170/shareDevices/index", + "style": { + "navigationBarTitleText": "分享设备" + } + }, + { + "path": "pages/6170/shareManagement/index", + "style": { + "navigationBarTitleText": "分享管理" + } + }, + { + "path": "pages/210/onlineDevice/index", + "style": { + "navigationBarTitleText": "联机设备" + } + }, + { + "path": "pages/210/addDevice/index", + "style": { + "navigationBarTitleText": "添加联机设备" + } + }, + { + "path": "pages/210/historyRecords/index", + "style": { + "navigationBarTitleText": "历史记录" + } + }, + { + "path": "pages/210/call/index", + "style": { + "navigationBarTitleText": "呼叫" + } + } + ], + "tabBar": { + "color": "#fff", + "selectedColor": "#BBE600", + "backgroundColor": "#202020", + "list": [ + { + "pagePath": "pages/common/index/index", + "text": "我的设备", + "iconPath": "/static/tabs/device.png", + "selectedIconPath": "/static/tabs/device-HL.png" + }, + { + "pagePath": "pages/common/user/index", + "text": "我的", + "iconPath": "/static/tabs/my.png", + "selectedIconPath": "/static/tabs/my-HL.png" + } + ] + }, + "globalStyle": { + "navigationBarTextStyle": "white", + "navigationBarTitleText": "uni-app", + "navigationBarBackgroundColor": "#121212", + "backgroundColor": "#121212" + }, + "uniIdRouter": {} } \ No newline at end of file diff --git a/pages/6170/allShare/index.vue b/pages/6170/allShare/index.vue index bb6a4ef..cc0307e 100644 --- a/pages/6170/allShare/index.vue +++ b/pages/6170/allShare/index.vue @@ -249,14 +249,10 @@ }, onLoad() { this.onIntall() - // 绑定页面做了监听,新增成功,刷新页面 - uni.$on('refreshDeviceList', () => { - this.onIntall() - }); }, beforeDestroy() { // 组件销毁前移除监听器 - uni.$off('refreshDeviceList'); + }, } diff --git a/pages/6170/callPolice/index.vue b/pages/6170/callPolice/index.vue index 1b34bd6..99f4a2e 100644 --- a/pages/6170/callPolice/index.vue +++ b/pages/6170/callPolice/index.vue @@ -3,9 +3,10 @@ 全选 - + - + @@ -15,13 +16,13 @@ - 设备:{{item.deviceName}} + 设备:{{ item.deviceName }} - ID:{{item.deviceImei}} - 在线 + ID:{{ item.deviceImei }} + 在线 - 离线 - 电量:{{item.battery || '0'}}% + 离线 + 电量:{{ item.battery || '0' }}% @@ -46,368 +47,448 @@ \ No newline at end of file diff --git a/pages/6170/deviceControl/index.vue b/pages/6170/deviceControl/index.vue index 6fe0ff0..8ed74fe 100644 --- a/pages/6170/deviceControl/index.vue +++ b/pages/6170/deviceControl/index.vue @@ -269,311 +269,336 @@ \ No newline at end of file diff --git a/pages/common/send/index.vue b/pages/common/send/index.vue index 34806e3..5d35263 100644 --- a/pages/common/send/index.vue +++ b/pages/common/send/index.vue @@ -2,9 +2,9 @@ - + - + @@ -14,15 +14,13 @@ - 设备:{{item.deviceName}} + 设备:{{ item.deviceName }} - ID:{{item.deviceImei}} - 在线 + ID:{{ item.deviceImei }} + 在线 - 离线 - 电量:{{item.battery || '0'}}% + 离线 + 电量:{{ item.battery || '0' }}% @@ -32,14 +30,15 @@ 编辑信息