Commit 9c9f96a9 authored by 肖健's avatar 肖健

Merge remote-tracking branch 'origin/v1.0.0' into v1.0.0

parents f858ecd5 feccd1cd
...@@ -64,7 +64,7 @@ const httpTokenRequest = (opts, data) => { ...@@ -64,7 +64,7 @@ const httpTokenRequest = (opts, data) => {
// console.log(33333333333,res[1]) // console.log(33333333333,res[1])
if(res[1].data.code == 401){ if(res[1].data.code == 401){
uni.removeStorageSync('userToken') uni.removeStorageSync('userToken')
uni.navigateTo({ uni.redirectTo({
url:"/pages/login/index/index?failure=401" url:"/pages/login/index/index?failure=401"
}) })
return; return;
......
...@@ -85,6 +85,7 @@ ...@@ -85,6 +85,7 @@
}, },
methods: { methods: {
tabChange(index) { tabChange(index) {
uni.setStorageSync('tabbar', index)
let that = this let that = this
switch (index) { switch (index) {
case 0: case 0:
...@@ -333,6 +334,7 @@ ...@@ -333,6 +334,7 @@
duration: 2000 duration: 2000
}); });
// 判断是否扫码进入 // 判断是否扫码进入
that.scene = uni.getStorageSync('scene') that.scene = uni.getStorageSync('scene')
// console.log(that.scene,"微信扫码进入") // console.log(that.scene,"微信扫码进入")
...@@ -358,8 +360,19 @@ ...@@ -358,8 +360,19 @@
icon: 'none', icon: 'none',
duration: 2000 duration: 2000
}); });
} }
}) })
}else{
let routerLogin = uni.getStorageSync('routerLogin')
let tabbar = uni.getStorageSync('tabbar')
if(tabbar){
this.tabChange(tabbar)
}
if(routerLogin){
uni.redirectTo({
url:routerLogin
})
}
} }
}else{ }else{
......
...@@ -56,6 +56,8 @@ ...@@ -56,6 +56,8 @@
methods: { methods: {
goUrl(vo) { goUrl(vo) {
let token = uni.getStorageSync('userToken'); let token = uni.getStorageSync('userToken');
uni.removeStorageSync('routerLogin')
uni.setStorageSync('routerLogin',vo.url)
if (!token) { if (!token) {
// uni.navigateTo({ // uni.navigateTo({
// url: '/pages/binding/index?url=/pages/main&index=1' // url: '/pages/binding/index?url=/pages/main&index=1'
......
This diff is collapsed.
...@@ -166,6 +166,8 @@ export default { ...@@ -166,6 +166,8 @@ export default {
}, },
goDetail(id,link) { goDetail(id,link) {
let token = uni.getStorageSync('userToken'); let token = uni.getStorageSync('userToken');
uni.removeStorageSync('routerLogin')
uni.setStorageSync('routerLogin',false)
if(!token){ if(!token){
let returnPage= '/pages/main'; let returnPage= '/pages/main';
let pageType = "reLaunch" let pageType = "reLaunch"
......
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