Commit 46121356 by crushh

update: 校验

parent 66a4a652
......@@ -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) {
......
......@@ -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 {
......
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