| 123456789101112131415161718192021222324252627282930313233343536 |
- /**
- * @description 等级奖励数据
- */
- import { Data } from "../../../mk/data/Data";
- const { ccclass } = cc._decorator;
- @ccclass
- export class GradeRewardData extends Data{
- //提现id
- private cashId: number;
- public setCashId(id:number)
- {
- this.cashId = id;
- }
- /**
- * 等级奖励提现
- * @param cb 提现回调
- */
- public async HttpCashTask() {
- let data = { redMoneyId: this.cashId };
- let response = await mk.http.sendData('tuCaoRedMoney/gearCash', data);
- if (response.errcode != 0) {
- return null;
- }
- const rewardNum = Math.round(gData.blessingBag.taskRbNum * 100);
- gData.receiptNotice.receip_rmb = rewardNum;
- gData.cashNormal.receip_total_rmb += gData.receiptNotice.receip_rmb;
- mk.ui.openPanel('module/newNotice/newNotice');
- return response
- }
- }
|