Commit 7a5690f9 authored by 罗超's avatar 罗超

调整BUG

parent 2c8d141f
...@@ -58,7 +58,7 @@ ...@@ -58,7 +58,7 @@
"quickapp" : {}, "quickapp" : {},
/* 快应用特有相关 */ /* 快应用特有相关 */
"mp-weixin" : { "mp-weixin" : {
"appid" : "wx10655d8e5b0a67c5", "appid" : "13982128958",
"setting" : { "setting" : {
"urlCheck" : false, "urlCheck" : false,
"es6" : false, "es6" : false,
......
...@@ -333,16 +333,17 @@ ...@@ -333,16 +333,17 @@
uni.setStorageSync('erpUserInfo',res.Data) uni.setStorageSync('erpUserInfo',res.Data)
} }
uni.setStorageSync('ErpStus',erpStus) uni.setStorageSync('ErpStus',erpStus)
if(uni.getStorageSync('users')){ // if(uni.getStorageSync('users')){
let users=[] // let users=[]
user.push(uni.getStorageSync('userInfo')) // users.push(uni.getStorageSync('userInfo'))
uni.setStorageSync('users',user) // uni.setStorageSync('users',users)
} // }
data.loading = true data.loading = true
uni.reLaunch({ uni.reLaunch({
url:'/pages/index/index' url:'/pages/index/index'
}) })
}else{ }else{
console.log('..........22')
data.loading = true data.loading = true
uni.hideLoading() uni.hideLoading()
uni.showToast({ uni.showToast({
...@@ -351,6 +352,7 @@ ...@@ -351,6 +352,7 @@
}) })
} }
}).catch(e=>{ }).catch(e=>{
console.log(e+"...........")
data.loading = true data.loading = true
uni.hideLoading() uni.hideLoading()
uni.showToast({ uni.showToast({
......
...@@ -26,7 +26,7 @@ let request = (param) => { ...@@ -26,7 +26,7 @@ let request = (param) => {
resolve(res.data) resolve(res.data)
} else { } else {
if (res.data.Code==10001 || res.data.Code == 10000) { if (res.data.Code==10001 || res.data.Code == 10000) {
if(!uni.getStorageSync('erpUserInfo')){ if(!uni.getStorageSync('erpUserInfo') || (uni.getStorageSync('erpUserInfo') && uni.getStorageSync('userInfo'))){
console.log('in....') console.log('in....')
uni.showToast({ uni.showToast({
title: "用户凭证失效,请重新授权", title: "用户凭证失效,请重新授权",
......
...@@ -27,7 +27,7 @@ let request = (param) => { ...@@ -27,7 +27,7 @@ let request = (param) => {
resolve(res.data) resolve(res.data)
} else { } else {
if (res.data.Code == 10001 || res.data.Code == 10000) { if (res.data.Code == 10001 || res.data.Code == 10000) {
if(!uni.getStorageSync('userInfo')){ if(!uni.getStorageSync('userInfo')|| (uni.getStorageSync('erpUserInfo') && uni.getStorageSync('userInfo'))){
uni.reLaunch({ uni.reLaunch({
url:"/pages/login/login" url:"/pages/login/login"
}) })
......
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