Commit f4c4b441 authored by Facius's avatar Facius

入驻基本信息第一部分高保真

parent 18d0e480
......@@ -8,10 +8,15 @@
<image class="item-image" src="../../static/settle/mixing@3x.png"></image>
<text class="label">接单城市</text>
</view>
<p class="u-flex-1 u-text-right txt">{{ areaTxts.slice(0,2).join(',') || "" }}</p>
<u-icon name="arrow-right" color="#999" size="28"></u-icon>
<p :class="['u-flex-1 u-text-right txt', {before: !cityText}]">{{ cityText ? '已选择' : '去选择' }}
</p>
<u-icon name="arrow-right" color="#2272FF" size="28"></u-icon>
</view>
<view class="tips">可以服务的城市,可选多个</view>
<view v-if="">
<view class="line-view-d"></view>
<view class="city-text">{{cityText}}</view>
</view>
</view>
<view class="base-item" style="height: 600rpx;">
<view class="item item-select" @click="gopage('/pages/settle/select?selectType=working_age')">
......@@ -19,34 +24,38 @@
<image class="item-image" src="../../static/settle/mixing@3x.png"></image>
<text class="label">电工工龄(年)</text>
</view>
<p class="u-flex-1 u-text-right area" v-show="baseInfo.working_age !== ''">
{{ workingAgeTxt }}
<p :class="['u-flex-1 u-text-right area', {before: !baseInfo.working_age}]">
{{ baseInfo.working_age ? workingAgeTxt : '去选择'}}
</p>
<u-icon name="arrow-right" color="#999" size="28"></u-icon>
<u-icon name="arrow-right" color="#2272FF" size="28"></u-icon>
</view>
<view class="tips">从事电工工作的工龄</view>
<view class="line-view"></view>
<view class="item itemView">
<view>
<view>
<text class="itemTitle">师傅数量</text>
</view>
<input class="itemInput" @input="countInput" v-model="name" type="number" value=""
placeholder="请输入师傅数量" placeholder-style='color:#CCCCCC;font-size:32rpx;' />
placeholder="请输入" placeholder-style='color:#2272FF;font-size:24rpx;' />
</view>
<view class="tips">可投入交付服务的人员数量</view>
<view class="line-view"></view>
<view>
<view class="item item-select" @click="locationClick()">
<view class="flex-center">
<image class="item-image" src="../../static/settle/mixing@3x.png"></image>
<view class="flex-center">
<image class="item-image" src="../../static/settle/mixing@3x.png"></image>
<text class="itemTitle">详细地址</text>
</view>
<view class="flex-center">
<image class="item-image" src="../../static/settle/dizhi@3x.png"></image>
<view class="flex-center">
<image class="item-image" src="../../static/settle/dizhi@3x.png"></image>
<text class="right-label blueColor">自动定位</text>
</view>
</view>
<textarea class="address-view" maxlength="100" placeholder-style="color:#999999" v-model="baseInfo.address" placeholder="请填写可接收物料的详细地址"/>
</view>
<view class="address-view">
<textarea class="address-textarea" :cursor-spacing="40" maxlength="100"
placeholder-style="color:#999999" v-model="baseInfo.address"
placeholder="请填写可接收物料的详细地址" />
</view>
</view>
</view>
</view>
......@@ -105,9 +114,12 @@
submitStatus() {
const baseInfo = this.baseInfo
//baseInfo.name && baseInfo.mobile &&
const flag = baseInfo.service_area && baseInfo.working_age !== ''
return flag && !this.saving;
const flag = baseInfo.service_area && baseInfo.working_age !== '' && baseInfo.address
return flag && !this.saving
},
cityText() {
return this.areaTxts.join('、')
}
},
components: {
......@@ -332,31 +344,46 @@
}
</script>
<style lang="scss" scoped>
.back_view {
background-color: #F4F5F7;
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
display: flex;
flex-direction: column;
<style lang="scss" scoped>
.back_view {
background-color: #F4F5F7;
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
display: flex;
flex-direction: column;
}
.base-list {
.base-item {
background-color: #FFFFFF;
border-radius: 12rpx;
padding: 30rpx;
height: 160rpx;
min-height: 160rpx;
margin-bottom: 20rpx;
}
.line-view {
background-color: #F4F5F7;
height: 2rpx;
width: 100%;
width: 100%;
margin-bottom: 30rpx;
margin-top: 36rpx;
}
.line-view-d {
background-color: #F4F5F7;
height: 2rpx;
width: 100%;
margin-bottom: 20rpx;
margin-top: 20rpx;
}
.city-text {
font-size: 28rpx;
color: #333333;
}
.item {
......@@ -374,8 +401,8 @@
.txt {
line-height: 44rpx;
color: #333;
font-size: 32rpx;
color: #999999;
font-size: 24rpx;
display: -webkit-box;
overflow: hidden;
text-overflow: ellipsis;
......@@ -383,6 +410,10 @@
white-space: normal !important;
-webkit-line-clamp: 2;
-webkit-box-orient: vertical;
&.before {
color: #2272FF;
}
}
.item-image {
......@@ -390,6 +421,13 @@
height: 24rpx;
margin-right: 10rpx;
}
.item-image {
width: 26rpx;
height: 30rpx;
margin-right: 6rpx;
}
.required {
margin: 0 6rpx;
color: red;
......@@ -404,13 +442,14 @@
.tips {
margin-top: 10rpx;
font-size: 24rpx;
color: #666;
padding-bottom: 36rpx;
color: #666;
}
.flex-center {
display: flex;
align-items: center;
}
.flex-center {
display: flex;
align-items: center;
}
.id-identity-box {
.txt {
padding-top: 8rpx;
......@@ -490,16 +529,19 @@
}
}
}
.right-label {
font-size: 24rpx;
color: #2272FF;
margin-left: 4rpx;
line-height: 22rpx;
.slected {
font-size: 28rpx;
color: #333333;
}
}
.right-label {
font-size: 24rpx;
color: #2272FF;
margin-left: 4rpx;
line-height: 22rpx;
.slected {
font-size: 28rpx;
color: #333333;
}
}
.title {
padding: 30rpx 0 40rpx;
text-align: center;
......@@ -510,35 +552,25 @@
}
.seat {
padding-bottom: 144rpx;
padding-bottom: 168rpx;
}
/*提交按钮*/
.btn-wrap {
//position: fixed;
//left: 0;
//right: 0;
//bottom: 0;
padding: 30rpx 0;
background: #D1D4D4;
width: 100%;
.btn-submit {
width: 600rpx;
// left: 5%;
// bottom: px2rem(36);
height: 104rpx;
line-height: 104rpx;
border-radius: 52rpx;
background: #2272ff;
background: #2272FF;
font-size: 32rpx;
color: #fff;
&[disabled] {
border: 2rpx solid #999;
background-color: #f3f3f3;
color: #999;
background-color: #D1D4D4;
color: #FFFFFF;
}
}
}
......@@ -558,11 +590,13 @@
font-weight: bold;
color: #333333;
}
.itemInput {
background-color: #FFFFFF;
width: 65%;
text-align: right;
font-size: 28rpx;
color: #333333;
}
......@@ -616,10 +650,23 @@
.area {
max-width: 400rpx;
color: #333333;
font-size: 28rpx;
&.before {
color: #2272FF;
font-size: 24rpx;
}
}
.address-view {
border: 2rpx solid #ECECEC;
height: 112rpx;
margin-top: 30rpx;
padding: 16rpx 30rpx;
}
.address-textarea {
font-size: 26rpx;
}
.address-view {
border: 2rpx solid #ECECEC;
height: 112rpx;
margin-top: 30rpx;
}
</style>
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