diff --git a/common/http.interceptor.js b/common/http.interceptor.js
index dec621d..9c734f5 100644
--- a/common/http.interceptor.js
+++ b/common/http.interceptor.js
@@ -19,8 +19,8 @@ const install = (Vue, vm) => {
// },
// });
Vue.prototype.$u.http.setConfig({
- baseUrl: 'http://192.168.2.81:10002',
- // baseUrl: 'https://kg.chuangtewl.com/prod-api',
+ // baseUrl: 'http://192.168.2.81:10002',
+ baseUrl: 'https://kg.chuangtewl.com/prod-api',
// loadingText: '努力加载中~',
// loadingTime: 1000,
// 设置自定义头部content-type
diff --git a/page_components/bindsz.vue b/page_components/bindsz.vue
index aeb8c99..b2224cc 100644
--- a/page_components/bindsz.vue
+++ b/page_components/bindsz.vue
@@ -120,9 +120,9 @@
isMch: false,
taocan: '',
token: '',
- userImgs: 'https://api.ccttiot.com/FgwOJJPjHwS-5SsfCvIIuOPfh0A_',
+ userImgs: '',
url: '',
- modelid:''
+ modelid:[]
}
},
onLoad(option) {
@@ -182,20 +182,21 @@
this.$u.put('/app/device', data).then((res) => {
if (res.code == 200) {
this.getDevice()
- this.modelid.forEach(item => {
- if(item == 2){
- uni.navigateTo({
- url: '/page_components/bindsztwo?id=' + this.id
- })
- }else{
- uni.navigateTo({
- url:'/page_components/bindszthr?id=' + this.id
- })
- }
- })
+ if (this.modelid.some(item => item == 2)) {
+ console.log('wifi');
+ uni.navigateTo({
+ url: '/page_components/bindsztwo?id=' + this.id
+ });
+ } else {
+ console.log('4g');
+ uni.navigateTo({
+ url: '/page_components/bindszthr?id=' + this.id
+ });
+ }
}
})
}
+
},
btntiao() {
@@ -386,9 +387,7 @@
if (res.code == 200) {
this.listobj = res.data
this.xgname = this.listobj.deviceName
- if (res.data.customPicture) {
- this.userImgs = res.data.customPicture
- }
+ this.userImgs = res.data.picture
}
})
},
diff --git a/page_components/bindszthr.vue b/page_components/bindszthr.vue
index 02d8d3c..86a2e14 100644
--- a/page_components/bindszthr.vue
+++ b/page_components/bindszthr.vue
@@ -216,7 +216,7 @@
success: function(res) {
if (res.confirm) {
this.btnmsk = false
- uni.reLaunch({
+ uni.switchTab({
url:'/pages/index/index'
})
}
diff --git a/page_fenbao/device/joinDevice.vue b/page_fenbao/device/joinDevice.vue
index 7330f16..befe9ed 100644
--- a/page_fenbao/device/joinDevice.vue
+++ b/page_fenbao/device/joinDevice.vue
@@ -17,7 +17,6 @@
-
-
-
- 您的WiFi网络名称
-
+
+
+
+ MAC号:{{obj.mac == undefined ? '--' : obj.mac}}
+
+
+ 电压:{{obj.voltage == undefined ? '--' : obj.voltage}}V
+
+
+ 功率:{{obj.realTimePower == undefined ? '--' : obj.realTimePower}}KW
+
+
+ 电流:{{obj.electricity == undefined ? '--' : obj.electricity}}A
+
+
+ 网络:离线 在线
+
+
+ 状态:关闭 开启
+
+
+ 最后在线时间:{{obj.lastOnlineTime == undefined ? '--' : obj.lastOnlineTime}}
+
+
+
+
+
+ 开启
-
-
- 密码
-
+
+ 关闭
+
+
+ 刷新
-
- 连接
-
-
-
-
-
-
+
+ 返回录入
+
-
\ No newline at end of file
diff --git a/pages/index/index.vue b/pages/index/index.vue
index 1ff14ac..3bcc5f8 100644
--- a/pages/index/index.vue
+++ b/pages/index/index.vue
@@ -133,7 +133,7 @@
-
+
@@ -581,7 +581,7 @@
// })
this.shibaiflag = false
this.bluetoothflag = false
- uni.hideLoading();
+ uni.hideLoading()
uni.removeStorageSync('mac');
let systemInfo = uni.getSystemInfoSync()
if (systemInfo.platform == 'android') {
@@ -622,6 +622,7 @@
})
}
},
+
btnwifi(mac){
this.qrResult = mac
this.btnmsk = false
@@ -708,14 +709,12 @@
if (systemInfo.platform == 'android') {
// 当前设备是 Android
uni.navigateTo({
- url: '/page_components/wifilist/index?deviceId=' + this.deviceId +
- '&name=' + this.name
+ url: '/page_components/wifilist/index?deviceId=' + this.deviceId +'&name=' + this.name
})
} else if (systemInfo.platform == 'ios') {
// 当前设备是 iOS
uni.navigateTo({
- url: '/page_fenbao/device/wifivideo?deviceId=' + this.deviceId +
- '&name=' + this.name
+ url: '/page_fenbao/device/wifivideo?deviceId=' + this.deviceId +'&name=' + this.name
})
}
} else {
diff --git a/pages/shouye/index.vue b/pages/shouye/index.vue
index 5ec941f..a40282b 100644
--- a/pages/shouye/index.vue
+++ b/pages/shouye/index.vue
@@ -627,6 +627,7 @@
}
});
},
+
addMarkersWithLabels() {
this.listmap.forEach((item) => {
if (item.deviceCount !== null && item.deviceCount > 0) {