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
611276e7
Commit
611276e7
authored
Jun 06, 2022
by
crushh
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
update: dist
parent
cb2405fe
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
4 deletions
+7
-4
base-config.vue
src/views/game/cmh/base-config.vue
+7
-4
No files found.
src/views/game/cmh/base-config.vue
View file @
611276e7
...
...
@@ -227,14 +227,18 @@ export default {
}
const
currentTemp
=
this
.
templateData
.
filter
(
item
=>
item
.
templateId
==
this
.
baseForm
.
templateId
)[
0
];
let
obj
=
{};
let
arr
=
[
'backMusicUrl'
];
// let arr = ['backMusicUrl'];
let
keys
=
Object
.
keys
(
gameExt
);
console
.
log
(
keys
);
currentTemp
.
gameTemplateMaterialList
.
forEach
(
item
=>
{
if
(
item
.
materialKey
==
'backMusicUrl'
)
{
this
.
backMusicOptions
.
push
(
item
);
}
if
(
!
arr
.
includes
(
item
.
materialKey
)
&&
item
.
materialValue
)
{
}
else
if
(
!
keys
.
includes
(
item
.
materialKey
))
{
obj
[
item
.
materialKey
]
=
item
;
}
// if (!arr.includes(item.materialKey) && !keys.includes(item.materialKey)) {
// obj[item.materialKey] = item;
// }
});
obj
=
Object
.
assign
(
obj
,
gameExt
);
// 详情的素材库与模板接口的默认有值的素材库取交集
this
.
handleTemplateArr
(
Object
.
values
(
obj
),
'echo'
);
...
...
@@ -300,7 +304,6 @@ export default {
return
true
;
},
handleTemplateArr
(
data
,
type
)
{
console
.
log
(
type
);
this
.
gameExt
=
data
;
const
materialKeys
=
[
'mpUrlView'
,
'adsLinkUrl'
,
'adsImageUrl'
];
// 模板切换时 保留广告位
data
.
forEach
(
item
=>
{
...
...
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