Commit 38ff818c by crushh

update: dist

parent 014c6795
...@@ -213,19 +213,19 @@ export default { ...@@ -213,19 +213,19 @@ export default {
} }
}, },
echoData(val) { echoData(val) {
console.log(val);
let { gameExt } = val; let { gameExt } = val;
this.baseForm = Object.assign(this.baseForm, val); this.baseForm = Object.assign(this.baseForm, val);
if (this.baseForm.adsFlag) { if (this.baseForm.adsFlag) {
this.adsImageUrl = { imgUrl: gameExt.adsImageUrl.materialValue, code: gameExt.adsImageUrl.materialValue }; this.adsImageUrl = { imgUrl: gameExt.adsImageUrl && gameExt.adsImageUrl.materialValue, code: gameExt.adsImageUrl && gameExt.adsImageUrl.materialValue };
} }
const currentTemp = this.templateData.filter(item => item.templateId == this.baseForm.templateId)[0]; const currentTemp = this.templateData.filter(item => item.templateId == this.baseForm.templateId)[0];
let obj = {}; let obj = {};
let arr = ['backMusicUrl', 'shareCard', 'shareReport'];
currentTemp.gameTemplateMaterialList.forEach(item => { currentTemp.gameTemplateMaterialList.forEach(item => {
if (item.materialKey == 'backMusicUrl') { if (item.materialKey == 'backMusicUrl') {
this.backMusicOptions.push(item); this.backMusicOptions.push(item);
} }
if (item.materialKey != 'backMusicUrl' && item.materialValue) { if (!arr.includes(item.materialKey) && item.materialValue) {
obj[item.materialKey] = item; obj[item.materialKey] = item;
} }
}); });
......
...@@ -224,7 +224,7 @@ export default { ...@@ -224,7 +224,7 @@ export default {
shareReportSize1, shareReportSize1,
shareReportSize0 shareReportSize0
}; };
console.log(shareCard);
this.gameTime = gameTime; this.gameTime = gameTime;
}, },
handleRuleConfigChange(data) { handleRuleConfigChange(data) {
...@@ -300,6 +300,10 @@ export default { ...@@ -300,6 +300,10 @@ export default {
} }
} }
gameRuleConditionList.forEach(item => { gameRuleConditionList.forEach(item => {
if (item.conditionType == 1) {
gameExt.shareCard.materialValue = item.conditionJson.shareCard;
gameExt.shareReport.materialValue = item.conditionJson.shareReport;
}
item.conditionJson = JSON.stringify(item.conditionJson); item.conditionJson = JSON.stringify(item.conditionJson);
}); });
if (this.isCopy) { if (this.isCopy) {
......
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