|
|
@ -32,6 +32,20 @@ Page({ |
|
|
if (options.title) { |
|
|
if (options.title) { |
|
|
this.setData({title: options.title}) |
|
|
this.setData({title: options.title}) |
|
|
} |
|
|
} |
|
|
|
|
|
commonApi._post("pbservice/Comfort/getSceneLevel").then(res=>{ |
|
|
|
|
|
console.log(res) |
|
|
|
|
|
let sceneLevelObj = {}; |
|
|
|
|
|
res.data.map(item=>{ |
|
|
|
|
|
sceneLevelObj[item.level] = item.name; |
|
|
|
|
|
}) |
|
|
|
|
|
res.data.unshift({ |
|
|
|
|
|
name:"不选择" |
|
|
|
|
|
}) |
|
|
|
|
|
this.setData({ |
|
|
|
|
|
sceneLevel:res.data, |
|
|
|
|
|
sceneLevelObj:sceneLevelObj |
|
|
|
|
|
}) |
|
|
|
|
|
}) |
|
|
|
|
|
|
|
|
commonApi._post("pbservice/Comfort/getComfortLevel").then(res=>{ |
|
|
commonApi._post("pbservice/Comfort/getComfortLevel").then(res=>{ |
|
|
let comfortObj = {} |
|
|
let comfortObj = {} |
|
|
@ -48,7 +62,6 @@ Page({ |
|
|
comfortLevel:res.data, |
|
|
comfortLevel:res.data, |
|
|
comfortObj:comfortObj |
|
|
comfortObj:comfortObj |
|
|
}) |
|
|
}) |
|
|
this.getList(); |
|
|
|
|
|
}) |
|
|
}) |
|
|
commonApi._post('pbservice/Comfort/getComfortAreaList').then(res=>{ |
|
|
commonApi._post('pbservice/Comfort/getComfortAreaList').then(res=>{ |
|
|
let areaObj = {} |
|
|
let areaObj = {} |
|
|
@ -70,21 +83,9 @@ Page({ |
|
|
areas:res.data, |
|
|
areas:res.data, |
|
|
areaObj:areaObj |
|
|
areaObj:areaObj |
|
|
}) |
|
|
}) |
|
|
|
|
|
this.getList(); |
|
|
}) |
|
|
}) |
|
|
commonApi._post("pbservice/Comfort/getSceneLevel").then(res=>{ |
|
|
|
|
|
console.log(res) |
|
|
|
|
|
let sceneLevelObj = {}; |
|
|
|
|
|
res.data.map(item=>{ |
|
|
|
|
|
sceneLevelObj[item.level] = item.name; |
|
|
|
|
|
}) |
|
|
|
|
|
res.data.unshift({ |
|
|
|
|
|
name:"不选择" |
|
|
|
|
|
}) |
|
|
|
|
|
this.setData({ |
|
|
|
|
|
sceneLevel:res.data, |
|
|
|
|
|
sceneLevelObj:sceneLevelObj |
|
|
|
|
|
}) |
|
|
|
|
|
}) |
|
|
|
|
|
|
|
|
|
|
|
}, |
|
|
}, |
|
|
changeArea:function(e){ |
|
|
changeArea:function(e){ |
|
|
|