Commit 00a5563e authored by Hsinli's avatar Hsinli

add new house option about loan type

parent ae87de11
Pipeline #11128 passed with stage
in 20 seconds
......@@ -63,6 +63,11 @@ const NEW_HOUSE_AREA = [
{ name: '200平米以上', id: -144, min: 200, max: 999 }
]
const NEW_HOUSE_LOAN_TYPE = [
{ name: '全部', values: 0 },
{ name: '可公积金贷款', values: 1 },
];
class OptionService extends Service {
//获取筛选项
......@@ -91,9 +96,9 @@ class OptionService extends Service {
const total_price = NEW_HOUSE_TOTAL_PRICE;
const house_types = HOUSE_TYPE;
const house_area = NEW_HOUSE_AREA;
const loan_type = NEW_HOUSE_LOAN_TYPE;
const areas = await this.getAreaOptions(city_code);
return {
result: [
{ name: '区域', id: -1, path: [], nameShow: '', _children: areas },
......@@ -103,7 +108,8 @@ class OptionService extends Service {
{ name: '单价', id: -4, _children: unit_price }]
},
{ name: '面积', id: -5, path: [], nameShow: '', _children: house_area },
{ name: '户型', id: -6, path: [], nameShow: '', _children: house_types },
// { name: '户型', id: -6, path: [], nameShow: '', _children: house_types },
{ name: '贷款方式', id: -6, path: [], nameShow: '', _children: loan_type },
]
};
}
......
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