Commit aeb93e40 by Chao Sun

购房能力测算页面

parent bbc88645
...@@ -32,4 +32,81 @@ ...@@ -32,4 +32,81 @@
.banner img{ .banner img{
width: 100%; width: 100%;
} }
.formInfoContainer{
background: #fff;
margin-top: -32rpx;
position: relative;
z-index: 2;
border-top-right-radius: 30rpx;
border-top-left-radius: 30rpx;
padding: 30rpx;
box-sizing: border-box;
font-size: 30rpx;
color: #333333;
scroll-behavior:smooth;
}
.title{
display: flex;
justify-content: space-between;
align-items: center;
color: #CEB07D;
font-weight: bold;
font-size: 32rpx;
position: relative;
padding-left: 28rpx;
margin: 20rpx 0;
height: 50rpx;
}
.title::before{
content: '';
position: absolute;
left: 0;
top: 15rpx;
width: 6rpx;
height: 20rpx;
background-color: #CEB07D;
border-radius: 8rpx;
}
.radioButton{
position: relative;
width: 40rpx;
height: 40rpx;
border-radius: 50%;
border: 1px solid #CEB07D;
}
.radioButton.selected::after{
content: '';
position: absolute;
left: 0;
top: 0;
width: 20rpx;
height: 20rpx;
transform: translate(10rpx,10rpx);
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: 80rpx;
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: 20rpx;
text-align: right;
}
.inputItem text{
flex: 0 0 60%;
}
.uni-input-placeholder{
color: #999999;
font-size: 24rpx;
}
</style> </style>
...@@ -5,10 +5,177 @@ ...@@ -5,10 +5,177 @@
<head></head> <head></head>
<img src="../../static/images/banner.png" alt="banner" srcset=""> <img src="../../static/images/banner.png" alt="banner" srcset="">
</view> </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=""></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=""></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 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> <foot></foot>
</view> </scroll-view>
</view> </view>
<!--旧房贷款余额组件--> <!--旧房贷款余额组件-->
<loanBalance></loanBalance> <loanBalance></loanBalance>
...@@ -24,7 +191,7 @@ ...@@ -24,7 +191,7 @@
export default{ export default{
data(){ data(){
isDisplace:Boolean
}, },
components:{ components:{
loanBalance, loanBalance,
...@@ -40,5 +207,45 @@ ...@@ -40,5 +207,45 @@
} }
} }
</script> </script>
<style> <style scoped>
.houseInfo .title{
padding-left: 0;
justify-content: flex-start;
}
.houseInfo .title::before{
width: 0;
}
.inputContent label{
width: 200rpx;
text-align: right;
}
.inputItem .btn_wrapper{
display: flex;
}
.btn_wrapper .btn{
width: 130rpx;
padding:5rpx 0;
border: 1px solid #CEB07D;
margin-right: 10rpx;
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:25rpx 25rpx 25rpx 25rpx;
border-style:solid;
border-color:#FED495 transparent transparent transparent;
position:absolute;
right: -25rpx;
transform: rotate(-45deg);
bottom: -25rpx;
}
</style> </style>
\ No newline at end of file
...@@ -3,24 +3,6 @@ ...@@ -3,24 +3,6 @@
flex-direction: column; flex-direction: column;
align-items: center; align-items: center;
} }
.radioButton{
position: relative;
width: 40rpx;
height: 40rpx;
border-radius: 50%;
border: 1px solid #CEB07D;
}
.radioButton.selected::after{
content: '';
position: absolute;
left: 0;
top: 0;
width: 20rpx;
height: 20rpx;
transform: translate(10rpx,10rpx);
border-radius: 50%;
background: linear-gradient(135deg, #CEB07D 0%, #FFDDA9 56%, #FED495 100%, #FED495 100%);
}
.logo { .logo {
width: 100%; width: 100%;
} }
...@@ -44,61 +26,7 @@ ...@@ -44,61 +26,7 @@
height: 4rpx; height: 4rpx;
background: linear-gradient(125deg,#CEB07D,#FED597); background: linear-gradient(125deg,#CEB07D,#FED597);
} }
.formInfoContainer{
background: #fff;
margin-top: -32rpx;
position: relative;
z-index: 2;
border-top-right-radius: 30rpx;
border-top-left-radius: 30rpx;
padding: 30rpx;
box-sizing: border-box;
font-size: 30rpx;
color: #333333;
scroll-behavior:smooth;
}
.title{
display: flex;
justify-content: space-between;
align-items: center;
color: #CEB07D;
font-weight: bold;
font-size: 32rpx;
position: relative;
padding-left: 28rpx;
margin: 20rpx 0;
height: 50rpx;
}
.title::before{
content: '';
position: absolute;
left: 0;
top: 15rpx;
width: 6rpx;
height: 20rpx;
background-color: #CEB07D;
border-radius: 8rpx;
}
.inputItem{
display: flex;
justify-content: space-between;
align-items: center;
height: 88rpx;
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: 20rpx;
text-align: right;
}
.inputItem text{
flex: 0 0 50%;
}
.simpleDataResult{ .simpleDataResult{
background: #FFFFFF; background: #FFFFFF;
box-shadow: 0rpx 0rpx 11rpx 0rpx rgba(0,0,0,0.1); box-shadow: 0rpx 0rpx 11rpx 0rpx rgba(0,0,0,0.1);
......
...@@ -175,6 +175,7 @@ ...@@ -175,6 +175,7 @@
</scroll-view> </scroll-view>
</view> </view>
</view> </view>
<foot></foot> <foot></foot>
<!-- 操作 --> <!-- 操作 -->
<view class="optionContent"> <view class="optionContent">
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment