补充图片
This commit is contained in:
+15
-9
@@ -76,17 +76,23 @@ Page({
|
||||
|
||||
// 添加设备
|
||||
openSearchDevice() {
|
||||
let token = this.data.token;
|
||||
let userInfo = this.data.userInfo;
|
||||
if (token && userInfo) {
|
||||
// let token = this.data.token;
|
||||
// let userInfo = this.data.userInfo;
|
||||
// if (token && userInfo) {
|
||||
wx.navigateTo({
|
||||
url: "/pages/searchDevice/searchDevice"
|
||||
})
|
||||
} else {
|
||||
wx.showToast({
|
||||
icon: "none",
|
||||
title: "请先登录"
|
||||
})
|
||||
}
|
||||
// } else {
|
||||
// wx.showToast({
|
||||
// icon: "none",
|
||||
// title: "请先登录"
|
||||
// })
|
||||
// }
|
||||
},
|
||||
|
||||
openDeviceInfo() {
|
||||
wx.navigateTo({
|
||||
url: "/pages/deviceInfo/deviceInfo"
|
||||
})
|
||||
}
|
||||
})
|
||||
Reference in New Issue
Block a user