()
| 389 | |
| 390 | //获取活动列表 |
| 391 | async function getGameList() { |
| 392 | const myRequest = getGetRequest('getGameList', 'pageSize=8&pageNum=1'); |
| 393 | return new Promise(async resolve => { |
| 394 | $.get(myRequest, (err, resp, data) => { |
| 395 | try { |
| 396 | if (data) { |
| 397 | data = JSON.parse(data); |
| 398 | if (data.success === true) { |
| 399 | $.jumpList = data.datas; |
| 400 | } |
| 401 | } |
| 402 | } catch (e) { |
| 403 | $.logErr(e, resp) |
| 404 | } finally { |
| 405 | resolve(); |
| 406 | } |
| 407 | }) |
| 408 | }) |
| 409 | } |
| 410 | |
| 411 | |
| 412 | function getGetRequest(type, body) { |
no test coverage detected