This commit is contained in:
parent
cc05c64733
commit
74b622108a
|
@ -32,6 +32,7 @@ const upload = (method, url, params, responseType) => {
|
||||||
}
|
}
|
||||||
let http = fetch(url, obj).then(res =>{
|
let http = fetch(url, obj).then(res =>{
|
||||||
if(res.status==200){
|
if(res.status==200){
|
||||||
|
|
||||||
return res.json()
|
return res.json()
|
||||||
}else{
|
}else{
|
||||||
switch (res.status) {
|
switch (res.status) {
|
||||||
|
@ -155,7 +156,12 @@ const req = (method, url, params, responseType) => {
|
||||||
let http = fetch(url, obj).then(res =>{
|
let http = fetch(url, obj).then(res =>{
|
||||||
window.timeshow=res.headers.get('Date-Time');
|
window.timeshow=res.headers.get('Date-Time');
|
||||||
if(res.status==200){
|
if(res.status==200){
|
||||||
|
|
||||||
|
console.log("当前返回",res.body)
|
||||||
|
|
||||||
|
|
||||||
return res.json()
|
return res.json()
|
||||||
|
|
||||||
}else{
|
}else{
|
||||||
switch (res.status) {
|
switch (res.status) {
|
||||||
// 401: 未登录
|
// 401: 未登录
|
||||||
|
|
|
@ -82,7 +82,7 @@ const menu={
|
||||||
case 2:return '审核中';break;
|
case 2:return '审核中';break;
|
||||||
case 4:return '生效中';break;
|
case 4:return '生效中';break;
|
||||||
case 5:return '已暂停';break;
|
case 5:return '已暂停';break;
|
||||||
case 6:return '已失效';break;
|
case 6:return '已完结';break;
|
||||||
case 7:return '已作废';break;
|
case 7:return '已作废';break;
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
|
@ -115,7 +115,7 @@ export default class acclist extends React.Component{
|
||||||
dataCount:0,
|
dataCount:0,
|
||||||
page:1,
|
page:1,
|
||||||
limit:10,
|
limit:10,
|
||||||
tabList:[{title:"全部"},{title:"创建中"},{title:"审核中"},{title:"生效中"},{title:"暂停中"},{title:"失效中"},{title:"已作废"}],
|
tabList:[{title:"全部"},{title:"创建中"},{title:"审核中"},{title:"生效中"},{title:"暂停中"},{title:"已完结"},{title:"已作废"}],
|
||||||
distdata:[],
|
distdata:[],
|
||||||
combinedValue:[],
|
combinedValue:[],
|
||||||
distdata2:[{id:12313123213123,name:'爱奇艺月卡兑换券',time:'2021-11-08 14:21:06至2021-11-08 15:06:04',plan:'营销计划2',belongid:3123213,send:100,record:58,used:41,dead:11,fail:12,status:'1'}],
|
distdata2:[{id:12313123213123,name:'爱奇艺月卡兑换券',time:'2021-11-08 14:21:06至2021-11-08 15:06:04',plan:'营销计划2',belongid:3123213,send:100,record:58,used:41,dead:11,fail:12,status:'1'}],
|
||||||
|
|
Loading…
Reference in New Issue