diff --git a/common/http.interceptor.js b/common/http.interceptor.js index 01c029b..9898003 100644 --- a/common/http.interceptor.js +++ b/common/http.interceptor.js @@ -22,10 +22,10 @@ const install = (Vue, vm) => { uni.setStorageSync('deptId', 100); Vue.prototype.$u.http.setConfig({ // baseUrl: 'http://61.174.243.28:15861', - baseUrl: 'http://192.168.2.46:8080', + // baseUrl: 'http://192.168.2.46:8080', // baseUrl: 'http://124.221.246.124:2289', // baseUrl: 'https://dianche.chuantewulian.cn/prod-api', - // baseUrl: 'https://dche.ccttiot.com/prod-api', + baseUrl: 'https://dche.ccttiot.com/prod-api', loadingText: '努力加载中~', loadingTime: 50000, @@ -52,9 +52,9 @@ const install = (Vue, vm) => { // 方式四,如果token放在了Storage本地存储中,拦截是每次请求都执行的 // 所以哪怕您重新登录修改了Storage,下一次的请求将会是最新值 - // const token = uni.getStorageSync('token'); + const token = uni.getStorageSync('token'); - const token = "Bearer eyJhbGciOiJIUzUxMiJ9.eyJsb2dpbl91c2VyX2tleSI6IjQ0ZDljYzBlLThjZjEtNGFkOC05OGFjLThlNThjMWIxYjQ3OSJ9.v-aMkp9t7Z_QfjfsZy6d_1Ng76hPYa0A--SWScMJY9to7UlNv9IxHQnTJylLKdYKGrr8fRZ47Bu12UPm1DgMQg" + // const token = "Bearer eyJhbGciOiJIUzUxMiJ9.eyJsb2dpbl91c2VyX2tleSI6IjQ0ZDljYzBlLThjZjEtNGFkOC05OGFjLThlNThjMWIxYjQ3OSJ9.v-aMkp9t7Z_QfjfsZy6d_1Ng76hPYa0A--SWScMJY9to7UlNv9IxHQnTJylLKdYKGrr8fRZ47Bu12UPm1DgMQg" // console.log("我是token", token) config.header.Authorization = token; diff --git a/pages/bind_mac.vue b/pages/bind_mac.vue index a0873f1..0691464 100644 --- a/pages/bind_mac.vue +++ b/pages/bind_mac.vue @@ -2,59 +2,61 @@ - - - - - - - + + + + + + + - + - - 版本: 版本id: + + 版本:{{hardwareInfo.version}} 版本id:{{hardwareInfo.id}} + + + 请点击选择版本 - - - 版本介绍: + + 版本介绍:{{hardwareInfo.instructions}} - + 确认添加 - - - + + + 蓝牙链接 - + 响铃寻车 - - + + 蓝牙开锁 - + 蓝牙关锁 - + 设备重启 - + 接口响铃 - + @@ -321,7 +321,7 @@ 换车骑行 - + { - + if (!that.orderinfo.status) { that.deviceInfo(1) that.qParam = null @@ -1244,13 +1244,13 @@ // this.showtcs=true } }, 700) - - + + } } // that.getmarks() - - + + // }, fail: function(error) { @@ -1262,19 +1262,19 @@ // that.getmarks() // 在这里处理获取位置信息失败的情况 } - + }) - - - - + + + + // console.log('有网络连接');\ - + } } }); - - + + } else { @@ -4354,7 +4354,9 @@ this.gps.sn = this.sn } } - + if (this.sn != '') { + this.gps.sn = this.sn + } setTimeout(() => { this.setMapScale() }, 300) @@ -4811,10 +4813,17 @@ duration: 4000 }); } else if (this.deviceInfos.status == 1) { + + if (this.areaId != res.data.areaId) { + this.getArea() + } // this.routePlanning(res.data.latitude, res.data.longitude) - this.showdevice = true - this.type = 1; - this.deviceIndex = 1; + setTimeout(() => { + this.showdevice = true + this.type = 1; + this.deviceIndex = 1; + }, 500) + } } } else { @@ -4937,9 +4946,16 @@ // this.routePlanning(res.data // .latitude, res.data // .longitude) - this.showdevice = true; - this.type = 1; - this.deviceIndex = 1; + if (this.areaId != res.data + .areaId) { + this.getArea() + } + // this.routePlanning(res.data.latitude, res.data.longitude) + setTimeout(() => { + this.showdevice = true + this.type = 1; + this.deviceIndex = 1; + }, 500) } } } else { @@ -6241,6 +6257,7 @@ box-shadow: 0rpx 10rpx 64rpx 0rpx rgba(0, 0, 0, 0.08), 0rpx 10rpx 64rpx 0rpx rgba(0, 0, 0, 0.08); border-radius: 0rpx 0rpx 0rpx 0rpx; padding-top: 30rpx; + .changebiketip { bottom: 40rpx; left: 320rpx; @@ -6252,6 +6269,7 @@ font-size: 28rpx; color: #3D3D3D; } + .btn { display: flex; justify-content: center; diff --git a/pages/login/login.vue b/pages/login/login.vue index c4dac13..31edcc8 100644 --- a/pages/login/login.vue +++ b/pages/login/login.vue @@ -18,7 +18,7 @@ --> - +