|
@ -167,15 +167,17 @@ Page({ |
|
|
* 生命周期函数--监听页面加载 |
|
|
* 生命周期函数--监听页面加载 |
|
|
*/ |
|
|
*/ |
|
|
onLoad: function (options) { |
|
|
onLoad: function (options) { |
|
|
|
|
|
console.log("onLoad"); |
|
|
app.globalData.zgBlueStatus = false |
|
|
app.globalData.zgBlueStatus = false |
|
|
this.AddressPermissions() |
|
|
this.AddressPermissions() |
|
|
this.getLocationPermissionMethods() |
|
|
this.getLocationPermissionMethods() |
|
|
let deviceinfo = wx.getStorageSync('deviceinfo') |
|
|
let deviceinfo = wx.getStorageSync('deviceinfo') |
|
|
app.globalData.deviceNum = deviceinfo.deviceNum |
|
|
app.globalData.deviceNum = deviceinfo.deviceNum |
|
|
var userInfo1 = wx.getStorageSync('userInfo') |
|
|
var userInfo1 = wx.getStorageSync('userInfo') |
|
|
|
|
|
console.log(123123); |
|
|
let deviceinfoData = JSON.parse(JSON.stringify(deviceinfo)) |
|
|
let deviceinfoData = JSON.parse(JSON.stringify(deviceinfo)) |
|
|
console.log(deviceinfoData); |
|
|
console.log(deviceinfoData); |
|
|
if(deviceinfoData.bluetoothMac){ |
|
|
|
|
|
|
|
|
if(deviceinfoData.bluetoothMac && (deviceinfoData.manufactureId == 1201 || deviceinfoData.manufactureId == 1241)){ |
|
|
let superAdmin = [] |
|
|
let superAdmin = [] |
|
|
var superAdminIdlist = deviceinfoData.bluetoothMac.slice(deviceinfoData.bluetoothMac.length - 11, deviceinfoData.bluetoothMac.length).split(":").join("") |
|
|
var superAdminIdlist = deviceinfoData.bluetoothMac.slice(deviceinfoData.bluetoothMac.length - 11, deviceinfoData.bluetoothMac.length).split(":").join("") |
|
|
for (let i = 0; i < superAdminIdlist.length; i++) { |
|
|
for (let i = 0; i < superAdminIdlist.length; i++) { |
|
|