Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
M
marketing-opeartion
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
gic-web
marketing-opeartion
Commits
2fe04cde
Commit
2fe04cde
authored
Jun 20, 2022
by
crushh
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
update: dist
parent
659e4ebb
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
4 deletions
+5
-4
template-detail.vue
src/views/activity/template-detail.vue
+4
-4
template-list.vue
src/views/activity/template-list.vue
+1
-0
No files found.
src/views/activity/template-detail.vue
View file @
2fe04cde
...
@@ -497,8 +497,8 @@ export default {
...
@@ -497,8 +497,8 @@ export default {
},
},
uploadOnMusicSuccess
(
res
){
uploadOnMusicSuccess
(
res
){
console
.
log
(
res
);
console
.
log
(
res
);
res
=
{
'gameMusicId'
:
null
,
'gameId'
:
null
,
'enterpriseId'
:
null
,
'musicName'
:
'test1.mp3'
,
'musicUrl'
:
'https://music-1251519181.cos.ap-shanghai.myqcloud.com/ff8080816a36326c016a53380d8b5f52/1655627297310_test1.mp3'
,
'musicFieldCode'
:
'ff8080816a36326c016a53380d8b5f52/1655627297310_test1.mp3'
};
//
res = { 'gameMusicId': null, 'gameId': null, 'enterpriseId': null, 'musicName': 'test1.mp3', 'musicUrl': 'https://music-1251519181.cos.ap-shanghai.myqcloud.com/ff8080816a36326c016a53380d8b5f52/1655627297310_test1.mp3', 'musicFieldCode': 'ff8080816a36326c016a53380d8b5f52/1655627297310_test1.mp3' };
const
{
musicName
,
musicUrl
}
=
res
;
const
{
musicName
,
musicUrl
}
=
res
.
result
;
this
.
musicList
.
push
({
materialName
:
musicName
,
materialValue
:
musicUrl
,
sort
:
0
});
this
.
musicList
.
push
({
materialName
:
musicName
,
materialValue
:
musicUrl
,
sort
:
0
});
this
.
musicSelectList
.
push
(
musicUrl
);
this
.
musicSelectList
.
push
(
musicUrl
);
},
},
...
@@ -580,7 +580,7 @@ export default {
...
@@ -580,7 +580,7 @@ export default {
}
}
});
});
const
{
templateId
,
templateType
,
templateName
,
prizeMax
,
prizeMin
,
sort
,
viewPrize
}
=
this
.
form
;
const
{
templateId
,
templateType
,
templateName
,
prizeMax
,
prizeMin
,
sort
,
viewPrize
}
=
this
.
form
;
let
data
=
{
templateId
,
templateType
:
templateType
?
templateType
:
this
.
$route
.
params
.
type
,
templateName
,
prizeMax
,
prizeMin
,
sort
,
viewPrize
};
let
data
=
{
templateId
,
templateType
:
templateType
?
templateType
:
this
.
$route
.
params
.
type
,
templateName
,
prizeMax
,
prizeMin
,
sort
:
sort
?
sort
:
0
,
viewPrize
};
data
.
gameTemplateMaterialList
=
[
...
Object
.
values
(
gameExt
),
...
musicExt
];
data
.
gameTemplateMaterialList
=
[
...
Object
.
values
(
gameExt
),
...
musicExt
];
fetch
.
initTemplate
(
data
).
then
(
res
=>
{
fetch
.
initTemplate
(
data
).
then
(
res
=>
{
this
.
$message
.
success
(
'保存成功'
);
this
.
$message
.
success
(
'保存成功'
);
...
@@ -596,7 +596,7 @@ export default {
...
@@ -596,7 +596,7 @@ export default {
musicUrl
(){
musicUrl
(){
let
origin
=
window
.
location
.
origin
;
let
origin
=
window
.
location
.
origin
;
origin
=
(
origin
.
indexOf
(
'localhost'
)
>=
0
||
origin
.
indexOf
(
'192.168'
)
>=
0
)
?
'https://www.gicdev.com'
:
origin
;
origin
=
(
origin
.
indexOf
(
'localhost'
)
>=
0
||
origin
.
indexOf
(
'192.168'
)
>=
0
)
?
'https://www.gicdev.com'
:
origin
;
return
origin
+
'/marketing-operation/upload-
img
'
;
return
origin
+
'/marketing-operation/upload-
music
'
;
}
}
}
}
};
};
...
...
src/views/activity/template-list.vue
View file @
2fe04cde
...
@@ -79,6 +79,7 @@ export default {
...
@@ -79,6 +79,7 @@ export default {
fetch
fetch
.
getGameTemplatList
(
this
.
searchParams
)
.
getGameTemplatList
(
this
.
searchParams
)
.
then
((
res
)
=>
{
.
then
((
res
)
=>
{
console
.
log
(
res
);
const
{
result
}
=
res
;
const
{
result
}
=
res
;
this
.
list
=
result
;
this
.
list
=
result
;
})
})
...
...
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