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
bcd1998c
Commit
bcd1998c
authored
May 25, 2021
by
linwenqing
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'dev-fix' into test
parents
b46fec28
6faea5e4
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
32 additions
and
9 deletions
+32
-9
index.vue
src/pages/mine/cert/index.vue
+32
-9
No files found.
src/pages/mine/cert/index.vue
View file @
bcd1998c
...
...
@@ -33,6 +33,7 @@
keyName
:
"id_card"
,
color
:
"#999999"
,
desc
:
[
'身份证人像面'
,
'身份证国徽面'
],
data
:
{}
},
electrician_certificate
:
{
name
:
"电工证"
,
...
...
@@ -40,8 +41,8 @@
isUploadName
:
"未上传"
,
keyName
:
"electrician_certificate"
,
color
:
"#999999"
,
desc
:
[
'电工证正面'
],
data
:
{}
},
driver_license
:
{
name
:
"驾驶证"
,
...
...
@@ -50,6 +51,7 @@
keyName
:
"driver_license"
,
color
:
"#999999"
,
desc
:
[
'驾驶证正面'
],
data
:
{}
},
driving_license
:
{
name
:
"行驶证"
,
...
...
@@ -58,6 +60,7 @@
keyName
:
"driving_license"
,
color
:
"#999999"
,
desc
:
[
'行驶证正面'
],
data
:
{}
},
vehicle
:
{
name
:
"车辆照"
,
...
...
@@ -66,6 +69,7 @@
keyName
:
"vehicle"
,
color
:
"#999999"
,
desc
:
[
'车辆正面/看到车牌'
,
'车辆侧面/看到外观'
],
data
:
{}
},
high_sky_license
:
{
name
:
"高空证"
,
...
...
@@ -74,6 +78,7 @@
keyName
:
"high_sky_license"
,
color
:
"#999999"
,
desc
:
[
'高空证正面'
],
data
:
{}
},
refrigeration_license
:
{
name
:
"制冷证"
,
...
...
@@ -82,6 +87,7 @@
keyName
:
"refrigeration_license"
,
color
:
"#999999"
,
desc
:
[
'制冷证正面'
],
data
:
{}
},
business_license
:
{
name
:
"营业执照"
,
...
...
@@ -90,6 +96,7 @@
keyName
:
"business_license"
,
color
:
"#999999"
,
desc
:
[
'营业执照正面'
],
data
:
{}
},
}
}
...
...
@@ -103,13 +110,18 @@
if
(
res
.
code
!=
200
){
return
}
for
(
let
key
in
this
.
list
){
let
getData
=
res
.
data
[
key
];
this
.
list
[
key
].
isUpload
=
getData
.
status
;
this
.
list
[
key
].
isUploadName
=
getData
.
status
==
1
?
'已上传'
:
'未上传'
;
this
.
list
[
key
].
color
=
getData
.
status
==
1
?
"#999999"
:
"#2272FF"
;
this
.
list
[
key
].
iconColor
=
getData
.
status
==
1
?
"#2272FF"
:
"#999999"
;
this
.
list
[
key
].
data
=
getData
;
if
(
res
.
data
.
length
<=
0
){
this
.
list
[
key
].
data
=
{}
}
else
{
let
getData
=
res
.
data
[
key
];
this
.
list
[
key
].
isUpload
=
getData
.
status
;
this
.
list
[
key
].
isUploadName
=
getData
.
status
==
1
?
'已上传'
:
'未上传'
;
this
.
list
[
key
].
color
=
getData
.
status
==
1
?
"#999999"
:
"#2272FF"
;
this
.
list
[
key
].
iconColor
=
getData
.
status
==
1
?
"#2272FF"
:
"#999999"
;
this
.
list
[
key
].
data
=
getData
;
}
}
}).
catch
((
err
)
=>
{
});
...
...
@@ -119,8 +131,19 @@
return
typeBool
?
'已上传'
:
'未上传'
},
toDetail
(
key
)
{
let
data
=
this
.
list
[
key
].
data
;
data
.
desc
=
this
.
list
[
key
].
desc
;
let
data
=
null
;
if
(
this
.
list
[
key
].
data
.
length
==
undefined
||
this
.
list
[
key
].
data
.
length
<=
0
){
data
=
{
type
:
key
,
url
:
""
,
desc
:
this
.
list
[
key
].
desc
,
status
:
0
,
type_key
:
key
}
}
else
{
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
...
...
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