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
3808e3f3
Commit
3808e3f3
authored
Nov 30, 2020
by
李硕
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
提交修改
parent
19a6534d
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
3 deletions
+8
-3
constant.js
weekVerb/project/src/constant.js
+8
-3
No files found.
weekVerb/project/src/constant.js
View file @
3808e3f3
export
const
ModalImage
=
{
NO_STOCK
:
"9b80be59-4fa3-4f6a-b629-2debba82ac8c"
,
VIP_CHECK
:
"c9af4a2c-f766-48f8-b3bb-840d8bb2ae22"
,
W1_PRIZE
:
"42783179-c885-470c-9eae-6b59493f2986"
,
W2_PRIZE
:
"f16d3f74-51d1-4c29-aaa2-ec78963483a1"
,
W3_PRIZE
:
"40ed1f27-265b-4bc8-84f4-91780e389a98"
W1_IMG
:
"42783179-c885-470c-9eae-6b59493f2986"
,
W2_IMG
:
"f16d3f74-51d1-4c29-aaa2-ec78963483a1"
,
W3_IMG
:
"40ed1f27-265b-4bc8-84f4-91780e389a98"
,
NOTIMES_IMG
:
""
,
END_IMG
:
""
}
export
const
AWARD_TYPE
=
{
PRIZE_W1
:
1
,
...
...
@@ -25,16 +27,19 @@ export function Modal_Lables(modalType, imgUuid, level) {
let
desc
=
""
;
let
content
=
""
;
let
img
=
""
;
// 未中奖title
if
([
MODAL_TYPE
.
NO_STOCK
,
MODAL_TYPE
.
VIP_CHECK
].
includes
(
modalType
))
{
title
=
"很抱歉"
}
else
{
title
=
"恭喜您"
}
//没有库存的限制
if
(
modalType
=
MODAL_TYPE
.
NO_STOCK
)
{
desc
=
"券已领完"
;
content
=
"下次早点来哦"
;
img
=
imgUuid
;
}
//未到达VIP等级弹窗展示
if
(
modalType
=
MODAL_TYPE
.
VIP_CHECK
)
{
desc
=
`您暂时还不是
${
level
}
用户`
;
content
=
"暂时无法领取代金券"
;
...
...
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