Commit 326c2269 authored by linwenqing's avatar linwenqing

Merge branch 'dev-fix-auth' into test

parents 7aaec8af 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
}, },
}, },
......
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