Commit 2fe04cde by crushh

update: dist

parent 659e4ebb
...@@ -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';
} }
} }
}; };
......
...@@ -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;
}) })
......
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