Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
M
marketing
Overview
Overview
Details
Activity
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
marketing-web
marketing
Commits
46121356
Commit
46121356
authored
May 25, 2022
by
crushh
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
update: 校验
parent
66a4a652
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
13 additions
and
10 deletions
+13
-10
form.vue
src/views/game/cmh/form.vue
+2
-1
rule-config.vue
src/views/game/cmh/rule-config.vue
+11
-9
No files found.
src/views/game/cmh/form.vue
View file @
46121356
...
...
@@ -142,10 +142,11 @@ export default {
this
.
gameStatus
=
status
;
}
const
{
ruleId
,
winChance
,
filterJson
,
filterJsonView
,
memberDesc
,
memberType
,
playConditionFlag
,
playTimes
,
shareFlag
,
shareImageUrl
,
shareRuleDesc
}
=
gameRuleInfo
;
gameRuleConditionList
&&
if
(
playConditionFlag
==
1
)
{
gameRuleConditionList
.
forEach
(
item
=>
{
item
.
conditionJson
=
JSON
.
parse
(
item
.
conditionJson
);
});
}
let
cardIdArr
=
[];
gamePrizeList
.
forEach
(
item
=>
{
if
(
item
.
prizeType
==
2
)
{
...
...
src/views/game/cmh/rule-config.vue
View file @
46121356
...
...
@@ -252,18 +252,20 @@ export default {
},
echoData
(
val
)
{
const
{
ruleId
,
filterJson
,
filterJsonView
,
gameRuleConditionList
,
memberDesc
,
memberType
,
playConditionFlag
,
playTimes
,
shareFlag
,
shareImageUrl
,
shareRuleDesc
,
memberWeightView
,
creatorId
}
=
val
;
let
obj
=
{};
gameRuleConditionList
&&
if
(
playConditionFlag
==
1
)
{
let
obj
=
{};
gameRuleConditionList
.
forEach
(
item
=>
{
obj
[
item
.
conditionType
]
=
item
;
});
this
.
ruleForm
.
gameRuleConditionList
.
forEach
(
item
=>
{
if
(
obj
[
item
.
type
])
{
item
.
conditionType
=
obj
[
item
.
type
].
conditionType
;
item
.
conditionJson
=
obj
[
item
.
type
].
conditionJson
;
}
item
.
conditionId
=
obj
[
item
.
type
].
conditionId
;
});
this
.
ruleForm
.
gameRuleConditionList
.
forEach
(
item
=>
{
if
(
obj
[
item
.
type
])
{
item
.
conditionType
=
obj
[
item
.
type
].
conditionType
;
item
.
conditionJson
=
obj
[
item
.
type
].
conditionJson
;
item
.
conditionId
=
obj
[
item
.
type
].
conditionId
;
}
});
}
if
(
memberType
==
1
)
{
this
.
selectedGroupIds
=
filterJson
;
}
else
{
...
...
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