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

提交

parent 650be879
...@@ -21,7 +21,7 @@ export const verbPrize = { ...@@ -21,7 +21,7 @@ export const verbPrize = {
"name": "奖品名称", "name": "奖品名称",
"icon": "2" "icon": "2"
}, },
"code": "600005", "code": "600009",
"message": null, "message": null,
"success": false "success": false
} }
\ No newline at end of file
...@@ -23,7 +23,8 @@ export const MODAL_TYPE = { ...@@ -23,7 +23,8 @@ export const MODAL_TYPE = {
NO_TIMES: 6, NO_TIMES: 6,
END: 7, END: 7,
NOT_START: 8, NOT_START: 8,
NOT_READY: 9 NOT_READY: 9,
NO_WEEK_TIMES: 10
} }
export const PRIZE_TYPE = { export const PRIZE_TYPE = {
...@@ -44,11 +45,11 @@ export function Modal_Lables(modalType, level, openStatus) { ...@@ -44,11 +45,11 @@ export function Modal_Lables(modalType, level, openStatus) {
let content = ""; let content = "";
let img = ""; let img = "";
let prize = 0; let prize = 0;
// 未中奖title // 未中奖title
if ([1, 2, 5, 6, 7, 8].includes(modalType)) { if ([1, 2, 5, 6, 7, 8, 9, 10].includes(modalType)) {
title = "很抱歉" title = "很抱歉"
} else { } else {
title = "恭喜您" title = "恭喜您"
...@@ -70,6 +71,11 @@ export function Modal_Lables(modalType, level, openStatus) { ...@@ -70,6 +71,11 @@ export function Modal_Lables(modalType, level, openStatus) {
content = "周三10点再来试试吧"; content = "周三10点再来试试吧";
img = ModalImage.NOT_START; img = ModalImage.NOT_START;
} }
if (modalType == MODAL_TYPE.NO_WEEK_TIMES) {
desc = "本周可领取次数已用完";
content = "下个周再来哦";
img = ModalImage.NOTIMES_IMG;
}
if (modalType == MODAL_TYPE.NO_TIMES) { if (modalType == MODAL_TYPE.NO_TIMES) {
desc = "本月可领取次数已用完"; desc = "本月可领取次数已用完";
content = "下个月再来哦"; content = "下个月再来哦";
...@@ -166,7 +172,7 @@ export function ERROR_MESSSAGE(errorCode) { ...@@ -166,7 +172,7 @@ export function ERROR_MESSSAGE(errorCode) {
} }
export function ERROR_TYPE(errorCode) { export function ERROR_TYPE(errorCode) {
if (["600003", "600004", "600006", "600007", "600008"].includes(errorCode)) { if (["600003", "600004", "600006", "600007", "600008", "600009"].includes(errorCode)) {
return false; return false;
} else { } else {
return true; return true;
...@@ -189,11 +195,14 @@ export function ERROR_MODAL(errorCode) { ...@@ -189,11 +195,14 @@ export function ERROR_MODAL(errorCode) {
type = MODAL_TYPE.NO_STOCK; type = MODAL_TYPE.NO_STOCK;
break; break;
case "600007": case "600007":
type = MODAL_TYPE.NO_TIMES; type = MODAL_TYPE.NO_WEEK_TIMES;
break; break;
case "600008": case "600008":
type = MODAL_TYPE.END; type = MODAL_TYPE.END;
break; break;
case "600009":
type = MODAL_TYPE.NO_TIMES;
break;
default: default:
type = "网络故障"; type = "网络故障";
break; break;
......
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