This commit is contained in:
parent
8fbdea87c0
commit
c48ac40431
|
|
@ -27,7 +27,7 @@
|
|||
default: true
|
||||
},
|
||||
style:{
|
||||
type:String
|
||||
// type:String
|
||||
}
|
||||
})
|
||||
|
||||
|
|
|
|||
|
|
@ -127,7 +127,7 @@
|
|||
flex-direction: column;
|
||||
justify-content: space-between;
|
||||
align-items: center;
|
||||
padding: 2.5vw 0 1vw 0;
|
||||
padding: 2.3vw 0 1vw 0;
|
||||
margin-right: 3vw;
|
||||
.logo{
|
||||
width: 3.8vw;
|
||||
|
|
|
|||
|
|
@ -111,8 +111,7 @@
|
|||
const props = defineProps({
|
||||
show: {
|
||||
type: Boolean,
|
||||
default:false,
|
||||
required: true,
|
||||
default:false
|
||||
},
|
||||
caigouobj:{
|
||||
type:Object,
|
||||
|
|
|
|||
|
|
@ -75,16 +75,14 @@
|
|||
import { ref, onMounted, reactive, onBeforeUnmount, computed, nextTick, defineComponent } from 'vue';
|
||||
const props = defineProps({
|
||||
InvoicingList: {
|
||||
type: Array,
|
||||
required: true
|
||||
type: Array
|
||||
},
|
||||
status: {
|
||||
type: String
|
||||
},
|
||||
show: {
|
||||
type: Boolean,
|
||||
default: false,
|
||||
required: true,
|
||||
default: false
|
||||
},
|
||||
})
|
||||
const emit = defineEmits(['addcartory', 'scrolltolower','addcar','crk'])
|
||||
|
|
|
|||
|
|
@ -4,7 +4,8 @@ const base_url = 'https://www.focusnu.com/opeapi'
|
|||
// const base_url = 'http://localhost:8091/opeapi'
|
||||
// 请求超出时间
|
||||
const timeout = 5000
|
||||
|
||||
// 登录过期防止多次弹出
|
||||
let loginout = false;
|
||||
// 需要修改token,和根据实际修改请求头
|
||||
export default (params) => {
|
||||
let url = params.url;
|
||||
|
|
@ -32,12 +33,15 @@ export default (params) => {
|
|||
// console.log(res.statusCode);
|
||||
if (res.statusCode == 200) {
|
||||
resolve(res.data);
|
||||
loginout = false;
|
||||
} else {
|
||||
console.log("http", /^https?:\/\//.test(url) ? url : base_url + url)
|
||||
console.log("res",response)
|
||||
console.log("data",data)
|
||||
switch (res.statusCode) {
|
||||
case 401:
|
||||
if(loginout == true){return}
|
||||
loginout = true;
|
||||
uni.showModal({
|
||||
title: "提示",
|
||||
content: "登录过期",
|
||||
|
|
|
|||
Loading…
Reference in New Issue