Commit 43e4bf0d authored by Hsinli's avatar Hsinli

adddd

parent 476804c5
Pipeline #12037 passed with stage
in 4 seconds
...@@ -125,7 +125,8 @@ class ToolService extends Service { ...@@ -125,7 +125,8 @@ class ToolService extends Service {
let invest_items = []; let invest_items = [];
if (balance <= 0) { if (balance <= 0) {
status = 2;//完全有能力买到房 status = 2;//完全有能力买到房
notice = '您的资金已满足本项目首付条件,还有更多项目在您预算范围内。一键预约,轻松看房!'; // notice = '您的资金已满足本项目首付条件,还有更多项目在您预算范围内。一键预约,轻松看房!';
notice = '您的资金已满足本项目首付条件,还有更多项目在您预算范围内。';
return { status, notice, invest_items }; return { status, notice, invest_items };
} }
const rate = balance / invest_payment; const rate = balance / invest_payment;
...@@ -134,7 +135,8 @@ class ToolService extends Service { ...@@ -134,7 +135,8 @@ class ToolService extends Service {
notice = '非常遗憾,您的首付预算距离购买该项目尚有较大差距,请修改购房计划,重新尝试!'; notice = '非常遗憾,您的首付预算距离购买该项目尚有较大差距,请修改购房计划,重新尝试!';
} else { } else {
status = 1;//加把劲还是有希望买到房 status = 1;//加把劲还是有希望买到房
notice = '恭喜您!依据以上计划,您即将完成此项目首付款准备。您现阶段首付预算可以购买以下项目房源:'; //20190809旭东说去掉notice
// notice = '恭喜您!依据以上计划,您即将完成此项目首付款准备。您现阶段首付预算可以购买以下项目房源:';
const invest_plans = await ctx.blockModel.HouseInvestPlan.one({ where: { condition_min: { $lt: rate }, condition_max: { $gte: rate }, status: 'online', valid: 1, period: prepare_time } }); const invest_plans = await ctx.blockModel.HouseInvestPlan.one({ where: { condition_min: { $lt: rate }, condition_max: { $gte: rate }, status: 'online', valid: 1, period: prepare_time } });
if (invest_plans !== null && invest_plans.items) { if (invest_plans !== null && invest_plans.items) {
invest_items = invest_plans.items; invest_items = invest_plans.items;
......
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