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
5eeb2915
Commit
5eeb2915
authored
May 25, 2021
by
linwenqing
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
update:证件上传
parent
81cf000b
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
33 additions
and
29 deletions
+33
-29
detail.vue
src/pages/mine/cert/detail.vue
+5
-2
index.vue
src/pages/mine/cert/index.vue
+18
-8
upload.vue
src/pages/mine/cert/upload.vue
+10
-19
No files found.
src/pages/mine/cert/detail.vue
View file @
5eeb2915
...
...
@@ -9,8 +9,10 @@
title-bold=
"true"
></u-navbar>
<view
class=
"content-cody"
>
<view
class=
"title"
>
{{
info
.
type
}}
</view>
<view
class=
"content"
v-for=
"item in info.url"
><image
:src=
"item"
mode=
"aspectFit"
></image></view>
<view
v-for=
"item,key in info.url"
:key=
"key"
>
<view
class=
"title"
>
{{
info
.
desc
[
key
]
}}
</view>
<image
class=
"content"
:src=
"item"
mode=
"aspectFit"
></image>
</view>
</view>
</view>
</
template
>
...
...
@@ -34,6 +36,7 @@
let
urlArr
=
data
.
url
.
split
(
','
);
that
.
info
.
type
=
data
.
type
;
that
.
info
.
url
=
urlArr
;
that
.
info
.
desc
=
data
.
desc
;
console
.
log
(
urlArr
);
}
catch
(
e
){}
console
.
log
(
that
.
info
);
...
...
src/pages/mine/cert/index.vue
View file @
5eeb2915
...
...
@@ -31,56 +31,65 @@
isUpload
:
false
,
isUploadName
:
"未上传"
,
keyName
:
"id_card"
,
color
:
"#999999"
color
:
"#999999"
,
desc
:
[
'身份证人像面'
,
'身份证国徽面'
],
},
electrician_certificate
:
{
name
:
"电工证"
,
isUpload
:
false
,
isUploadName
:
"未上传"
,
keyName
:
"electrician_certificate"
,
color
:
"#999999"
color
:
"#999999"
,
desc
:
[
'电工证正面'
],
},
driver_license
:
{
name
:
"驾驶证"
,
isUpload
:
false
,
isUploadName
:
"未上传"
,
keyName
:
"driver_license"
,
color
:
"#999999"
color
:
"#999999"
,
desc
:
[
'驾驶证正面'
],
},
driving_license
:
{
name
:
"行驶证"
,
isUpload
:
false
,
isUploadName
:
"未上传"
,
keyName
:
"driving_license"
,
color
:
"#999999"
color
:
"#999999"
,
desc
:
[
'行驶证正面'
],
},
vehicle
:
{
name
:
"车辆照"
,
isUpload
:
false
,
isUploadName
:
"未上传"
,
keyName
:
"vehicle"
,
color
:
"#999999"
color
:
"#999999"
,
desc
:
[
'车辆正面/看到车牌'
,
'车辆侧面/看到外观'
],
},
high_sky_license
:
{
name
:
"高空证"
,
isUpload
:
false
,
isUploadName
:
"未上传"
,
keyName
:
"high_sky_license"
,
color
:
"#999999"
color
:
"#999999"
,
desc
:
[
'高空证正面'
],
},
refrigeration_license
:
{
name
:
"制冷证"
,
isUpload
:
false
,
isUploadName
:
"未上传"
,
keyName
:
"refrigeration_license"
,
color
:
"#999999"
color
:
"#999999"
,
desc
:
[
'制冷证正面'
],
},
business_license
:
{
name
:
"营业执照"
,
isUpload
:
false
,
isUploadName
:
"未上传"
,
keyName
:
"business_license"
,
color
:
"#999999"
color
:
"#999999"
,
desc
:
[
'营业执照正面'
],
},
}
}
...
...
@@ -111,6 +120,7 @@
},
toDetail
(
key
)
{
let
data
=
this
.
list
[
key
].
data
;
data
.
desc
=
this
.
list
[
key
].
desc
;
if
(
data
.
status
!=
1
){
wx
.
navigateTo
({
url
:
'/pages/mine/cert/upload?type='
+
data
.
type_key
...
...
src/pages/mine/cert/upload.vue
View file @
5eeb2915
...
...
@@ -12,20 +12,15 @@
请点击上传图片,图片大小不大于3M
</view>
<view
class=
"upload-container"
>
<view
class=
"img-container"
v-for=
"(item, index) in imgList[key].desc"
:class=
"
{'u-margin-left-30': index>0}" :key="index">
<image
class=
"upload-img"
@
click=
"handleClick(type, index)"
:src=
"imgs[index]"
mode=
"aspectFill"
>
<view
class=
"img-container"
v-for=
"(item, index) in imgList[key].desc"
:key=
"index"
>
<image
class=
"upload-img"
@
click=
"handleClick(type, index)"
:src=
"imgs[index]"
mode=
"widthFix"
>
</image>
<text
class=
"img-desc"
>
{{
item
}}
</text>
</view>
</view>
<view
class=
"notice-bottom"
>
<image
:src=
"icon"
class=
"icon"
></image>
<text
class=
"u-padding-left-10"
>
若无需上传证件反面照,则点击上传正面照即可
</text>
</view>
<view
class=
"button-container"
>
<view
class=
"submit-button"
:class=
"
{'is-ok': isOk}" @click="submitCert()">提交
</view>
</view>
</view>
<view
class=
"button-container"
>
<view
class=
"submit-button"
:class=
"
{'is-ok': isOk}" @click="submitCert()">提交
</view>
</view>
</view>
</
template
>
...
...
@@ -45,8 +40,8 @@
type
:
null
,
isOk
:
false
,
imgs
:
[
process
.
uniEnv
.
qn_base_url
+
"s
ahgnchuanzhaopian
.png"
,
process
.
uniEnv
.
qn_base_url
+
"s
ahgnchuanzhaopian
.png"
,
process
.
uniEnv
.
qn_base_url
+
"s
hangchuanzhaopian-big
.png"
,
process
.
uniEnv
.
qn_base_url
+
"s
hangchuanzhaopian-big
.png"
,
],
imgList
:
[{
typeKey
:
'id_card'
,
...
...
@@ -225,7 +220,7 @@
height
:
104
rpx
;
background
:
#D1D4D4
;
border-radius
:
52
rpx
;
margin-top
:
2
50
rpx
;
margin-top
:
2
24
rpx
;
text-align
:
center
;
line-height
:
104
rpx
;
display
:
inline-block
;
...
...
@@ -240,16 +235,12 @@
.button-container
{
text-align
:
center
;
}
.upload-container
{
display
:
flex
;
padding-bottom
:
30
rpx
;
}
.upload-img
{
margin-top
:
30
rpx
;
width
:
300
rpx
;
height
:
226
rpx
;
width
:
100%
;
}
.two
{
...
...
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