...
|
...
|
@@ -170,7 +170,7 @@ Page({ |
170
|
170
|
}
|
171
|
171
|
if(this.data.house_type==''){
|
172
|
172
|
this.setData({
|
173
|
|
- house_type: newdata[0].type ? newdata[0].type:""
|
|
173
|
+ house_type: newdata.length>0&&newdata[0].type ? newdata[0].type:""
|
174
|
174
|
})
|
175
|
175
|
}
|
176
|
176
|
|
...
|
...
|
|