diff --git a/common/http.interceptor.js b/common/http.interceptor.js
index ee2efcb..e380dc0 100644
--- a/common/http.interceptor.js
+++ b/common/http.interceptor.js
@@ -1,7 +1,7 @@
const install = (Vue, vm) => {
uni.setStorageSync('deptId', 100);
Vue.prototype.$u.http.setConfig({
- // baseUrl: 'http://192.168.2.19:4101', //键辉本地
+ // baseUrl: 'http://192.168.2.19:4101', //键辉本地
// baseUrl: 'http://192.168.0.102:4101', //景森本地
baseUrl: 'https://ele.ccttiot.com/prod-api', //线上
// baseUrl: 'https://cc.ccttiot.com/prod-api', //叉车线上
diff --git a/components/blufi/xBlufi-wx-impl.js b/components/blufi/xBlufi-wx-impl.js
index 3ccdba0..94f5a30 100644
--- a/components/blufi/xBlufi-wx-impl.js
+++ b/components/blufi/xBlufi-wx-impl.js
@@ -1272,7 +1272,7 @@ function init() {
if (isnotexist) {
devicesList.push(devices.devices[0]);
- console.log("devicesList",devicesList);
+ // console.log("devicesList",devicesList);
// let obj = {
// 'type': mDeviceEvent.XBLUFI_TYPE.TYPE_GET_DEVICE_LISTS,
// 'result': true,
@@ -1295,7 +1295,7 @@ function init() {
if (isnotexist) {
devicesList.push(devices[0]);
- console.log("devicesList",devicesList);
+ // console.log("devicesList",devicesList);
// let obj = {
// 'type': mDeviceEvent.XBLUFI_TYPE.TYPE_GET_DEVICE_LISTS,
// 'result': true,
diff --git a/components/blufi/xBlufi.js b/components/blufi/xBlufi.js
index e37b58b..7819e77 100644
--- a/components/blufi/xBlufi.js
+++ b/components/blufi/xBlufi.js
@@ -176,7 +176,7 @@ function listenSendRouterSsidAndPassword(isSetListener, funtion) {
function notifySendCustomData(options) {
- console.log("设备数据",options)
+ // console.log("设备数据",options)
mOnFire.fire(OnFireEvent.EVENT_NOFITY_SEND_CUSTON_DATA, options);
}
/**
diff --git a/page_fenbao/storedlist/trueorder.vue b/page_fenbao/storedlist/trueorder.vue
index 1f09e9a..07d47c0 100644
--- a/page_fenbao/storedlist/trueorder.vue
+++ b/page_fenbao/storedlist/trueorder.vue
@@ -507,6 +507,10 @@
},
onLoad(option) {
xBlufi.initXBlufi(1)
+ xBlufi.notifyStartDiscoverBle({
+ 'isStart': true
+ })
+ xBlufi.listenDeviceMsgEvent(true, this.funListenDeviceMsgEvent)
this.$u.get("/app/orderDevice/mineUsing").then((res) => {
if (res.code == 200) {
if (res.data) {
@@ -677,15 +681,21 @@
},1500)
},
onShow() {
- xBlufi.notifyConnectBle({
- isStart: false,
- deviceId: this.deviceId,
- name: this.name
- })
+
+ },
+ onHide() {
xBlufi.notifyStartDiscoverBle({
- 'isStart': true
+ 'isStart': false
})
- xBlufi.listenDeviceMsgEvent(true, this.funListenDeviceMsgEvent)
+ xBlufi.listenDeviceMsgEvent(false, this.funListenDeviceMsgEvent)
+ console.log('likai00');
+ },
+ onUnload() {
+ xBlufi.notifyStartDiscoverBle({
+ 'isStart': false
+ })
+ xBlufi.listenDeviceMsgEvent(false, this.funListenDeviceMsgEvent)
+ console.log('likai11');
},
methods: {
getQiniuToken() {
@@ -879,7 +889,7 @@
// 判断离线连接蓝牙
findDevice() {
// 使用 find 方法查找匹配的设备
- console.log(this.devicesarr);
+ // console.log(this.devicesarr);
const matchedDevice = this.devicesarr.find(device => {
// console.log(device.name, this.mac, '111')
return device.name.slice(-12) == this.mac.slice(-12)
diff --git a/page_shanghu/guanli/device_detail.vue b/page_shanghu/guanli/device_detail.vue
index e7c7b12..3039013 100644
--- a/page_shanghu/guanli/device_detail.vue
+++ b/page_shanghu/guanli/device_detail.vue
@@ -17,40 +17,45 @@
mode="">
-->
-
+
-
-
- 车牌:{{deviceInfos.vehicleNum == null ? '--' : deviceInfos.vehicleNum}}
+
+
+ 车牌:{{deviceInfos.vehicleNum == null ? '--' : deviceInfos.vehicleNum}}
-
+
+
-
+
+
-
+
+
-
+
-
+
+
-
-
+
+
@@ -67,12 +72,13 @@
锁已关
-
+
锁已开
-
+
SN:{{deviceInfos.sn == null ? '--' : deviceInfos.sn}}
@@ -86,30 +92,43 @@
-
-
-
-
+
+
+
+
- 电量:{{deviceInfos.remainingPower == null ? '--' : deviceInfos.remainingPower.toFixed(1)}}%
+ 电量:{{deviceInfos.remainingPower == null ? '--' : deviceInfos.remainingPower.toFixed(1)}}%
- 电压:{{deviceInfos.voltage == null ? '--' : deviceInfos.voltage.toFixed(1)}}V
+ 电压:{{deviceInfos.voltage == null ? '--' : deviceInfos.voltage.toFixed(1)}}V
- 续航:{{deviceInfos.remainEndurance == null ? '--' : deviceInfos.remainEndurance}} km
+
+ 续航:{{deviceInfos.remainEndurance == null ? '--' : deviceInfos.remainEndurance}}
+ km
- 轨迹
+
+ 轨迹
- 导航
+
+ 导航
@@ -132,7 +151,9 @@
响铃寻车
-
+
@@ -192,7 +213,7 @@
声音
-
+
@@ -247,28 +268,36 @@
运营区域:{{deviceInfos.areaName == null ? '--' : deviceInfos.areaName}}
- 最后租车客户: {{deviceInfos.orderUserPhone == null ? '--' : deviceInfos.orderUserPhone}}
+ 最后租车客户:
+
+ {{deviceInfos.orderUserPhone == null ? '--' : deviceInfos.orderUserPhone}}
+
- 最后租车订单: {{deviceInfos.orderNo == null ? '--' : deviceInfos.orderNo}}
+ 最后租车订单: {{deviceInfos.orderNo == null ? '--' : deviceInfos.orderNo}}
- 最后用车时间: 使用中 {{deviceInfos.orderDeviceEndTime == null ? '--' : deviceInfos.orderDeviceEndTime}}
+ 最后用车时间: 使用中 {{deviceInfos.orderDeviceEndTime == null ? '--' : deviceInfos.orderDeviceEndTime}}
- 最后定位时间: {{deviceInfos.satellites == null ? '--' : deviceInfos.satellites}}
+ 最后定位时间:
+ {{deviceInfos.satellites == null ? '--' : deviceInfos.satellites}}
{{deviceInfos.lastLocationTime == null ? '--' : deviceInfos.lastLocationTime}}
- 最后在线时间: {{deviceInfos.signalStrength == null ? '--' : deviceInfos.signalStrength}}
+ 最后在线时间:
+ {{deviceInfos.signalStrength == null ? '--' : deviceInfos.signalStrength}}
{{deviceInfos.lastOnlineTime == null ? '--' : deviceInfos.lastOnlineTime}}
- 手机定位时间: {{deviceInfos.mobileLocationTime == null ? '--' : deviceInfos.mobileLocationTime}}
+ 手机定位时间:
+ {{deviceInfos.mobileLocationTime == null ? '--' : deviceInfos.mobileLocationTime}}
@@ -332,7 +361,7 @@
-
+
@@ -343,21 +372,24 @@
-
+
静音模式
将模块所有声音全部设为静音
-
+
语音模式
将模块所有声音设为语音播报
-
+
@@ -370,7 +402,9 @@