Commit 326c2269 authored by linwenqing's avatar linwenqing

Merge branch 'dev-fix-auth' into test

parents 7aaec8af c59549a8
......@@ -177,7 +177,13 @@ export default {
this.checkType = '特种作业操作证查询'
},
onShow: function(param) {
if (!this.vuex_token) {
},
onUnload(){
uni.hideLoading()
},
methods: {
toLogin(){
this.$refs.uToast.show({
title: '请先登录',
type: 'error',
......@@ -188,13 +194,12 @@ export default {
url: 'pages/login/index',
})
}, 1000)
}
},
onUnload(){
uni.hideLoading()
},
methods: {
},
submit(){
if (!this.vuex_token) {
this.toLogin()
return
}
if(!this.certId){
this.$refs.uToast.show({
title: '请填写证件号码!',
......@@ -395,6 +400,10 @@ export default {
this.$refs.uTabs.setFinishCurrent(current)
this.swiperCurrent = current
this.tabsChange(current)
if (current == 1 && !this.vuex_token) {
this.toLogin()
return
}
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