修改图片链接规则

This commit is contained in:
zhl 2019-03-05 14:31:25 +08:00
parent f295eb0a0a
commit cdbcd7e8d0
2 changed files with 5 additions and 5 deletions

View File

@ -228,9 +228,9 @@
let res = await http.post(`/api/emulated/game_info`, { gid: this.id }); let res = await http.post(`/api/emulated/game_info`, { gid: this.id });
if (res.errcode === 0) { if (res.errcode === 0) {
this.record = res.record; this.record = res.record;
this.record.icon = `${g.cdnBase}${this.record.gid}/1.png`; this.record.icon = `${g.cdnBase}images/${this.record.gid}/1.png`;
for(let i = 0; i < this.record.pic_count; i ++) { for(let i = 0; i < this.record.pic_count; i ++) {
this.imageList.push(`${g.cdnBase}${this.record.gid}/${i}.png`); this.imageList.push(`${g.cdnBase}images/${this.record.gid}/${i+1}.png`);
} }
if (this.record.type <= g.gameTypes.length) { if (this.record.type <= g.gameTypes.length) {
this.typeStr = g.gameTypes[this.record.type - 1]; this.typeStr = g.gameTypes[this.record.type - 1];

View File

@ -204,7 +204,7 @@
try { try {
let res = await http.post('/api/emulated/recent_games'); let res = await http.post('/api/emulated/recent_games');
for(let obj of res.records) { for(let obj of res.records) {
obj.icon = `${global.cdnBase}${obj.gid}/1.png`; obj.icon = `${global.cdnBase}images/${obj.gid}/1.png`;
} }
this.recent_game_list = res.records; this.recent_game_list = res.records;
this.showRecent = this.recent_game_list.length > 0; this.showRecent = this.recent_game_list.length > 0;
@ -217,7 +217,7 @@
try { try {
let res = await http.post('/api/emulated/my_games'); let res = await http.post('/api/emulated/my_games');
for(let obj of res.records) { for(let obj of res.records) {
obj.icon = `${global.cdnBase}${obj.gid}/1.png`; obj.icon = `${global.cdnBase}images/${obj.gid}/1.png`;
} }
this.my_game_list = res.records; this.my_game_list = res.records;
this.showMyGame = this.my_game_list.length > 0; this.showMyGame = this.my_game_list.length > 0;
@ -272,7 +272,7 @@
self.current += 10; self.current += 10;
for (let obj of res.records) { for (let obj of res.records) {
(obj.open) && (obj.owned = true); (obj.open) && (obj.owned = true);
obj.icon = `${global.cdnBase}${obj.gid}/1.png`; obj.icon = `${global.cdnBase}images/${obj.gid}/1.png`;
self.records.push(obj); self.records.push(obj);
} }
self.loading = false; self.loading = false;