Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
S
sfp-program
Overview
Overview
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
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Sweet Zhang
sfp-program
Commits
308d3371
Commit
308d3371
authored
Sep 29, 2022
by
kyle
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
差额公式修改
parent
c21a0be6
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
12 deletions
+12
-12
pages/housePurchase/housePurchase.vue
+12
-12
No files found.
pages/housePurchase/housePurchase.vue
View file @
308d3371
...
...
@@ -149,14 +149,14 @@
</view>
<view
id=
"myEcharts"
style=
"height: 500rpx;"
></view>
<view
style=
"text-align: center;margin-bottom: 30rpx;color: #c3c1c1;font-size: 22rpx;"
>
差额 =
你想要的-可实现
的
差额 =
可实现的 - 你想要
的
</view>
<view
v-show=
"resultInfos.code == 'A001' || resultInfos.code =='A002'"
>
1.如您想实现
{{
resultInfos
.
nyear
}}
年后在
{{
resultInfos
.
provinceName
}}
{{
resultInfos
.
cityName
}}
地区购买
{{
resultInfos
.
preOrderSize
}}
㎡的房产,那么您还需要提高首付款到
{{
resultInfos
.
pvDownPayment
}}
元,或您需提高每年预备还房贷资金总额到
{{
resultInfos
.
houseSpecialPurpose
}}
元。
1.如您想实现
{{
resultInfos
.
nyear
}}
年后在
{{
resultInfos
.
provinceName
}}
-
{{
resultInfos
.
cityName
}}
地区购买
{{
resultInfos
.
preOrderSize
}}
㎡的房产,那么您还需要提高首付款到
{{
numberConverter
(
resultInfos
.
pvDownPayment
)
}}
元,或您需提高每年预备还房贷资金总额到
{{
numberConverter
(
resultInfos
.
houseSpecialPurpose
)
}}
元。
</view>
<view>
<view
style=
"margin-top: 10rpx;"
>
{{
resultInfos
.
code
==
'A001'
||
resultInfos
.
code
==
'A002'
?
'2'
:
'1'
}}
.
根据您的已备首付款和每年预备还房贷资金总额,您在
{{
resultInfos
.
nyear
}}
年后可实现购买房屋单价为
{{
tipsPrice
}}
元/㎡,总价为
{{
tipsTotalPrice
}}
元的房产。
根据您的已备首付款和每年预备还房贷资金总额,您在
{{
resultInfos
.
nyear
}}
年后可实现购买房屋单价为
{{
numberConverter
(
tipsPrice
)
}}
元/㎡,总价为
{{
numberConverter
(
tipsTotalPrice
)
}}
元的房产。
</view>
</view>
<view
class=
"line"
v-for=
"houseItem in housePurchasePrices"
>
...
...
@@ -168,25 +168,25 @@
<view
class=
"left"
>
<view
class=
"realizable"
>
可实现的
</view>
<view>
终值:
{{
numberConverter
(
houseItem
.
fvPriceRealization
)
}}
元
</view>
<view
class=
"now"
>
<
!--
<
view
class=
"now"
>
现值:
{{
numberConverter
(
houseItem
.
pvPriceRealization
)
}}
元
</view>
</view>
-->
</view>
<img
src=
"../../static/images/vs.png"
alt=
""
>
<view
class=
"right"
>
<view
class=
"realizable"
>
你想要的
</view>
<view>
终值:
{{
numberConverter
(
houseItem
.
fvPriceDesired
)
}}
元
</view>
<view
class=
"now"
>
<
!--
<
view
class=
"now"
>
现值:
{{
numberConverter
(
houseItem
.
pvPriceDesired
)
}}
元
</view>
</view>
-->
</view>
</view>
<view
class=
"line_bottom"
v-show=
"houseItem.fvDifference
<
=
0
"
>
<text
style=
"font-size: 36rpx;"
>
恭喜您
</text>
!经过测算,您
已超出目标值
{{
numberConverter
(
Math
.
abs
(
houseItem
.
fvDifference
))
}}
,
{{
resultInfos
.
nyear
}}
年后可以达成您的目标.
<text
style=
"font-size: 36rpx;"
>
恭喜您
</text>
!经过测算,您
的
{{
getResultTitle
(
houseItem
.
priceType
)
}}
已超出目标值
{{
numberConverter
(
Math
.
abs
(
houseItem
.
fvDifference
))
}}
元
,
{{
resultInfos
.
nyear
}}
年后可以达成您的目标.
</view>
<view
class=
"line_bottom fail"
v-show=
"houseItem.fvDifference > 0"
>
<text
style=
"font-size: 36rpx;"
>
很遗憾!
</text>
经过测算,距离实现您的
目标还差
{{
numberConverter
(
Math
.
abs
(
houseItem
.
fvDifference
))
}}
。您可以参考我们给出的建议进行调整。
经过测算,距离实现您的
{{
getResultTitle
(
houseItem
.
priceType
)
}}
目标还差
{{
numberConverter
(
Math
.
abs
(
houseItem
.
fvDifference
))
}}
元
。您可以参考我们给出的建议进行调整。
</view>
</view>
</view>
...
...
@@ -335,11 +335,11 @@
const
list1
=
this
.
housePurchasePrices
.
filter
((
item
)
=>
{
return
item
.
priceType
==
3
})[
0
];
this
.
downPaymentList
=
[].
concat
(
list1
.
pvPriceRealization
,
list1
.
pvPriceDesired
,
list1
.
pvDifference
)
this
.
downPaymentList
=
[].
concat
(
list1
.
pvPriceRealization
,
list1
.
pvPriceDesired
,
-
(
list1
.
pvDifference
)
)
const
list2
=
this
.
housePurchasePrices
.
filter
((
item
)
=>
{
return
item
.
priceType
==
4
})[
0
];
this
.
totalLoanList
=
[].
concat
(
list2
.
fvPriceRealization
,
list2
.
fvPriceDesired
,
list2
.
fvDifference
)
this
.
totalLoanList
=
[].
concat
(
list2
.
fvPriceRealization
,
list2
.
fvPriceDesired
,
-
(
list2
.
fvDifference
)
)
}
this
.
myChart
.
setOption
({
legend
:
{
...
...
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