Commit 46e9c300 authored by Facius's avatar Facius

入驻资料第二页

parent 1667210c
<template> <template>
<view class="back_view"> <view class="back_view">
<Settle :index="2"> <Settle :index="2">
<view class="base-list"> <view class="base-list">
<view class="tip-text"> <view class="tip-text">
<image class="tip-image" mode="widthFix" src="../../static/settle/anquan@3x.png"></image> <image class="tip-image" mode="widthFix" src="../../static/settle/anquan@3x.png"></image>
<text>身份证照片、电工证照片、行驶证/驾驶证照片及车辆照片仅用于申请入驻。</text> <text>身份证照片、电工证照片、行驶证/驾驶证照片及车辆照片仅用于申请入驻。</text>
</view> </view>
<view class="base-item"> <view class="base-item">
<view class="item item-select" @click="gopage('/pages/settle/select?selectType=area')"> <view class="item item-select" @click="gopage('/pages/settle/select?selectType=area')">
...@@ -51,7 +51,7 @@ ...@@ -51,7 +51,7 @@
<text class="itemTitle">详细地址</text> <text class="itemTitle">详细地址</text>
</view> </view>
<view class="flex-center"> <view class="flex-center">
<image class="item-image" src="../../static/settle/dizhi@3x.png"></image> <image class="item-image-l" src="../../static/settle/dizhi@3x.png"></image>
<text class="right-label blueColor">自动定位</text> <text class="right-label blueColor">自动定位</text>
</view> </view>
</view> </view>
...@@ -426,7 +426,7 @@ ...@@ -426,7 +426,7 @@
margin-right: 10rpx; margin-right: 10rpx;
} }
.item-image { .item-image-l {
width: 26rpx; width: 26rpx;
height: 30rpx; height: 30rpx;
margin-right: 6rpx; margin-right: 6rpx;
...@@ -672,23 +672,23 @@ ...@@ -672,23 +672,23 @@
.address-textarea { .address-textarea {
font-size: 26rpx; font-size: 26rpx;
} }
.tip-text { .tip-text {
background-color: #FFFFFF; background-color: #FFFFFF;
border-radius: 12rpx; border-radius: 12rpx;
padding: 38rpx 30rpx 30rpx 30rpx; padding: 38rpx 30rpx 30rpx 30rpx;
height: 140rpx; height: 140rpx;
margin-bottom: 20rpx; margin-bottom: 20rpx;
font-size: 24rpx; font-size: 24rpx;
color: #000000; color: #000000;
display: flex; display: flex;
align-items: flex-start; align-items: flex-start;
} }
.tip-image { .tip-image {
width: 34rpx; width: 34rpx;
margin-right: 8rpx; margin-right: 8rpx;
margin-top: 2rpx; margin-top: 2rpx;
} }
</style> </style>
...@@ -4,19 +4,47 @@ ...@@ -4,19 +4,47 @@
<view class="tip-text"> <view class="tip-text">
<image class="tip-image" mode="widthFix" src="../../static/settle/anquan@3x.png"></image> <image class="tip-image" mode="widthFix" src="../../static/settle/anquan@3x.png"></image>
<text>身份证照片、电工证照片、行驶证/驾驶证照片及车辆照片仅用于申请入驻。</text> <text>身份证照片、电工证照片、行驶证/驾驶证照片及车辆照片仅用于申请入驻。</text>
</view>
<view class="info-view">
<view v-for="(fileItem, index) in formShowList" class="title-view" :key="index">
<view>
<image class="title-image" src="../../static/settle/mixing@3x.png"></image>
<text>{{ fileItem.label }}</text>
</view>
<view class="info-tip-text">{{ fileItem.tips }}</view>
<view class="image-view">
<image class="info-image" mode="aspectFill" v-for="(src, key) in fileItem.placeholderImages"
:src="fileItem.imgs.length > key ? fileItem.imgs[key] : src" :key="src + key"
@click="handleClick(fileItem, index, key)"></image>
</view>
<view v-if="index == 0" class="bottom-tip-view">
<image class="bottom-tip-image" mode="widthFix" src="../../static/settle/tishi@3x.png"></image>
<text>所上传的身份证信息必须与银行卡开户绑定身份证信息一致,否则将导致订单报酬无法交付</text>
</view>
<view class="card-info-view" v-if="index == 0 && (fileInfo.id_card_name || fileInfo.id_card_number || fileInfo.id_card_date)">
<view class="card-list-view" v-for="(value, cardkey) in cardTitle" :key="cardkey">
<view class="card-list-item">
<text>{{value}}</text>
<text class="card-item-text">{{fileInfo[cardkey]}}</text>
</view>
<view class="line-view"></view>
<view class="card-item-error" v-if="fileInfo[cardkey] && (cardkey == 'id_card_date' ? fileInfo.id_card_back : fileInfo.id_card_front)">识别失败,请重新上传</view>
</view>
</view>
</view>
</view> </view>
<template v-slot:bottom> <template v-slot:bottom>
<view class="btn-wrap flex-xc"> <view class="btn-wrap flex-xc">
<button class="btn-submit" :disabled="!submitBtnStatus" @click="$u.debounce(submitFileInfo, 500)"> <button class="btn-submit" :disabled="!submitBtnStatus" @click="$u.debounce(submitFileInfo, 500)">
{{ {{!submitBtnStatus ? "完成必填项,可提交资料" : "提交"}}
!submitBtnStatus ? "完成必填项,可提交资料" : "提交"
}}
</button> </button>
</view> </view>
</template> </template>
<view class="base-list"> <view class="base-list">
<template v-for="(fileItem, index) in formShowList"> <template v-for="(fileItem, index) in formShowList">
...@@ -74,7 +102,8 @@ ...@@ -74,7 +102,8 @@
fileInfo: { fileInfo: {
id: "", id: "",
id_card_name: "", id_card_name: "",
id_card_number: "", id_card_number: "",
id_card_date: '',
id_card_front: "", id_card_front: "",
id_card_back: "", id_card_back: "",
electrician_certificate: "", electrician_certificate: "",
...@@ -92,41 +121,47 @@ ...@@ -92,41 +121,47 @@
formShowList: [{ formShowList: [{
filedName: "id_card_front", filedName: "id_card_front",
required: true, required: true,
maxImgs: 1, maxImgs: 2,
label: "身份证人像面", label: "实名认证",
tips: "(必选项)拍身份证人像面,证件需清晰可见", tips: "上传二代身份证照片,图片大小不大于3M",
imgs: [], imgs: [],
placeholderImages: ['../../static/settle/renxiang@3x.png', '../../static/settle/guohui@3x.png']
}, },
// {
// filedName: "id_card_back",
// required: true,
// label: "身份证国徽面",
// maxImgs: 1,
// tips: "上传二代身份证照片,图片大小不大于3M",
// imgs: [],
// },
{ {
filedName: "id_card_back", filedName: "electrician_certificate",
label: "电工证照",
required: true, required: true,
label: "身份证国徽面",
maxImgs: 1, maxImgs: 1,
tips: "(必选项)拍身份证国徽面,证件需清晰可见", tips: "上传电工证证照片,图片大小不大于3M",
imgs: [], imgs: [],
placeholderImages: ['../../static/settle/diangong@3x.png']
}, },
{ {
filedName: "electrician_certificate", filedName: "other_certificates",
label: "电工证照", label: "驾驶证/行驶证照片",
required: true,
maxImgs: 1,
tips: "(必选项)拍电工证照,证件需清晰可见",
imgs: [], imgs: [],
maxImgs: 999,
tips: "两证单张照片需包含两页内容,图片大小不大于3M",
placeholderImages: ['../../static/settle/jiashi@3x.png', '../../static/settle/jiashi@3x.png']
}, },
{ {
filedName: "vehicle_photos", filedName: "vehicle_photos",
label: "车辆照", label: "车辆照",
maxImgs: 1, maxImgs: 1,
tips: "(可选项)45度拍摄车辆照片,车牌清晰可见", tips: "两证单张照片需包含两页内容,图片大小不大于3M",
imgs: [],
},
{
filedName: "other_certificates",
label: "其他工作证件",
imgs: [], imgs: [],
maxImgs: 999, placeholderImages: ['../../static/settle/zhengmian@3x.png',
tips: "(可选项)可拍多张", '../../static/settle/cemian@3x.png']
}, },
], ],
submitSuccess: false, submitSuccess: false,
saving: false, saving: false,
...@@ -159,12 +194,36 @@ ...@@ -159,12 +194,36 @@
const fileInfo = this.fileInfo const fileInfo = this.fileInfo
const flag = fileInfo.id_card_front && fileInfo.id_card_back && fileInfo.electrician_certificate const flag = fileInfo.id_card_front && fileInfo.id_card_back && fileInfo.electrician_certificate
return flag && !this.saving; return flag && !this.saving;
}, },
cardTitle() {
return {
'id_card_name': '姓名',
'id_card_number': '身份证号',
'id_card_date': '有效期'
}
}
}, },
components: { components: {
}, },
methods: { methods: {
// item: formShowList的元素
// index、key: 选中的是formShowList的第index里面的第key个图片选择器
handleClick(item, index, key) {
switch (index) {
case 0:
// 身份证
// 上传图片
// 成功之后更新 fileInfo、 item里的imgs
break;
default:
//其他
// 上传图片
// 成功之后更新 item里的imgs
break;
}
},
updateImgs() { updateImgs() {
const uploadType = this.uploadType const uploadType = this.uploadType
const uploadImgs = this.imgObj[uploadType] const uploadImgs = this.imgObj[uploadType]
...@@ -494,6 +553,21 @@ ...@@ -494,6 +553,21 @@
margin-top: 2rpx; margin-top: 2rpx;
} }
.bottom-tip-view {
color: #999999;
font-size: 20rpx;
display: flex;
align-items: flex-start;
margin-top: 30rpx;
}
.bottom-tip-image {
width: 24rpx;
height: 24rpx;
margin-right: 8rpx;
margin-top: 4rpx;
}
.seat { .seat {
padding-bottom: 144rpx; padding-bottom: 144rpx;
} }
...@@ -516,16 +590,66 @@ ...@@ -516,16 +590,66 @@
color: #FFFFFF; color: #FFFFFF;
} }
} }
} }
.card-info-view {
margin-top: 30rpx;
.card-list-view {
.card-list-item {
display: flex;
justify-content: space-between;
font-size: 28rpx;
margin-top: 20rpx;
margin-bottom: 20rpx;
color: #333333;
.card-item-text {
color: #666666;
width: 60%;
}
}
.line-view {
background-color: #F4F5F7;
height: 2rpx;
width: 100%;
}
.card-item-error{
color: red;
font-size: 20rpx;
}
}
}
.info-view {
margin-bottom: 188rpx;
.title-view {
background-color: #FFFFFF;
border-radius: 12rpx;
padding: 38rpx 30rpx 30rpx 30rpx;
margin-bottom: 20rpx;
font-size: 32rpx;
color: #333333;
/* .back_view{ .title-image {
background-color: #FFFFFF; width: 24rpx;
position: absolute; height: 24rpx;
top: 0; margin-right: 10rpx;
left: 0; }
width: 100%; }
display: flex;
flex-direction: column; .info-tip-text {
font-size: 24rpx;
color: #666666;
}
.image-view {
margin-top: 30rpx;
display: flex;
justify-content: space-between;
.info-image {
width: 300rpx;
height: 226rpx;
}
}
} }
*/
</style> </style>
...@@ -163,11 +163,11 @@ ...@@ -163,11 +163,11 @@
width: 750rpx; width: 750rpx;
// height:500rpx; // height:500rpx;
display: flex; display: flex;
flex-direction: column; flex-direction: column;
background-color: #F4F5F7; background-color: #F4F5F7;
height: 100%; height: 100%;
position: absolute; position: absolute;
.icon { .icon {
margin-top: 68rpx; margin-top: 68rpx;
width: 334rpx; width: 334rpx;
...@@ -182,11 +182,11 @@ ...@@ -182,11 +182,11 @@
.content-view { .content-view {
background-color: #FFFFFF; background-color: #FFFFFF;
margin-bottom: 188rpx; margin-bottom: 188rpx;
border-radius: 12rpx; border-radius: 12rpx;
padding: 30rpx; padding: 30rpx;
} }
.txt-box { .txt-box {
padding-bottom: 50rpx; padding-bottom: 50rpx;
} }
...@@ -200,9 +200,9 @@ ...@@ -200,9 +200,9 @@
color: #2272FF; color: #2272FF;
&.active { &.active {
color: #666666; color: #666666;
font-size: 24rpx; font-size: 24rpx;
font-weight: 300rpx; font-weight: 300rpx;
margin-top: 26rpx; margin-top: 26rpx;
} }
} }
......
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