diff --git a/src/views/Home/Home.vue b/src/views/Home/Home.vue
index c53f1f1..eddf6ae 100644
--- a/src/views/Home/Home.vue
+++ b/src/views/Home/Home.vue
@@ -12,7 +12,7 @@
{{ schoolNamesChoose.schoolName }}
-
{{ phoneDesensitization(userInfo.phone,'*') }}
+ {{ phoneDesensitization(userInfo.phone, '*') }}
@@ -91,7 +91,7 @@ export default {
showChildList: false,
showSchool: false,
schoolNamesChoose: '',
- isWechat:false
+ isWechat: false,
}
},
@@ -106,9 +106,9 @@ export default {
this.schoolNamesChoose = JSON.parse(schoolNamesChoose)
}
let isWechat = localStorage.getItem('isWechat')
- if(isWechat==1){
- this.isWechat = true
- }
+ if (isWechat == 1) {
+ this.isWechat = true
+ }
this.centerNo = localStorage.getItem('centerNo')
this.getUserInfo()
this.againRZ()
@@ -183,20 +183,20 @@ export default {
},
//五星少年
handleStars() {
- this.$router.push({name: 'stars'})
+ this.$router.push({ name: 'stars' })
},
// 清除缓存
handleClearCache() {
this.$toast.loading({
- message: '正在清除',
+ message: '清除成功,正在重新登录',
duration: 1000,
forbidClick: true,
})
+ localStorage.removeItem('schoolNamesChoose')
+ localStorage.removeItem('schoolNames')
+ localStorage.removeItem('centerNo')
setTimeout(() => {
- this.$toast('清除成功')
- localStorage.removeItem('schoolNamesChoose')
- localStorage.removeItem('schoolNames')
- this.getUserInfo()
+ this.$router.replace({ path: '/' })
}, 1000)
},
// 获取用户信息
diff --git a/src/views/Service/ServiceBaseKQ.vue b/src/views/Service/ServiceBaseKQ.vue
index 180c5e5..e22ca7b 100644
--- a/src/views/Service/ServiceBaseKQ.vue
+++ b/src/views/Service/ServiceBaseKQ.vue
@@ -98,20 +98,6 @@ export default {
loading: false,
}
},
- watch: {
- $route: {
- immediate: true,
- handler() {
- // 设置tabbar状态
- let showTab = this.$route.query.showTab
- this.tabName = showTab || 'KQ'
- // document.title = showTab == 'ZZY' ? '周周营' : '红色网上游——柯桥研学'
- this.$nextTick(() => {
- this.$refs.tabs.resize()
- })
- },
- },
- },
mounted() {
console.log('base mounted')
// alert('servicebase show')
diff --git a/src/views/Service/ServiceKQ.vue b/src/views/Service/ServiceKQ.vue
index 3dd959f..d7d8445 100644
--- a/src/views/Service/ServiceKQ.vue
+++ b/src/views/Service/ServiceKQ.vue
@@ -4,7 +4,7 @@