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
c6f3f133
Commit
c6f3f133
authored
Sep 27, 2022
by
Chao Sun
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
旧房贷款余额组件通信
parent
2ebf9aa4
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
26 additions
and
4 deletions
+26
-4
common/common.ts
+19
-2
pages/housePurchase/housePurchase.vue
+0
-0
pages/housePurchase/loanBalance.vue
+7
-2
No files found.
common/common.ts
View file @
c6f3f133
...
...
@@ -10,13 +10,29 @@ export default {
const
model
=
{
// 把后端返回过来的数据里面的键给替换成我想要的键
source
:
x
,
text
:
x
.
provinceName
?
x
.
provinceName
:
x
.
cityName
,
value
:
x
.
cityId
?
x
.
cityId
:
x
.
provinceId
,
value
:
x
.
provinceId
?
x
.
provinceId
:
x
.
cityId
,
};
const
children
=
this
.
action
(
x
.
citys
);
// 子级数据
if
(
children
){
// 一直往下循环查找有没有children这个键,如果有就直接添加一个子级字段名,这个字段名就是存子级数据
model
.
children
=
children
;
}
return
model
;
// 返回这个数据
return
model
;
// 返回这个数据
});
},
// 封装报错弹窗
errorDialog
(
type
,
content
){
// type 1 必填项校验 2 规则校验
uni
.
showModal
({
title
:
type
===
1
?
'必填项校验'
:
'规则校验'
,
content
:
content
,
showCancel
:
false
,
success
:
function
(
res
)
{
if
(
res
.
confirm
)
{
console
.
log
(
'用户点击确定'
);
}
else
if
(
res
.
cancel
)
{
console
.
log
(
'用户点击取消'
);
}
}
});
}
}
\ No newline at end of file
pages/housePurchase/housePurchase.vue
View file @
c6f3f133
This diff is collapsed.
Click to expand it.
pages/housePurchase/loanBalance.vue
View file @
c6f3f133
<
template
>
<div
class=
"mortgageCalculatorContainer"
>
<!-- 关闭按钮 -->
<div
class=
"closeBtn"
>
<div
class=
"closeBtn"
@
click=
"closeBlan()"
>
<svg
t=
"1663922894848"
class=
"icon"
viewBox=
"0 0 1024 1024"
version=
"1.1"
xmlns=
"http://www.w3.org/2000/svg"
p-id=
"2545"
width=
"26"
height=
"26"
><path
d=
"M557.311759 513.248864l265.280473-263.904314c12.54369-12.480043 12.607338-32.704421 0.127295-45.248112-12.512727-12.576374-32.704421-12.607338-45.248112-0.127295L512.127295 467.904421 249.088241 204.063755c-12.447359-12.480043-32.704421-12.54369-45.248112-0.063647-12.512727 12.480043-12.54369 32.735385-0.063647 45.280796l262.975407 263.775299-265.151458 263.744335c-12.54369 12.480043-12.607338 32.704421-0.127295 45.248112 6.239161 6.271845 14.463432 9.440452 22.687703 9.440452 8.160624 0 16.319527-3.103239 22.560409-9.311437l265.216826-263.807983 265.440452 266.240344c6.239161 6.271845 14.432469 9.407768 22.65674 9.407768 8.191587 0 16.352211-3.135923 22.591372-9.34412 12.512727-12.480043 12.54369-32.704421 0.063647-45.248112L557.311759 513.248864z"
p-id=
"2546"
></path></svg>
</div>
<view
class=
"tabTitle"
>
...
...
@@ -52,6 +52,7 @@
<
script
>
export
default
{
props
:
[
'getChildLoanInfo'
],
data
(){
return
{
accumulationFundParams
:[
...
...
@@ -239,8 +240,12 @@
// 旧房贷款信息集合
console
.
log
(
this
.
houseLoanOldList
)
this
.
getChildLoanInfo
(
this
.
houseLoanOldList
);
},
closeBlan
(){
//向父组件发送关闭弹窗
this
.
$emit
(
'closeLoan'
)
}
}
}
</
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