修改图片链接规则
This commit is contained in:
parent
f295eb0a0a
commit
cdbcd7e8d0
@ -228,9 +228,9 @@
|
||||
let res = await http.post(`/api/emulated/game_info`, { gid: this.id });
|
||||
if (res.errcode === 0) {
|
||||
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 ++) {
|
||||
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) {
|
||||
this.typeStr = g.gameTypes[this.record.type - 1];
|
||||
|
@ -204,7 +204,7 @@
|
||||
try {
|
||||
let res = await http.post('/api/emulated/recent_games');
|
||||
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.showRecent = this.recent_game_list.length > 0;
|
||||
@ -217,7 +217,7 @@
|
||||
try {
|
||||
let res = await http.post('/api/emulated/my_games');
|
||||
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.showMyGame = this.my_game_list.length > 0;
|
||||
@ -272,7 +272,7 @@
|
||||
self.current += 10;
|
||||
for (let obj of res.records) {
|
||||
(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.loading = false;
|
||||
|
Loading…
x
Reference in New Issue
Block a user