Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
S
study
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
Damon
study
Commits
c59549a8
Commit
c59549a8
authored
Aug 12, 2021
by
linwenqing
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
improvement:证书模块刚进去改成不用登陆,点击查询或者切换到证书列表页提示登陆
parent
66456c98
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
16 additions
and
7 deletions
+16
-7
cert.vue
src/pages/index/cert.vue
+16
-7
No files found.
src/pages/index/cert.vue
View file @
c59549a8
...
@@ -177,7 +177,13 @@ export default {
...
@@ -177,7 +177,13 @@ export default {
this
.
checkType
=
'特种作业操作证查询'
this
.
checkType
=
'特种作业操作证查询'
},
},
onShow
:
function
(
param
)
{
onShow
:
function
(
param
)
{
if
(
!
this
.
vuex_token
)
{
},
onUnload
(){
uni
.
hideLoading
()
},
methods
:
{
toLogin
(){
this
.
$refs
.
uToast
.
show
({
this
.
$refs
.
uToast
.
show
({
title
:
'请先登录'
,
title
:
'请先登录'
,
type
:
'error'
,
type
:
'error'
,
...
@@ -188,13 +194,12 @@ export default {
...
@@ -188,13 +194,12 @@ export default {
url
:
'pages/login/index'
,
url
:
'pages/login/index'
,
})
})
},
1000
)
},
1000
)
}
},
},
onUnload
(){
uni
.
hideLoading
()
},
methods
:
{
submit
(){
submit
(){
if
(
!
this
.
vuex_token
)
{
this
.
toLogin
()
return
}
if
(
!
this
.
certId
){
if
(
!
this
.
certId
){
this
.
$refs
.
uToast
.
show
({
this
.
$refs
.
uToast
.
show
({
title
:
'请填写证件号码!'
,
title
:
'请填写证件号码!'
,
...
@@ -395,6 +400,10 @@ export default {
...
@@ -395,6 +400,10 @@ export default {
this
.
$refs
.
uTabs
.
setFinishCurrent
(
current
)
this
.
$refs
.
uTabs
.
setFinishCurrent
(
current
)
this
.
swiperCurrent
=
current
this
.
swiperCurrent
=
current
this
.
tabsChange
(
current
)
this
.
tabsChange
(
current
)
if
(
current
==
1
&&
!
this
.
vuex_token
)
{
this
.
toLogin
()
return
}
this
.
current
=
current
this
.
current
=
current
},
},
},
},
...
...
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