Commit 8d62b6ee authored by 李硕's avatar 李硕

提交

parent 3808e3f3
...@@ -4,8 +4,8 @@ export const ModalImage = { ...@@ -4,8 +4,8 @@ export const ModalImage = {
W1_IMG: "42783179-c885-470c-9eae-6b59493f2986", W1_IMG: "42783179-c885-470c-9eae-6b59493f2986",
W2_IMG: "f16d3f74-51d1-4c29-aaa2-ec78963483a1", W2_IMG: "f16d3f74-51d1-4c29-aaa2-ec78963483a1",
W3_IMG: "40ed1f27-265b-4bc8-84f4-91780e389a98", W3_IMG: "40ed1f27-265b-4bc8-84f4-91780e389a98",
NOTIMES_IMG:"", NOTIMES_IMG: "",
END_IMG:"" END_IMG: ""
} }
export const AWARD_TYPE = { export const AWARD_TYPE = {
PRIZE_W1: 1, PRIZE_W1: 1,
...@@ -66,4 +66,31 @@ export function Modal_Lables(modalType, imgUuid, level) { ...@@ -66,4 +66,31 @@ export function Modal_Lables(modalType, imgUuid, level) {
} }
} }
//错误码
export function ERROR_MESSSAGE(errorCode) {
let message = "";
switch (errorCode) {
case 600001:
message = "网络繁忙,请稍后重试";
break;
case 600002:
message = "任务列表配置出错";
break;
case 600003:
message = "参数异常";
break;
case 600004:
message = "任务不存在";
break;
case 600005:
message = "任务无法完成";
break;
case 600006:
message = "不在可完成任务时间内";
break;
default:
message = "网络故障";
break;
}
return message;
}
...@@ -3,7 +3,7 @@ ...@@ -3,7 +3,7 @@
import React, { Component } from 'react'; import React, { Component } from 'react';
import resList from '../../resconfig/resList'; import resList from '../../resconfig/resList';
//import API from '../../api'; //import API from '../../api';
import { ModalImage, AWARD_TYPE, MODAL_TYPE, Modal_Lables, ERROR_MESSSAGE } from '../../constant';
import './pageweekverb.less'; import './pageweekverb.less';
class Pageweekverb extends Component { class Pageweekverb extends Component {
constructor(props) { constructor(props) {
......
...@@ -119,5 +119,18 @@ const resList = { ...@@ -119,5 +119,18 @@ const resList = {
url: '//yun.duiba.com.cn/spark/assets/88d7845bf6214856bdf53433440fc0e7bab7c242.png', url: '//yun.duiba.com.cn/spark/assets/88d7845bf6214856bdf53433440fc0e7bab7c242.png',
uuid: '40ed1f27-265b-4bc8-84f4-91780e389a98', uuid: '40ed1f27-265b-4bc8-84f4-91780e389a98',
}, },
'5ce85621-f1aa-41c7-993f-80f41d2ff9ff': {
name: 'endImg',
ext: '.png',
url: '//yun.duiba.com.cn/spark/assets/671352e31927250768d8cd6541c9b3cd9127a77c.png',
uuid: '5ce85621-f1aa-41c7-993f-80f41d2ff9ff'
},
'b97d2668-3e0a-481e-8df8-aa2f532b1fbc': {
name: 'notimesImg',
ext: '.png',
url: '//yun.duiba.com.cn/spark/assets/f34f976bebd2fa7f3680c9d1ecf801b302093066.png',
uuid: 'b97d2668-3e0a-481e-8df8-aa2f532b1fbc'
}
}; };
export default resList; export default resList;
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment