更新详情

This commit is contained in:
魏啾
2024-06-19 17:11:23 +08:00
parent cba4e6065e
commit 802cc2d721
9 changed files with 223 additions and 214 deletions

View File

@@ -19,7 +19,7 @@ const baseUrlwws = 'ws://cashier.sxczgkj.cn/cashierService'
const baseUrl = debug ? proxyApi : 'https://cashier.sxczgkj.cn/cashierService' // 线上
const baseUrlwws = debug ? proxyApiwws : 'wss://cashier.sxczgkj.cn/netty' // 线上
// const baseUrl = 'https://cashier.sxczgkj.cn/cashierService' // 线上
// const baseUrlwws = 'wss://cashier.sxczgkj.cn/netty' // 线上
// const baseUrlwws = 'wss://cashier.sxczgkj.cn/netty' // 线上/
// #endif
// import VConsole from "./vConsole.js"

View File

@@ -75,8 +75,8 @@ async function request(options) {
token: uni.cache.get('token'),
openId: uni.cache.get('miniAppOpenId'),
id: uni.cache.get('userInfo').id,
loginName:"",
clientType:''
loginName: "",
clientType: ''
}
} else {
@@ -95,12 +95,12 @@ async function request(options) {
icon: "none",
success: () => {
setTimeout(res => {
uni.cache.clear();
uni.cache.set('token', '');
uni.redirectTo({
url: '/pages/login/login'
});
}, 1000)
}
})
} else if (res.code == 482) {
@@ -117,7 +117,6 @@ async function request(options) {
setTimeout(res => {
if (options.toast) {
// #ifdef MP-WEIXIN
uni.hideLoading()
// #endif
// #ifndef MP-WEIXIN
uni.pro.hideLoading()