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
689dfdec
Commit
689dfdec
authored
Jun 01, 2022
by
crushh
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
update: dist
parent
cf7b62dc
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
17 additions
and
1 deletions
+17
-1
base-config.vue
src/views/game/cmh/base-config.vue
+15
-1
form.vue
src/views/game/cmh/form.vue
+2
-0
No files found.
src/views/game/cmh/base-config.vue
View file @
689dfdec
...
...
@@ -70,7 +70,7 @@
<div
class=
"flex mt16"
v-show=
"baseForm.backMusicFlag"
>
<div
class=
"flex"
>
<el-button
size=
"small"
class=
"playBtn"
@
click=
"handleListen"
><i
:class=
"['iconfont fz14', isPlay ? 'icon-zanting' : 'icon-kaiqi']"
></i>
点击试听
</el-button>
<el-select
class=
"musicSelect"
v-model=
"baseForm.backMusicUrlObj"
value-key=
"materialValue"
@
clear=
"handleClear"
:clearable=
"customMusicOptions.length"
>
<el-select
class=
"musicSelect"
v-model=
"baseForm.backMusicUrlObj"
value-key=
"materialValue"
@
clear=
"handleClear"
@
change=
"handleChange"
:clearable=
"customMusicOptions.length"
>
<el-option
v-for=
"item in backMusicOptionsComputed"
:key=
"item.materialValue"
:value=
"item"
:label=
"item.materialName"
>
</el-option>
</el-select>
</div>
...
...
@@ -340,9 +340,19 @@ export default {
});
},
handleClear
()
{
if
(
this
.
isPlay
)
{
this
.
isPlay
=
!
this
.
isPlay
;
music
.
pause
();
}
this
.
customMusicOptions
=
[];
this
.
baseForm
.
backMusicUrlObj
=
this
.
backMusicOptions
[
0
];
},
handleChange
()
{
if
(
this
.
isPlay
)
{
this
.
isPlay
=
!
this
.
isPlay
;
music
.
pause
();
}
},
setAudioList
(
obj
)
{
const
{
name
,
url
}
=
obj
;
this
.
customMusicOptions
=
[
...
...
@@ -353,6 +363,10 @@ export default {
materialKey
:
'backMusicUrl'
}
];
if
(
this
.
isPlay
)
{
this
.
isPlay
=
!
this
.
isPlay
;
music
.
pause
();
}
this
.
baseForm
.
backMusicUrlObj
=
this
.
customMusicOptions
[
0
];
},
handleAdsChange
(
obj
)
{
...
...
src/views/game/cmh/form.vue
View file @
689dfdec
...
...
@@ -243,12 +243,14 @@ export default {
this
.
menuActive
=
index
;
},
async
getGameTemplateByType
()
{
this
.
loading
=
true
;
const
res
=
await
getGameTemplateByType
({
templateType
:
1
});
this
.
templateData
=
res
.
result
;
if
(
this
.
isAdd
)
{
this
.
$route
.
meta
.
refresh
=
false
;
const
{
templateId
}
=
res
.
result
[
0
];
this
.
templateId
=
templateId
;
this
.
loading
=
false
;
}
else
{
const
{
id
}
=
this
.
$route
.
params
;
this
.
getGameDetail
(
id
);
...
...
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