修改游戏列表获取接口

This commit is contained in:
yulixing 2019-08-02 16:23:27 +08:00
parent c85839e311
commit ffe4247f54
4 changed files with 10 additions and 7 deletions

View File

@ -1,8 +1,8 @@
import request from '@/utils/user-request'
import requestMp from '@/utils/request-mp'
export function getGameList(params) {
return request({
url: '/minigame/',
return requestMp({
url: '/games/list',
method: 'get',
})
}

View File

@ -302,7 +302,7 @@ export default {
//
const allGame = await this.getGameList()
this.allGame = allGame
this.allGame = allGame.gameList
//
this.platformList = this.allGame.map(item => {
@ -449,7 +449,7 @@ export default {
formDate(date) {
return moment(date)
.utc()
.zone(+0)
.utcOffset(+0)
.format('YYYY-MM-DD HH:mm:ss')
},
// form

View File

@ -243,7 +243,9 @@ export default {
this.areaList[item.area_id] = item.name
})
const gameList = await this.getGameList()
const gameListRes = await this.getGameList()
const gameList = gameListRes.gameList
gameList.map(item => {
const gameKey = `${item.game_id}`
this.gameList[gameKey] = `${item.game}`

View File

@ -272,7 +272,8 @@ export default {
this.areaList[item.area_id] = item.name
})
const gameList = await this.getGameList()
const gameListRes = await this.getGameList()
const gameList = gameListRes.gameList
gameList.map(item => {
const gameKey = `${item.game_id}`