|
@@ -97,7 +97,7 @@
|
|
},
|
|
},
|
|
methods: {
|
|
methods: {
|
|
...mapMutations('m_user', ['updateUserInfo', 'updateToken']),
|
|
...mapMutations('m_user', ['updateUserInfo', 'updateToken']),
|
|
- ...mapMutations('m_business', ['updateCurrentHotel']),
|
|
|
|
|
|
+ ...mapMutations('m_business', ['updateCurrentHotel', 'updateIdCardInfo']),
|
|
navigateTo(url) {
|
|
navigateTo(url) {
|
|
if (url !== '' && url !== null && url !== undefined) {
|
|
if (url !== '' && url !== null && url !== undefined) {
|
|
if (url === '/pages/order/order') {
|
|
if (url === '/pages/order/order') {
|
|
@@ -117,12 +117,15 @@
|
|
console.log(this.token)
|
|
console.log(this.token)
|
|
let res = await uni.$http.post('/logout')
|
|
let res = await uni.$http.post('/logout')
|
|
console.log(res)
|
|
console.log(res)
|
|
- uni.redirectTo({
|
|
|
|
- url: '/pages/login/login'
|
|
|
|
- })
|
|
|
|
this.updateUserInfo({name:''})
|
|
this.updateUserInfo({name:''})
|
|
this.updateToken('')
|
|
this.updateToken('')
|
|
this.updateCurrentHotel({})
|
|
this.updateCurrentHotel({})
|
|
|
|
+ this.updateIdCardInfo([])
|
|
|
|
+
|
|
|
|
+ uni.redirectTo({
|
|
|
|
+ url: '/pages/login/login'
|
|
|
|
+ })
|
|
|
|
+
|
|
},
|
|
},
|
|
renderPhoneNumber(str) {
|
|
renderPhoneNumber(str) {
|
|
if(!stringHasText(this.userInfo.phone)) return ""
|
|
if(!stringHasText(this.userInfo.phone)) return ""
|