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
05722799
Commit
05722799
authored
Sep 30, 2022
by
Chao Sun
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'master' of
http://139.224.139.2:9091/Sweet/sfp-program
into master
parents
9a5f214c
df7b34b6
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
33 additions
and
17 deletions
+33
-17
pages/housePurchase/housePurchase.vue
+7
-6
pages/housePurchase/loanBalance.vue
+10
-7
pages/housePurchase/planningParameters.vue
+16
-4
No files found.
pages/housePurchase/housePurchase.vue
View file @
05722799
...
...
@@ -167,7 +167,7 @@
<view
class=
"content"
>
<view
class=
"left"
>
<view
class=
"realizable"
>
可实现的
</view>
<view>
终值
:
{{
numberConverter
(
houseItem
.
fvPriceRealization
)
}}
元
</view>
<view>
{{
housePurchaseInfo
.
nyear
}}
年后
:
{{
numberConverter
(
houseItem
.
fvPriceRealization
)
}}
元
</view>
<!--
<view
class=
"now"
>
现值:
{{
numberConverter
(
houseItem
.
pvPriceRealization
)
}}
元
</view>
-->
...
...
@@ -175,7 +175,7 @@
<img
src=
"../../static/images/vs.png"
alt=
""
>
<view
class=
"right"
>
<view
class=
"realizable"
>
你想要的
</view>
<view>
终值
:
{{
numberConverter
(
houseItem
.
fvPriceDesired
)
}}
元
</view>
<view>
{{
housePurchaseInfo
.
nyear
}}
年后
:
{{
numberConverter
(
houseItem
.
fvPriceDesired
)
}}
元
</view>
<!--
<view
class=
"now"
>
现值:
{{
numberConverter
(
houseItem
.
pvPriceDesired
)
}}
元
</view>
-->
...
...
@@ -203,7 +203,7 @@
<!--旧房贷款余额组件-->
<loanBalance
v-if=
"isLoanSelected"
:a=
"accumulationFundParams"
:b=
"commercialLoansParams"
:loanType=
"1"
@
getData=
"getData"
></loanBalance>
<!--规划参数组件-->
<planningParameters
v-if=
"paramsSelected"
:cityInfo=
"cityInfo"
@
getData=
"getPlanParams"
></planningParameters>
<planningParameters
v-if=
"paramsSelected"
:cityInfo=
"cityInfo"
:planningParams=
"planningParams"
@
getData=
"getPlanParams"
></planningParameters>
</view>
</view>
</
template
>
...
...
@@ -223,6 +223,7 @@
export
default
{
data
(){
return
{
isNeedOfficialAccountQrcode
:
true
,
tipsPrice
:
null
,
tipsTotalPrice
:
null
,
cityInfo
:{},
...
...
@@ -444,9 +445,9 @@
...
this
.
planningParams
,
interestRate
:
this
.
housePurchaseInfo
.
interestRate
/
100
,
houseLoanOldList
:
this
.
houseLoanOldList
,
//
businessNo: uni.getStorageSync('businessNo'),
businessNo
:
'businessNo20220829000000001'
,
calcuteType
:
0
businessNo
:
uni
.
getStorageSync
(
'businessNo'
),
calcuteType
:
0
,
decimal
:
4
}
api
.
housePurchasePlanAnalysis
(
param
).
then
((
res
)
=>
{
if
(
res
[
'success'
]){
...
...
pages/housePurchase/loanBalance.vue
View file @
05722799
...
...
@@ -52,7 +52,7 @@
</
template
>
<
script
>
import
{
ref
,
toRefs
}
from
"vue"
;
import
{
ref
,
toRefs
,
reactive
}
from
"vue"
;
export
default
{
props
:
[
'isReadonly'
,
'loanType'
,
'a'
,
'b'
],
emits
:[
'getData'
],
...
...
@@ -94,21 +94,24 @@
},
setup
(
props
,
content
)
{
console
.
log
(
'子组件拿到值了'
,
props
);
const
a
=
toRefs
(
props
.
a
);
const
b
=
toRefs
(
props
.
b
);
const
a
=
reactive
({
value
:
props
.
a
}
);
const
b
=
reactive
({
value
:
props
.
b
}
);
const
loanType
=
ref
(
props
.
loanType
);
const
isReadonly
=
ref
(
props
.
isReadonly
);
const
sendData
=
(
e
)
=>
{
content
.
emit
(
'getData'
,
e
);
}
console
.
log
(
a
);
console
.
log
(
b
)
return
{
loanType
,
sendData
,
a
,
b
,
isReadonly
}
},
mounted
(){
if
(
JSON
.
stringify
(
this
.
a
)
!=
'{}'
&&
JSON
.
stringify
(
this
.
a
)
!=
'[]'
){
this
.
accumulationFundParams
=
JSON
.
parse
(
JSON
.
stringify
(
this
.
a
))[
0
].
_object
;
console
.
log
(
JSON
.
stringify
(
this
.
a
.
value
))
if
(
JSON
.
stringify
(
this
.
a
.
value
)
!=
'{}'
&&
JSON
.
stringify
(
this
.
a
.
value
)
!=
'[]'
){
this
.
accumulationFundParams
=
this
.
a
.
value
}
if
(
JSON
.
stringify
(
this
.
b
)
!=
'{}'
&&
JSON
.
stringify
(
this
.
b
)
!=
'[]'
){
this
.
commercialLoansParams
=
JSON
.
parse
(
JSON
.
stringify
(
this
.
b
))[
0
].
_object
;
if
(
JSON
.
stringify
(
this
.
b
.
value
)
!=
'{}'
&&
JSON
.
stringify
(
this
.
b
.
value
)
!=
'[]'
){
this
.
commercialLoansParams
=
this
.
b
.
value
;
}
if
(
!
(
this
.
accumulationFundParams
.
findIndex
(
item
=>
item
.
value
==
null
||
item
.
value
==
''
)
>=
0
)
&&
!
(
this
.
commercialLoansParams
.
findIndex
(
item
=>
item
.
value
==
null
||
item
.
value
==
''
)
>=
0
)){
this
.
loanType
=
3
;
...
...
pages/housePurchase/planningParameters.vue
View file @
05722799
...
...
@@ -25,10 +25,11 @@
</
template
>
<
script
>
import
{
toRefs
}
from
"vue"
;
import
api
from
'../../api/api'
;
import
common
from
'../../common/common'
export
default
{
props
:[
'cityInfo'
],
props
:[
'cityInfo'
,
'planningParams'
],
emits
:[
'getData'
],
data
(){
return
{
...
...
@@ -55,11 +56,12 @@
},
setup
(
props
,
content
){
const
cityInfo
=
props
.
cityInfo
?
props
.
cityInfo
:
null
;
const
cityInfo
=
props
.
cityInfo
?
toRefs
(
props
.
cityInfo
)
:
null
;
const
planningParams
=
props
.
planningParams
?
toRefs
(
props
.
planningParams
)
:
null
;
const
sendData
=
(
e
)
=>
{
content
.
emit
(
'getData'
,
e
);
}
return
{
sendData
,
cityInfo
}
return
{
sendData
,
cityInfo
,
planningParams
}
},
methods
:{
onchange
(
e
)
{
...
...
@@ -108,9 +110,19 @@
},
mounted
()
{
this
.
editParamLists
=
JSON
.
parse
(
JSON
.
stringify
(
this
.
paramsLists
));
if
(
!
(
JSON
.
stringify
(
this
.
planningParams
)
==
'{}'
)){
const
result
=
this
.
planningParams
;
this
.
editParamLists
.
map
(
item
=>
{
// 首付款不需要换算
if
(
item
.
alias
!==
'downPaymentMin'
){
item
.
value
=
result
[
item
.
alias
].
value
*
100
}
})
}
this
.
provCityQry
();
this
.
cityId
=
this
.
cityInfo
.
cityId
;
this
.
queryCommercialHousingPrice
()
//
this.queryCommercialHousingPrice()
}
}
</
script
>
...
...
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