路线锁定定时提示弹窗
This commit is contained in:
@@ -64,10 +64,19 @@
|
||||
})
|
||||
},
|
||||
Quit () {
|
||||
this.$store.dispatch('delUserInfo', '')
|
||||
uni.redirectTo({
|
||||
url: '/pages/login/login'
|
||||
})
|
||||
if (this.$store.getters.routeStatus) {
|
||||
uni.showModal({
|
||||
title: '提示',
|
||||
showCancel: false,
|
||||
content: '路线锁定未释放,请操作完成再退出!'
|
||||
})
|
||||
return
|
||||
}
|
||||
this.$store.dispatch('delUserInfo', '')
|
||||
this.$globalData.stopTimer()
|
||||
uni.redirectTo({
|
||||
url: '/pages/login/login'
|
||||
})
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -53,6 +53,7 @@
|
||||
this.versionCode = info.versionCode ;
|
||||
})
|
||||
//#endif
|
||||
this.$globalData.stopTimer()
|
||||
},
|
||||
methods: {
|
||||
isUpdate () {
|
||||
|
||||
@@ -28,6 +28,7 @@
|
||||
import NavBar from '@/components/NavBar.vue'
|
||||
import SearchBox from '@/components/SearchBox.vue'
|
||||
import {updateRouteStatus} from '@/utils/getData2.js'
|
||||
// import {updateRouteStatus} from '@/utils/mork2.js'
|
||||
export default {
|
||||
components: {
|
||||
NavBar,
|
||||
@@ -78,6 +79,14 @@
|
||||
title: res.message,
|
||||
icon: 'none'
|
||||
})
|
||||
this.$globalData.stopTimer()
|
||||
if (type === '1') {
|
||||
this.$store.dispatch('setRouteStatus', true)
|
||||
this.$globalData.startTimer()
|
||||
} else {
|
||||
this.$store.dispatch('delRouteStatus', false)
|
||||
this.$globalData.stopTimer()
|
||||
}
|
||||
} catch (e) {
|
||||
this.disabled = false
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user