修改游戏列表获取接口
This commit is contained in:
parent
c85839e311
commit
ffe4247f54
@ -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',
|
||||
})
|
||||
}
|
@ -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
|
||||
|
@ -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}`
|
||||
|
@ -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}`
|
||||
|
Loading…
x
Reference in New Issue
Block a user