手续费金额修改

This commit is contained in:
guozhen
2024-11-25 15:00:21 +08:00
committed by xuhuixiang
parent e01ab3dc44
commit e3b1722ae5

View File

@@ -81,7 +81,7 @@ public class TransferAccountsActivity extends BaseActivity {
viewBinding = ActivityTransferAccountsBinding.inflate(getLayoutInflater()); viewBinding = ActivityTransferAccountsBinding.inflate(getLayoutInflater());
setContentView(viewBinding.getRoot()); setContentView(viewBinding.getRoot());
isJinBi = getIntent().getBooleanExtra("type", isJinBi); isJinBi = getIntent().getBooleanExtra("type", isJinBi);
feeRate = isJinBi ? DataUtils.getLocUserInfo().getCashFeeRate() : DataUtils.getLocUserInfo().getSilverFeeRate(); feeRate = isJinBi ? DataUtils.getLocUserInfo().getCashFeeRate() / 100 : DataUtils.getLocUserInfo().getSilverFeeRate() / 100;
initView(); initView();
initListeners(); initListeners();
} }
@@ -350,7 +350,7 @@ public class TransferAccountsActivity extends BaseActivity {
maps.put("substationId", IMUIKitConfig.SUBSTATIONID); maps.put("substationId", IMUIKitConfig.SUBSTATIONID);
maps.put("payVerifyCode", type); maps.put("payVerifyCode", type);
maps.put("receiptType", 1); maps.put("receiptType", 1);
maps.put("feeAmount", (Integer.parseInt(viewBinding.shouxufeiTv.getText().toString())) * 100); //手续费金额 maps.put("feeAmount", (Integer.parseInt(viewBinding.shouxufeiTv.getText().toString())) * 100); //手续费金额
maps.put("feeRate", feeRate); //费率 maps.put("feeRate", feeRate); //费率
Api.getInstance().transferMoney(maps) Api.getInstance().transferMoney(maps)
@@ -519,8 +519,8 @@ public class TransferAccountsActivity extends BaseActivity {
return; return;
} }
int inputAmount = Integer.parseInt(inputStr); int inputAmount = Integer.parseInt(inputStr);
int shouxufei = (int)(Math.ceil(inputAmount * feeRate))/100; int shouxufei = (int) (Math.ceil(inputAmount * feeRate));
int rateAmount = inputAmount+shouxufei; int rateAmount = inputAmount + shouxufei;
viewBinding.shouxufeiTv.setText(String.valueOf(shouxufei)); viewBinding.shouxufeiTv.setText(String.valueOf(shouxufei));
viewBinding.totaljineTv.setText(String.valueOf(rateAmount)); viewBinding.totaljineTv.setText(String.valueOf(rateAmount));
int currentYue = (int) (Math.floor(isJinBi ? (walletBean.getGoldCoin() / 100f) : (walletBean.getSilverCoin() / 100f))); int currentYue = (int) (Math.floor(isJinBi ? (walletBean.getGoldCoin() / 100f) : (walletBean.getSilverCoin() / 100f)));