This commit is contained in:
wangweidong 2026-01-16 16:07:46 +08:00
parent 8fbdea87c0
commit c48ac40431
5 changed files with 10 additions and 9 deletions

View File

@ -27,7 +27,7 @@
default: true default: true
}, },
style:{ style:{
type:String // type:String
} }
}) })

View File

@ -127,7 +127,7 @@
flex-direction: column; flex-direction: column;
justify-content: space-between; justify-content: space-between;
align-items: center; align-items: center;
padding: 2.5vw 0 1vw 0; padding: 2.3vw 0 1vw 0;
margin-right: 3vw; margin-right: 3vw;
.logo{ .logo{
width: 3.8vw; width: 3.8vw;

View File

@ -111,8 +111,7 @@
const props = defineProps({ const props = defineProps({
show: { show: {
type: Boolean, type: Boolean,
default:false, default:false
required: true,
}, },
caigouobj:{ caigouobj:{
type:Object, type:Object,

View File

@ -75,16 +75,14 @@
import { ref, onMounted, reactive, onBeforeUnmount, computed, nextTick, defineComponent } from 'vue'; import { ref, onMounted, reactive, onBeforeUnmount, computed, nextTick, defineComponent } from 'vue';
const props = defineProps({ const props = defineProps({
InvoicingList: { InvoicingList: {
type: Array, type: Array
required: true
}, },
status: { status: {
type: String type: String
}, },
show: { show: {
type: Boolean, type: Boolean,
default: false, default: false
required: true,
}, },
}) })
const emit = defineEmits(['addcartory', 'scrolltolower','addcar','crk']) const emit = defineEmits(['addcartory', 'scrolltolower','addcar','crk'])

View File

@ -4,7 +4,8 @@ const base_url = 'https://www.focusnu.com/opeapi'
// const base_url = 'http://localhost:8091/opeapi' // const base_url = 'http://localhost:8091/opeapi'
// 请求超出时间 // 请求超出时间
const timeout = 5000 const timeout = 5000
// 登录过期防止多次弹出
let loginout = false;
// 需要修改token和根据实际修改请求头 // 需要修改token和根据实际修改请求头
export default (params) => { export default (params) => {
let url = params.url; let url = params.url;
@ -32,12 +33,15 @@ export default (params) => {
// console.log(res.statusCode); // console.log(res.statusCode);
if (res.statusCode == 200) { if (res.statusCode == 200) {
resolve(res.data); resolve(res.data);
loginout = false;
} else { } else {
console.log("http", /^https?:\/\//.test(url) ? url : base_url + url) console.log("http", /^https?:\/\//.test(url) ? url : base_url + url)
console.log("res",response) console.log("res",response)
console.log("data",data) console.log("data",data)
switch (res.statusCode) { switch (res.statusCode) {
case 401: case 401:
if(loginout == true){return}
loginout = true;
uni.showModal({ uni.showModal({
title: "提示", title: "提示",
content: "登录过期", content: "登录过期",