()
| 367 | |
| 368 | //获取活动信息 |
| 369 | async function getOneJumpInfo() { |
| 370 | const myRequest = getGetRequest('getHomeInfo', `activityId=${$.jumpId}`); |
| 371 | return new Promise(async resolve => { |
| 372 | $.get(myRequest, (err, resp, data) => { |
| 373 | try { |
| 374 | if (data) { |
| 375 | data = JSON.parse(data); |
| 376 | if (data.success === true) { |
| 377 | $.oneJumpInfo = data.data; |
| 378 | //console.log(JSON.stringify($.oneJumpInfo)) |
| 379 | } |
| 380 | } |
| 381 | } catch (e) { |
| 382 | $.logErr(e, resp) |
| 383 | } finally { |
| 384 | resolve(); |
| 385 | } |
| 386 | }) |
| 387 | }) |
| 388 | } |
| 389 | |
| 390 | //获取活动列表 |
| 391 | async function getGameList() { |
no test coverage detected