@@ -291,10 +291,12 @@ Page({ | |||||
}, | }, | ||||
onShow: function() { | onShow: function() { | ||||
this.ifShowSqare(); | this.ifShowSqare(); | ||||
var temp = wx.getStorageSync("squareList").filter(item => item.tenantId == wx.getStorageSync("selectedMall"))[0].name | |||||
this.setData({ | |||||
squareName: temp | |||||
}) | |||||
if (wx.getStorageSync("squareList")) { | |||||
var temp = wx.getStorageSync("squareList").filter(item => item.tenantId == wx.getStorageSync("selectedMall"))[0].name | |||||
this.setData({ | |||||
squareName: temp | |||||
}) | |||||
} | |||||
if (typeof this.getTabBar === 'function' && | if (typeof this.getTabBar === 'function' && | ||||
this.getTabBar()) { | this.getTabBar()) { | ||||
this.getTabBar().setData({ | this.getTabBar().setData({ | ||||
@@ -182,7 +182,7 @@ Page({ | |||||
}) | }) | ||||
.catch(err => { | .catch(err => { | ||||
wx.showToast({ | wx.showToast({ | ||||
title: "请授权手机号", | |||||
title: err.message, | |||||
icon: 'none', | icon: 'none', | ||||
duration: 2000, | duration: 2000, | ||||
mask: false | mask: false | ||||
@@ -201,7 +201,7 @@ | |||||
.nav { | .nav { | ||||
position: absolute; | position: absolute; | ||||
bottom: -70%; | |||||
bottom: -130%; | |||||
left: 0; | left: 0; | ||||
right: 0; | right: 0; | ||||
margin: auto; | margin: auto; | ||||
@@ -103,12 +103,14 @@ Page({ | |||||
loading: false, | loading: false, | ||||
}) | }) | ||||
res.data.roomInfos.map((item,index)=>{ | res.data.roomInfos.map((item,index)=>{ | ||||
console.log(parseInt(item.startTime)) | |||||
item.startTimeStr = format.formatTime( | item.startTimeStr = format.formatTime( | ||||
item.startTime, | |||||
parseInt(item.startTime+"000"), | |||||
"MM-dd hh:mm" | "MM-dd hh:mm" | ||||
); | ); | ||||
item.endTimeStr = format.formatTime( | item.endTimeStr = format.formatTime( | ||||
item.endTime, | |||||
parseInt(item.endTime+"000"), | |||||
"MM-dd hh:mm" | "MM-dd hh:mm" | ||||
); | ); | ||||
this.data.liveStatusList.map((item02,index02)=>{ | this.data.liveStatusList.map((item02,index02)=>{ | ||||