会员管理

This commit is contained in:
duan
2024-10-25 14:37:22 +08:00
parent 2cf3fe512b
commit baf3ebbc1b
4 changed files with 105 additions and 33 deletions

View File

@@ -24,7 +24,8 @@ let baseUrl = 'https://pre-cashieradmin.sxczgkj.cn'
// 王伟本地测
// let baseUrl = '/ww'
// let baseUrl = 'http://192.168.1.15:8000'
// 巩
// let baseUrl = 'http://192.168.1.9:8000'
// 多少 ms 以内, 不提示loading
const loadingShowTime = 200
@@ -75,7 +76,6 @@ function commonsProcess(showLoading, httpReqCallback) {
} = httpData
// 避免混淆重新命名
let bodyData = data
console.log(statusCode,1111111111)
if (statusCode == 500) {
isShowErrorToast = true
return Promise.reject(bodyData) // 跳转到catch函数
@@ -125,12 +125,18 @@ function commonsProcess(showLoading, httpReqCallback) {
return Promise.resolve(bodyData)
}).catch(res => {
if(res.status==401||res.status==400){
if(res.status==401){
storageManage.token(null, true)
infoBox.showErrorToast('请登录').then(() => {
go.to("PAGES_LOGIN", {}, go.GO_TYPE_RELAUNCH)
})
}
// if(res.status==400){
// storageManage.token(null, true)
// infoBox.showErrorToast('').then(() => {
// go.to("PAGES_LOGIN", {}, go.GO_TYPE_RELAUNCH)
// })
// }
if(res.status==500){
storageManage.token(null, true)
infoBox.showErrorToast('请登录').then(() => {