增加订单列表详情的客座费打包费

This commit is contained in:
2024-10-28 09:22:31 +08:00
parent 291b495c10
commit 96a9dfb5b5
6 changed files with 192 additions and 82 deletions

View File

@@ -15,6 +15,7 @@ import {
} from '@/commons/utils/encryptUtil.js'
import infoBox from "@/commons/utils/infoBox.js"
import go from '@/commons/utils/go.js';
import { reject } from 'lodash';
// 测试服
// let baseUrl = 'https://admintestpapi.sxczgkj.cn'
@@ -125,9 +126,11 @@ function commonsProcess(showLoading, httpReqCallback) {
return Promise.resolve(bodyData)
}).catch(res => {
if(res.status==401||res.status==400){
// storageManage.token(null, true)
infoBox.showErrorToast(res.message||'状态码400').then(() => {
if(res.status==401){
storageManage.token(null, true)
infoBox.showErrorToast(res.message||'请登录').then(() => {
uni.redirectTo({url: '/pages/login/index'})
reject()
})
}
if(res.status==500){