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
aeb93e40
Commit
aeb93e40
authored
Sep 21, 2022
by
Chao Sun
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
购房能力测算页面
parent
bbc88645
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
291 additions
and
77 deletions
+291
-77
App.vue
+77
-0
pages/housePurchase/housePurchase.vue
+212
-4
pages/index/index.css
+1
-73
pages/index/index.vue
+1
-0
No files found.
App.vue
View file @
aeb93e40
...
...
@@ -32,4 +32,81 @@
.banner
img
{
width
:
100%
;
}
.formInfoContainer
{
background
:
#fff
;
margin-top
:
-32
rpx
;
position
:
relative
;
z-index
:
2
;
border-top-right-radius
:
30
rpx
;
border-top-left-radius
:
30
rpx
;
padding
:
30
rpx
;
box-sizing
:
border-box
;
font-size
:
30
rpx
;
color
:
#333333
;
scroll-behavior
:
smooth
;
}
.title
{
display
:
flex
;
justify-content
:
space-between
;
align-items
:
center
;
color
:
#CEB07D
;
font-weight
:
bold
;
font-size
:
32
rpx
;
position
:
relative
;
padding-left
:
28
rpx
;
margin
:
20
rpx
0
;
height
:
50
rpx
;
}
.title
::before
{
content
:
''
;
position
:
absolute
;
left
:
0
;
top
:
15
rpx
;
width
:
6
rpx
;
height
:
20
rpx
;
background-color
:
#CEB07D
;
border-radius
:
8
rpx
;
}
.radioButton
{
position
:
relative
;
width
:
40
rpx
;
height
:
40
rpx
;
border-radius
:
50%
;
border
:
1px
solid
#CEB07D
;
}
.radioButton.selected
::after
{
content
:
''
;
position
:
absolute
;
left
:
0
;
top
:
0
;
width
:
20
rpx
;
height
:
20
rpx
;
transform
:
translate
(
10
rpx
,
10
rpx
);
border-radius
:
50%
;
background
:
linear-gradient
(
135deg
,
#CEB07D
0%
,
#FFDDA9
56%
,
#FED495
100%
,
#FED495
100%
);
}
.inputItem
{
display
:
flex
;
justify-content
:
space-between
;
align-items
:
center
;
height
:
80
rpx
;
border-bottom
:
1px
solid
#E4E4E4
;
}
.inputItem
.inputContent
{
display
:
flex
;
align-items
:
center
;
justify-content
:
flex-end
;
flex
:
0
0
40%
;
}
.inputContent
.uni-input
{
margin-right
:
20
rpx
;
text-align
:
right
;
}
.inputItem
text
{
flex
:
0
0
60%
;
}
.uni-input-placeholder
{
color
:
#999999
;
font-size
:
24
rpx
;
}
</
style
>
pages/housePurchase/housePurchase.vue
View file @
aeb93e40
...
...
@@ -5,10 +5,177 @@
<head></head>
<img
src=
"../../static/images/banner.png"
alt=
"banner"
srcset=
""
>
</view>
<view
class=
"content"
>
<scroll-view
scroll-y=
"true"
class=
"formInfoContainer"
id=
"formInfoContainer"
>
<!--需求信息-->
<view
class=
"demandInfo"
>
<view
class=
"title"
>
<view>
需求信息
</view>
</view>
<view
class=
"inputItem"
>
<text>
几年后购房:
</text>
<view
class=
"inputContent"
>
<input
class=
"uni-input"
type=
"number"
placeholder=
"请输入"
maxlength=
"3"
/><label
for=
""
>
年
</label>
</view>
</view>
<view
class=
"inputItem"
>
<text>
预购城市:
</text>
<view
class=
"inputContent"
>
<select
name=
""
id=
""
>
<option
value=
""
>
上海
</option>
<option
value=
""
>
深圳
</option>
</select>
</view>
</view>
<view
class=
"inputItem"
>
<text>
预购面积:
</text>
<view
class=
"inputContent"
>
<input
class=
"uni-input"
type=
"number"
placeholder=
"请输入"
maxlength=
"3"
/><label
for=
""
>
m²
</label>
</view>
</view>
<view
class=
"inputItem"
>
<text>
预购房产现在市场单价:
</text>
<view
class=
"inputContent"
>
<input
class=
"uni-input"
type=
"number"
placeholder=
"请输入"
maxlength=
"3"
/><label
for=
""
>
m²/元
</label>
</view>
</view>
<view
class=
"inputItem"
>
<text>
首付款最低成数:
</text>
<view
class=
"inputContent"
>
<input
class=
"uni-input"
type=
"number"
placeholder=
"请输入"
maxlength=
"3"
/><label
for=
""
>
m²
</label>
</view>
</view>
<view
class=
"inputItem"
>
<text>
新房贷款年限:
</text>
<view
class=
"inputContent"
>
<input
class=
"uni-input"
type=
"number"
placeholder=
"请输入"
maxlength=
"3"
/><label
for=
""
>
m²
</label>
</view>
</view>
<view
class=
"inputItem"
>
<text>
新房贷款年利率:
</text>
<view
class=
"inputContent"
>
<input
class=
"uni-input"
type=
"number"
placeholder=
"请输入"
maxlength=
"3"
/><label
for=
""
>
m²
</label>
</view>
</view>
<view
class=
"inputItem"
>
<text
style=
"flex: 0 0 30%;"
>
购房用途:
</text>
<view
class=
"btn_wrapper"
>
<view
class=
"btn "
>
投资
</view>
<view
class=
"btn selected"
>
自助
</view>
<view
class=
"btn"
>
其他
</view>
</view>
</view>
</view>
<!--资源信息-->
<view
class=
"sourcesInfo"
>
<view
class=
"title"
>
<view>
资源信息
</view>
</view>
<view
class=
"inputItem"
>
<text>
已备首付:
</text>
<view
class=
"inputContent"
>
<input
class=
"uni-input"
type=
"number"
placeholder=
"请输入"
maxlength=
"3"
/><label
for=
""
>
万元
</label>
</view>
</view>
<view
class=
"inputItem"
>
<text>
年预备还房贷资金总额:
</text>
<view
class=
"inputContent"
>
<input
class=
"uni-input"
type=
"number"
placeholder=
"请输入"
maxlength=
"3"
/><label
for=
""
>
万元
</label>
</view>
</view>
</view>
<!--房屋置换-->
<view
class=
"houseInfo"
>
<view
class=
"title"
>
<view
class=
"radioButton"
:class=
"
{'selected':!isDisplace }">
</view>
<text
style=
"margin-left: 10rpx;"
>
是否置换旧房
</text>
</view>
<view
class=
"inputItem"
>
<text>
旧房贷款余额:
</text>
<view
class=
"inputContent"
>
<input
class=
"uni-input"
type=
"number"
placeholder=
"请输入"
maxlength=
"3"
/><label
for=
""
>
万元
</label>
</view>
</view>
<view
class=
"inputItem"
>
<text>
旧房贷款剩余月份:
</text>
<view
class=
"inputContent"
>
<input
class=
"uni-input"
type=
"number"
placeholder=
"请输入"
maxlength=
"3"
/><label
for=
""
>
月
</label>
</view>
</view>
<view
class=
"inputItem"
>
<text>
旧房贷款利率:
</text>
<view
class=
"inputContent"
>
<input
class=
"uni-input"
type=
"number"
placeholder=
"请输入"
maxlength=
"3"
/><label
for=
""
>
%
</label>
</view>
</view>
<view
class=
"inputItem"
>
<text
style=
"flex: 0 0 35%;"
>
旧房贷款方式:
</text>
<view
class=
"btn_wrapper"
>
<view
class=
"btn"
style=
"width: 140rpx;"
>
公积金
</view>
<view
class=
"btn selected"
style=
"width: 140rpx;"
>
商业贷
</view>
<view
class=
"btn"
style=
"width: 150rpx;"
>
组合贷
</view>
</view>
</view>
<view
class=
"inputItem"
>
<text
style=
"flex: 0 0 35%;"
>
旧房还款方式:
</text>
<view
class=
"btn_wrapper"
>
<view
class=
"btn"
style=
"width: 160rpx;"
>
等额本金
</view>
<view
class=
"btn selected"
style=
"width: 160rpx;"
>
等额本息
</view>
</view>
</view>
</view>
<!--规划参数-->
<view
class=
"parametersInfo"
>
<view
class=
"title"
>
<view>
规划参数
</view>
</view>
</view>
<!--底部技术支持组件-->
<foot></foot>
</view>
</
scroll-
view>
</view>
<!--旧房贷款余额组件-->
<loanBalance></loanBalance>
...
...
@@ -24,7 +191,7 @@
export
default
{
data
(){
isDisplace
:
Boolean
},
components
:{
loanBalance
,
...
...
@@ -40,5 +207,45 @@
}
}
</
script
>
<
style
>
<
style
scoped
>
.houseInfo
.title
{
padding-left
:
0
;
justify-content
:
flex-start
;
}
.houseInfo
.title
::before
{
width
:
0
;
}
.inputContent
label
{
width
:
200
rpx
;
text-align
:
right
;
}
.inputItem
.btn_wrapper
{
display
:
flex
;
}
.btn_wrapper
.btn
{
width
:
130
rpx
;
padding
:
5
rpx
0
;
border
:
1px
solid
#CEB07D
;
margin-right
:
10
rpx
;
text-align
:
center
;
position
:
relative
;
}
.btn_wrapper
.btn
:last-child
{
margin-right
:
0
;
}
.btn_wrapper
.selected
{
color
:
#FED495
;
}
.btn_wrapper
.selected
:after
{
display
:
block
;
content
:
''
;
border-width
:
25
rpx
25
rpx
25
rpx
25
rpx
;
border-style
:
solid
;
border-color
:
#FED495
transparent
transparent
transparent
;
position
:
absolute
;
right
:
-25
rpx
;
transform
:
rotate
(
-45deg
);
bottom
:
-25
rpx
;
}
</
style
>
\ No newline at end of file
pages/index/index.css
View file @
aeb93e40
...
...
@@ -3,24 +3,6 @@
flex-direction
:
column
;
align-items
:
center
;
}
.radioButton
{
position
:
relative
;
width
:
40
rpx
;
height
:
40
rpx
;
border-radius
:
50%
;
border
:
1px
solid
#CEB07D
;
}
.radioButton.selected
::after
{
content
:
''
;
position
:
absolute
;
left
:
0
;
top
:
0
;
width
:
20
rpx
;
height
:
20
rpx
;
transform
:
translate
(
10
rpx
,
10
rpx
);
border-radius
:
50%
;
background
:
linear-gradient
(
135deg
,
#CEB07D
0%
,
#FFDDA9
56%
,
#FED495
100%
,
#FED495
100%
);
}
.logo
{
width
:
100%
;
}
...
...
@@ -44,61 +26,7 @@
height
:
4
rpx
;
background
:
linear-gradient
(
125deg
,
#CEB07D
,
#FED597
);
}
.formInfoContainer
{
background
:
#fff
;
margin-top
:
-32
rpx
;
position
:
relative
;
z-index
:
2
;
border-top-right-radius
:
30
rpx
;
border-top-left-radius
:
30
rpx
;
padding
:
30
rpx
;
box-sizing
:
border-box
;
font-size
:
30
rpx
;
color
:
#333333
;
scroll-behavior
:
smooth
;
}
.title
{
display
:
flex
;
justify-content
:
space-between
;
align-items
:
center
;
color
:
#CEB07D
;
font-weight
:
bold
;
font-size
:
32
rpx
;
position
:
relative
;
padding-left
:
28
rpx
;
margin
:
20
rpx
0
;
height
:
50
rpx
;
}
.title
::before
{
content
:
''
;
position
:
absolute
;
left
:
0
;
top
:
15
rpx
;
width
:
6
rpx
;
height
:
20
rpx
;
background-color
:
#CEB07D
;
border-radius
:
8
rpx
;
}
.inputItem
{
display
:
flex
;
justify-content
:
space-between
;
align-items
:
center
;
height
:
88
rpx
;
border-bottom
:
1px
solid
#E4E4E4
;
}
.inputItem
.inputContent
{
display
:
flex
;
align-items
:
center
;
justify-content
:
flex-end
;
flex
:
0
0
50%
;
}
.inputContent
.uni-input
{
margin-right
:
20
rpx
;
text-align
:
right
;
}
.inputItem
text
{
flex
:
0
0
50%
;
}
.simpleDataResult
{
background
:
#FFFFFF
;
box-shadow
:
0
rpx
0
rpx
11
rpx
0
rpx
rgba
(
0
,
0
,
0
,
0.1
);
...
...
pages/index/index.vue
View file @
aeb93e40
...
...
@@ -175,6 +175,7 @@
</scroll-view>
</view>
</view>
<foot></foot>
<!-- 操作 -->
<view
class=
"optionContent"
>
...
...
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