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
9f75190c
Commit
9f75190c
authored
Dec 02, 2020
by
李硕
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
提交修改内容
parent
0fb8149c
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
15 additions
and
16 deletions
+15
-16
interface.js
weekVerb/project/mock/week/interface.js
+3
-3
comrule.less
weekVerb/project/src/components/comrule/comrule.less
+2
-2
constant.js
weekVerb/project/src/constant.js
+9
-9
pageweekverb.jsx
weekVerb/project/src/pages/pageweekverb/pageweekverb.jsx
+1
-2
No files found.
weekVerb/project/mock/week/interface.js
View file @
9f75190c
...
...
@@ -7,9 +7,9 @@ export const baseInfo = {
"tenDjStock"
:
1200
,
"fiveDjStock"
:
2000
,
"llbStock"
:
3000
,
"llbStatus"
:
0
,
"llbStatus"
:
1
,
"fiveDjStatus"
:
1
,
"tenDjStatus"
:
0
"tenDjStatus"
:
1
},
"code"
:
null
,
"message"
:
null
,
...
...
@@ -21,7 +21,7 @@ export const verbPrize = {
"name"
:
"奖品名称"
,
"icon"
:
"2"
},
"code"
:
600006
,
"code"
:
"600008"
,
"message"
:
null
,
"success"
:
false
}
\ No newline at end of file
weekVerb/project/src/components/comrule/comrule.less
View file @
9f75190c
...
...
@@ -8,14 +8,14 @@
.rulemodal {
width: 750px;
height: 1
33
4px;
height: 1
62
4px;
opacity: 1;
position: absolute;
transform-origin: 0px 0px 0px;
.rulebg {
width: 750px;
height: 1
33
4px;
height: 1
62
4px;
opacity: 0.6;
position: absolute;
transform-origin: 0px 0px 0px;
...
...
weekVerb/project/src/constant.js
View file @
9f75190c
...
...
@@ -130,10 +130,10 @@ export function Modal_Lables(modalType, level, openStatus) {
export
function
ERROR_MESSSAGE
(
errorCode
)
{
let
message
=
""
;
switch
(
errorCode
)
{
case
600001
:
case
"600001"
:
message
=
"网络繁忙,请稍后重试"
;
break
;
case
600002
:
case
"600002"
:
message
=
"参数异常"
;
break
;
// case 600003:
...
...
@@ -142,7 +142,7 @@ export function ERROR_MESSSAGE(errorCode) {
// case 600004:
// message = "会员等级不足";
// break;
case
600005
:
case
"600005"
:
message
=
"仅限上海联通用户参与"
;
break
;
// case 600006:
...
...
@@ -163,7 +163,7 @@ export function ERROR_MESSSAGE(errorCode) {
}
export
function
ERROR_TYPE
(
errorCode
)
{
if
([
600003
,
600004
,
600006
,
600007
,
600008
].
includes
(
errorCode
))
{
if
([
"600003"
,
"600004"
,
"600006"
,
"600007"
,
"600008"
].
includes
(
errorCode
))
{
return
false
;
}
else
{
return
true
;
...
...
@@ -173,22 +173,22 @@ export function ERROR_TYPE(errorCode) {
export
function
ERROR_MODAL
(
errorCode
)
{
let
type
=
""
;
switch
(
errorCode
)
{
case
600003
:
case
"600003"
:
type
=
MODAL_TYPE
.
NOT_START
;
break
;
case
600004
:
case
"600004"
:
type
=
MODAL_TYPE
.
VIP_CHECK
;
break
;
// case 600005:
// type = "仅限上海联通用户参与";
// break;
case
600006
:
case
"600006"
:
type
=
MODAL_TYPE
.
NO_STOCK
;
break
;
case
600007
:
case
"600007"
:
type
=
MODAL_TYPE
.
NO_TIMES
;
break
;
case
600008
:
case
"600008"
:
type
=
MODAL_TYPE
.
END
;
break
;
default
:
...
...
weekVerb/project/src/pages/pageweekverb/pageweekverb.jsx
View file @
9f75190c
...
...
@@ -130,7 +130,7 @@ class Pageweekverb extends Component {
if
(
isToast
)
{
Toast
(
ERROR_MESSSAGE
(
code
));
}
else
{
this
.
errorModal
(
code
,
this
.
state
.
baseData
.
vipLevel
,
openStatus
);
this
.
errorModal
(
code
,
this
.
state
.
baseData
.
vipLevel
,
openStatus
);
}
}
}
...
...
@@ -145,7 +145,6 @@ class Pageweekverb extends Component {
modalStatus
:
1
,
modalData
:
modalInfo
})
}
}
/**
...
...
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