修改游戏列表获取接口
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) {
|
export function getGameList(params) {
|
||||||
return request({
|
return requestMp({
|
||||||
url: '/minigame/',
|
url: '/games/list',
|
||||||
method: 'get',
|
method: 'get',
|
||||||
})
|
})
|
||||||
}
|
}
|
@ -302,7 +302,7 @@ export default {
|
|||||||
|
|
||||||
// 获取所有可投放游戏
|
// 获取所有可投放游戏
|
||||||
const allGame = await this.getGameList()
|
const allGame = await this.getGameList()
|
||||||
this.allGame = allGame
|
this.allGame = allGame.gameList
|
||||||
|
|
||||||
// 获取所有平台
|
// 获取所有平台
|
||||||
this.platformList = this.allGame.map(item => {
|
this.platformList = this.allGame.map(item => {
|
||||||
@ -449,7 +449,7 @@ export default {
|
|||||||
formDate(date) {
|
formDate(date) {
|
||||||
return moment(date)
|
return moment(date)
|
||||||
.utc()
|
.utc()
|
||||||
.zone(+0)
|
.utcOffset(+0)
|
||||||
.format('YYYY-MM-DD HH:mm:ss')
|
.format('YYYY-MM-DD HH:mm:ss')
|
||||||
},
|
},
|
||||||
// form
|
// form
|
||||||
|
@ -243,7 +243,9 @@ export default {
|
|||||||
this.areaList[item.area_id] = item.name
|
this.areaList[item.area_id] = item.name
|
||||||
})
|
})
|
||||||
|
|
||||||
const gameList = await this.getGameList()
|
const gameListRes = await this.getGameList()
|
||||||
|
const gameList = gameListRes.gameList
|
||||||
|
|
||||||
gameList.map(item => {
|
gameList.map(item => {
|
||||||
const gameKey = `${item.game_id}`
|
const gameKey = `${item.game_id}`
|
||||||
this.gameList[gameKey] = `${item.game}`
|
this.gameList[gameKey] = `${item.game}`
|
||||||
|
@ -272,7 +272,8 @@ export default {
|
|||||||
this.areaList[item.area_id] = item.name
|
this.areaList[item.area_id] = item.name
|
||||||
})
|
})
|
||||||
|
|
||||||
const gameList = await this.getGameList()
|
const gameListRes = await this.getGameList()
|
||||||
|
const gameList = gameListRes.gameList
|
||||||
|
|
||||||
gameList.map(item => {
|
gameList.map(item => {
|
||||||
const gameKey = `${item.game_id}`
|
const gameKey = `${item.game_id}`
|
||||||
|
Loading…
x
Reference in New Issue
Block a user