diff --git a/pages/index/index.vue b/pages/index/index.vue index 57eb230..e677368 100644 --- a/pages/index/index.vue +++ b/pages/index/index.vue @@ -9,7 +9,15 @@ 切换楼盘 - 我的工牌 + + + 我的工牌:{{imeiCode||'未绑定'}} + + + + {{openFlag=='start'?'接待中':''}} + + @@ -59,7 +67,27 @@ - 设备 + 待处理 + + + {{equipmentobj.totalNum || 0}} + 接待即将结束 + + + {{equipmentobj.onlineNum || 0}} + 未标顾问 + + + {{equipmentobj.activeNum || 0}} + 违禁提醒 + + + {{equipmentobj.lowPowerNum || 0}} + 低电工牌 + + + + 设备总览 {{equipmentobj.totalNum || 0}} @@ -79,7 +107,7 @@ - + 实时统计 @@ -247,6 +275,8 @@ Whetheroffline: false, //是否离线 signalDevice: 0, //信号 signalDevicetext: "", + imeiCode:'',//设备号 + openFlag:'',//接待是否 audioStatus: false, equipmentisshow: false, equipmentobj: { @@ -489,6 +519,8 @@ if (data.data.data == null) { return } else { + this.imeiCode=data.data.data.imei + this.openFlag=data.data.data.recCmd if (data.data.data > 100) { this.percentage = 100; } else { @@ -499,7 +531,7 @@ this.percentage = data.data.data.electricity; this.signalDevice = data.data.data.signalDevice / 1; console.log(this.signalDevice) - this.audioStatus = data.data.data.audioStatus; + this.audioStatus = data.data.data.simAudioStatus; if (this.signalDevice > 80) { this.signalDevicetext = '高'; } else { @@ -740,7 +772,7 @@ background-image: url(../../static/images/battery.png); background-size: 100% 100%; padding: 8rpx; - + transform: rotate(-90deg); .bar { background-color: #43CD80; height: 100%; diff --git a/utils/domain.js b/utils/domain.js index b704e82..be77265 100644 --- a/utils/domain.js +++ b/utils/domain.js @@ -5,9 +5,9 @@ // const baseUrl = 'http://8kdmng.natappfree.cc/autoSR/api'; // 佳豪 // const baseUrl = 'http://192.168.31.134:9999/autoSR/api'; // 佳豪 -// const baseUrl = 'http://192.168.31.167:9999/autoSR/api'; // 长龙 +const baseUrl = 'http://192.168.31.167:9999/autoSR/api'; // 长龙 -const baseUrl = 'https://zanyong.hfju.com/autoSR/api';// 正式 +// const baseUrl = 'https://zanyong.hfju.com/autoSR/api';// 正式 @@ -26,11 +26,11 @@ const baseUrl = 'https://zanyong.hfju.com/autoSR/api';// 正式 // const host = 'http://8kdmng.natappfree.cc/autoSR/api'; // const hosts = 'http://8kdmng.natappfree.cc/'; -// const host = 'http://192.168.31.167:9999/autoSR/api'; // 长龙 -// const hosts = 'http://192.168.31.167:9999/'; // 长龙 +const host = 'http://192.168.31.167:9999/autoSR/api'; // 长龙 +const hosts = 'http://192.168.31.167:9999/'; // 长龙 -const host = 'https://zanyong.hfju.com/autoSR/api';//正式 -const hosts = 'https://zanyong.hfju.com/';//正式 +// const host = 'https://zanyong.hfju.com/autoSR/api';//正式 +// const hosts = 'https://zanyong.hfju.com/';//正式