Commit da6316ea authored by 李尚科's avatar 李尚科

house rental fix

parent 26211be1
...@@ -233,4 +233,12 @@ module.exports = { ...@@ -233,4 +233,12 @@ module.exports = {
return array; return array;
}, },
JsonParse(jsonStr){
try {
return JSON.parse(jsonStr);
}catch(error){
return [];
}
},
}; };
...@@ -253,7 +253,7 @@ class RentalHouseService extends Service { ...@@ -253,7 +253,7 @@ class RentalHouseService extends Service {
2、房型说明:独门独户,拎包入住,满足各种需求,采光 2、房型说明:独门独户,拎包入住,满足各种需求,采光
3、社区配套:健身房、休憩区、小影院、娱乐室、商务区、无人商店、快递柜。 3、社区配套:健身房、休憩区、小影院、娱乐室、商务区、无人商店、快递柜。
4、房间配套:空调、Wifi、洗衣机、热水器、冰箱、床、衣柜、电脑桌、沙发。`, 4、房间配套:空调、Wifi、洗衣机、热水器、冰箱、床、衣柜、电脑桌、沙发。`,
room_configuration: JSON.parse(rental_house.roomConfiguration),//房间配置 room_configuration: ctx.helper.JsonParse(roomConfiguration),//房间配置
// room_configuration: rental_house.roomConfiguration,//房间配置 // room_configuration: rental_house.roomConfiguration,//房间配置
notice: rental_house.notice,//入住须知 notice: rental_house.notice,//入住须知
}; };
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment