|
@@ -215,6 +215,10 @@ Page({
|
|
|
},
|
|
|
// 反馈数据
|
|
|
changeType(e) {
|
|
|
+ this.setData({
|
|
|
+ notice: '', // 默认无值
|
|
|
+ willAvg:'--'
|
|
|
+ });
|
|
|
if(this.data.bgSeasonType=="Transition"){
|
|
|
wx.showModal({
|
|
|
title: '现在是过渡季不可调节',
|
|
@@ -237,12 +241,14 @@ Page({
|
|
|
this.setData({
|
|
|
tempTypeValue: currentIndex,
|
|
|
currentIndex:currentIndex,
|
|
|
+ checkType:'temp',
|
|
|
feedBack:true
|
|
|
});
|
|
|
} else {
|
|
|
this.setData({
|
|
|
windTypeValue: currentIndex,
|
|
|
currentIndex:currentIndex,
|
|
|
+ checkType:'wind',
|
|
|
feedBack:true
|
|
|
});
|
|
|
}
|
|
@@ -260,7 +266,7 @@ Page({
|
|
|
});
|
|
|
let textMsg = "";
|
|
|
let textMsgarr=[];
|
|
|
- this.data.equipmentStatus.forEach(item => {
|
|
|
+ this.data.equipmentStatus && this.data.equipmentStatus.forEach(item => {
|
|
|
if (item.actions) {
|
|
|
item.actions.forEach(items => {
|
|
|
let textMsgobj={};
|
|
@@ -278,7 +284,7 @@ Page({
|
|
|
getfeedBack(data).then(res => {
|
|
|
let notice = res.notice ? res.notice.split('。') : [];
|
|
|
this.setData({
|
|
|
- spaceStatus: res.spaceStatus,
|
|
|
+ spaceStatus: res.spaceStatus || res.message,
|
|
|
spaceStatusId: res.icon - 1,
|
|
|
notice: notice,
|
|
|
willAvg:res.avg||'--',
|
|
@@ -336,7 +342,8 @@ Page({
|
|
|
nextOpenTime:this.data.spaceDetail.nextOpenTime||"",
|
|
|
}
|
|
|
workLeave(data).then(res=>{
|
|
|
- this.setData({trunAction:true});
|
|
|
+ // TODO 关
|
|
|
+ this.setData({trunAction:true,failmessage:res.message || ''});
|
|
|
this.buildContact();
|
|
|
})
|
|
|
},
|
|
@@ -366,12 +373,19 @@ Page({
|
|
|
userId:$.store.get('userId')
|
|
|
}
|
|
|
openSpace(data).then(res=>{
|
|
|
- this.setData({
|
|
|
- secondSpaceStatus: res.spaceStatus,
|
|
|
- secondNotice: res.notice,
|
|
|
- secondIcon: res.icon,
|
|
|
- trunupAction: true
|
|
|
- });
|
|
|
+ // TODO kai
|
|
|
+ // if (res.message) {
|
|
|
+ // this.setData({failmessage:res.message, trunupAction: true})
|
|
|
+ // }else{
|
|
|
+ this.setData({
|
|
|
+ secondSpaceStatus: res.spaceStatus,
|
|
|
+ secondNotice: res.notice,
|
|
|
+ secondIcon: res.icon,
|
|
|
+ failmessage:res.message || '',
|
|
|
+ trunupAction: true
|
|
|
+ });
|
|
|
+ // }
|
|
|
+
|
|
|
this.buildContact();
|
|
|
})
|
|
|
},
|