From cdbcd7e8d026fc4aef60a972f84a934c15b19588 Mon Sep 17 00:00:00 2001 From: zhl Date: Tue, 5 Mar 2019 14:31:25 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E5=9B=BE=E7=89=87=E9=93=BE?= =?UTF-8?q?=E6=8E=A5=E8=A7=84=E5=88=99?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/pages/gameInfo.wpy | 4 ++-- src/pages/index.wpy | 6 +++--- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/src/pages/gameInfo.wpy b/src/pages/gameInfo.wpy index f385f2f..41bd20b 100644 --- a/src/pages/gameInfo.wpy +++ b/src/pages/gameInfo.wpy @@ -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]; diff --git a/src/pages/index.wpy b/src/pages/index.wpy index 496d497..ace3002 100644 --- a/src/pages/index.wpy +++ b/src/pages/index.wpy @@ -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;