|
|
@@ -67,10 +67,7 @@ export class RedBagCashData extends Data {
|
|
|
}
|
|
|
cc.log('红包提现成功')
|
|
|
let r_data = response.data;
|
|
|
- if (r_data.CashMode == 0) {//星云打款
|
|
|
- }
|
|
|
- else if (r_data.CashMode == 1) {//公众号打款
|
|
|
- }
|
|
|
+
|
|
|
this.cash_bar++;
|
|
|
this.update_list = true;
|
|
|
gData.gameData.gameData.cashIndex++;
|
|
|
@@ -81,14 +78,22 @@ export class RedBagCashData extends Data {
|
|
|
// 打开提现到账界面
|
|
|
let money = 0;
|
|
|
for (let i = 0; i < r_data.CashStatusList.length; i++) {
|
|
|
- if(r_data.CashStatusList[i].index == cash_index){
|
|
|
+ if (r_data.CashStatusList[i].index == cash_index) {
|
|
|
money = r_data.CashStatusList[i].amount;
|
|
|
break;
|
|
|
}
|
|
|
}
|
|
|
- gData.receiptNotice.receip_rmb = money;
|
|
|
- gData.cashNormal.receip_total_rmb += gData.receiptNotice.receip_rmb;
|
|
|
- mk.ui.openPanel('module/receiptNotice/receiptNotice');
|
|
|
+ if (r_data.CashMode == 1) {//星云打款
|
|
|
+ gData.receiptNotice.receip_rmb = money;
|
|
|
+ gData.cashNormal.receip_total_rmb += gData.receiptNotice.receip_rmb;
|
|
|
+ mk.ui.openPanel('module/receiptNotice/receiptNotice');
|
|
|
+ }
|
|
|
+ else if (r_data.CashMode == 2) {//公众号打款
|
|
|
+ let list: any[] = r_data.CashStatusList;
|
|
|
+ let o = list[list.length - 1];
|
|
|
+ gData.redCodeData.openRedCode(o.amount / 100, o.withdrawalCode);
|
|
|
+ }
|
|
|
+
|
|
|
|
|
|
this.sortList();
|
|
|
this.initState();
|