Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
5
51business
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
方斌
51business
Commits
43e4bf0d
Commit
43e4bf0d
authored
Aug 09, 2019
by
Hsinli
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
adddd
parent
476804c5
Pipeline
#12037
passed with stage
in 4 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
2 deletions
+4
-2
tool.js
app/service/house/v2/tool.js
+4
-2
No files found.
app/service/house/v2/tool.js
View file @
43e4bf0d
...
...
@@ -125,7 +125,8 @@ class ToolService extends Service {
let
invest_items
=
[];
if
(
balance
<=
0
)
{
status
=
2
;
//完全有能力买到房
notice
=
'您的资金已满足本项目首付条件,还有更多项目在您预算范围内。一键预约,轻松看房!'
;
// notice = '您的资金已满足本项目首付条件,还有更多项目在您预算范围内。一键预约,轻松看房!';
notice
=
'您的资金已满足本项目首付条件,还有更多项目在您预算范围内。'
;
return
{
status
,
notice
,
invest_items
};
}
const
rate
=
balance
/
invest_payment
;
...
...
@@ -134,7 +135,8 @@ class ToolService extends Service {
notice
=
'非常遗憾,您的首付预算距离购买该项目尚有较大差距,请修改购房计划,重新尝试!'
;
}
else
{
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
}
});
if
(
invest_plans
!==
null
&&
invest_plans
.
items
)
{
invest_items
=
invest_plans
.
items
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment