|
|
@@ -47,11 +47,18 @@ export class RedBagCashData extends Data {
|
|
|
/**
|
|
|
* 提现操作
|
|
|
*/
|
|
|
- public cashOP() {
|
|
|
+ public async cashOP() {
|
|
|
/** 提现档位 */
|
|
|
const cash_index = this.cash_bar;
|
|
|
+ let data = { index: cash_index };
|
|
|
+ let response = await mk.http.sendData('cashUsual', data);
|
|
|
+ if (response.errcode != 0) {
|
|
|
+ mk.tip.pop(response.errmsg);
|
|
|
+ return;
|
|
|
+ }
|
|
|
this.cash_bar++;
|
|
|
- gData.gameData.setProp(GameProp.redBag_cash_bar, this.cash_bar);
|
|
|
+ // gData.gameData.setProp(GameProp.redBag_cash_bar, this.cash_bar);
|
|
|
+ gData.gameData.gameData.cashIndex++;
|
|
|
|
|
|
// 扣除红包
|
|
|
this.sortList();
|