/** * @description 提现数据 */ import { Data } from "../../../mk/data/Data"; export class WalletCashOutData extends Data { public init_novice = false; public init_cashOut = false; public async HttpCashOut(value: number) { let data = {}; let response = await mk.http.sendData('noviceWeFare/noviceWeFareCash', data); mk.console.logSingle('wallet1=>', response); if (response.errcode != 0) { return null; } this.init_novice = true; gData.gameData.gameData.userNoviceWeFareInfo = response.data.userNoviceWeFareInfo; gData.receiptNotice.receip_rmb = value; mk.ui.openPanel('module/newNotice/newNotice'); } async addProgress() { let data = {}; let response = await mk.http.sendData('noviceWeFare/updateNoviceWeFareInfo', data); if (response.errcode != 0) { return; } gData.gameData.gameData.userNoviceWeFareInfo = response.data.userNoviceWeFareInfo; this.init_novice = true; } async HttpCashOut2(id: number) { let data = {index: id}; let response = await mk.http.sendData('redMoney/cashPay', data); mk.console.logSingle('wallet2=>', response); if (response.errcode != 0) { if(response.data.count > 0) { gData.lineUpUIData.personCount = response.count; mk.ui.openPanel("module/newNotice/LineUpUI"); } return; } gData.gameData.gameData.redMoneyCashPayRecordList = response.data.redMoneyCashPayRecordList; this.init_cashOut = true; } }