Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
D
db-game-template
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
崔立强
db-game-template
Commits
8f68528f
Commit
8f68528f
authored
Dec 02, 2020
by
李硕
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
提交
parent
650be879
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
15 additions
and
6 deletions
+15
-6
interface.js
weekVerb/project/mock/week/interface.js
+1
-1
constant.js
weekVerb/project/src/constant.js
+14
-5
No files found.
weekVerb/project/mock/week/interface.js
View file @
8f68528f
...
@@ -21,7 +21,7 @@ export const verbPrize = {
...
@@ -21,7 +21,7 @@ export const verbPrize = {
"name"
:
"奖品名称"
,
"name"
:
"奖品名称"
,
"icon"
:
"2"
"icon"
:
"2"
},
},
"code"
:
"60000
5
"
,
"code"
:
"60000
9
"
,
"message"
:
null
,
"message"
:
null
,
"success"
:
false
"success"
:
false
}
}
\ No newline at end of file
weekVerb/project/src/constant.js
View file @
8f68528f
...
@@ -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
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment