Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
S
self-support
Project
Project
Details
Activity
Releases
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
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
李俊赕
self-support
Commits
46e9c300
Commit
46e9c300
authored
Apr 16, 2021
by
Facius
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
入驻资料第二页
parent
1667210c
Changes
4
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
193 additions
and
69 deletions
+193
-69
base.vue
src/pages/settle/base.vue
+24
-24
file.vue
src/pages/settle/file.vue
+160
-36
prompt.vue
src/pages/settle/prompt.vue
+9
-9
tishi@3x.png
src/static/settle/tishi@3x.png
+0
-0
No files found.
src/pages/settle/base.vue
View file @
46e9c300
...
@@ -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
;
...
...
src/pages/settle/file.vue
View file @
46e9c300
...
@@ -5,19 +5,47 @@
...
@@ -5,19 +5,47 @@
<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=
"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>
<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"
>
<view
class=
"item item-select flex flex-yc"
:key=
"index"
@
click=
"toUploadImg(fileItem, index)"
>
<view
class=
"item item-select flex flex-yc"
:key=
"index"
@
click=
"toUploadImg(fileItem, index)"
>
...
@@ -75,6 +103,7 @@
...
@@ -75,6 +103,7 @@
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
,
...
@@ -160,11 +195,35 @@
...
@@ -160,11 +195,35 @@
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
;
}
}
...
@@ -517,15 +591,65 @@
...
@@ -517,15 +591,65 @@
}
}
}
}
}
}
.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
;
}
}
}
/* .back_view{
.info-view
{
margin-bottom
:
188rpx
;
.title-view
{
background-color
:
#FFFFFF
;
background-color
:
#FFFFFF
;
position: absolute;
border-radius
:
12rpx
;
top: 0;
padding
:
38rpx
30rpx
30rpx
30rpx
;
left: 0;
margin-bottom
:
20rpx
;
width: 100%;
font-size
:
32rpx
;
color
:
#333333
;
.title-image
{
width
:
24rpx
;
height
:
24rpx
;
margin-right
:
10rpx
;
}
}
.info-tip-text
{
font-size
:
24rpx
;
color
:
#666666
;
}
.image-view
{
margin-top
:
30rpx
;
display
:
flex
;
display
:
flex
;
flex-direction: column;
justify-content
:
space-between
;
.info-image
{
width
:
300rpx
;
height
:
226rpx
;
}
}
}
}
*/
</
style
>
</
style
>
src/pages/settle/prompt.vue
View file @
46e9c300
src/static/settle/tishi@3x.png
0 → 100644
View file @
46e9c300
2.05 KB
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