调整登录逻辑退出登录调整拦截器新增路由通配404也买呢
This commit is contained in:
@@ -68,7 +68,7 @@
|
||||
<view @click="loginOut" class="list-item">
|
||||
<view class="list-item-left">
|
||||
<image src="/static/imgs/reset-info.png" mode="widthFix" />
|
||||
<span>切换账户</span>
|
||||
<span>退出登录</span>
|
||||
</view>
|
||||
<u-icon name="arrow-right" color="#f1f1f1" size="28" />
|
||||
</view>
|
||||
@@ -110,13 +110,7 @@
|
||||
}
|
||||
},
|
||||
onShow() {
|
||||
wx.login({
|
||||
success: res => {
|
||||
this.loginCode = res.code
|
||||
}
|
||||
})
|
||||
this.getUserInfo()
|
||||
|
||||
},
|
||||
onPullDownRefresh() {
|
||||
this.getUserInfo()
|
||||
@@ -124,7 +118,6 @@
|
||||
methods: {
|
||||
// 是否个人认证
|
||||
certificationClick(certfication) {
|
||||
console.log(certfication)
|
||||
if (certfication.is_true) {
|
||||
// 跳转到个人认证信息完成展示页面
|
||||
// this.$refs.uToast.show({
|
||||
@@ -146,7 +139,6 @@
|
||||
},
|
||||
// 是否展示企业信息 企业认证 -1.未认证,0.审核中,1.审核通过,2.驳回
|
||||
company(code) {
|
||||
console.log(code, '是否企业认证')
|
||||
if (code === -1) {
|
||||
// 跳转到企业认证页面
|
||||
this.$Router.push({
|
||||
@@ -192,7 +184,6 @@
|
||||
})
|
||||
// -1.未认证,0.审核中,1.审核通过,2.驳回
|
||||
companyStatus().then(res => {
|
||||
console.log(res)
|
||||
this.companyCode = res
|
||||
}).catch(err => {
|
||||
this.$refs.uToast.show({
|
||||
@@ -281,7 +272,7 @@
|
||||
},
|
||||
loginOut() {
|
||||
this.$store.commit('setToken', '')
|
||||
this.$Router.push({name: 'Login'})
|
||||
this.$Router.push({name: 'Index'})
|
||||
},
|
||||
// 上传头像
|
||||
updImgs(type) {
|
||||
@@ -320,7 +311,6 @@
|
||||
value: value
|
||||
}
|
||||
resetUserInfo(data).then(res => {
|
||||
console.log(res, 'res...')
|
||||
uni.showToast({
|
||||
title: res,
|
||||
icon: 'none'
|
||||
|
||||
Reference in New Issue
Block a user