|
@@ -85,7 +85,11 @@ public class WithdrawalActivity extends BaseMVPActivity<ActivityWithdrawalBindin
|
|
|
goSignProtocol();
|
|
|
return;
|
|
|
} else if (id == R.id.tv_go_bind_bankcard) {
|
|
|
- goBindCard();
|
|
|
+ if (null == mWithdrawalInfo.userBankCard) {
|
|
|
+ goBindCard();
|
|
|
+ } else {
|
|
|
+ goMineBindCard();
|
|
|
+ }
|
|
|
return;
|
|
|
}
|
|
|
}
|
|
@@ -203,12 +207,13 @@ public class WithdrawalActivity extends BaseMVPActivity<ActivityWithdrawalBindin
|
|
|
viewBinding.tvAvailablePrice.setText("可结算余额 ¥" + getTwoDecimal(data.amountWithdrawal));
|
|
|
viewBinding.tvServiceFee.setText("单次收入结算时,平台将收取" + getTwoDecimal(data.withdrawalServiceFee) + "元手续费");
|
|
|
if (null != data.userBankCard) {
|
|
|
- viewBinding.tvBankName.setText(data.userBankCard.bankName + getBankNum(data.userBankCard.bankCard));
|
|
|
+ viewBinding.tvBankName.setText(data.userBankCard.bankName);
|
|
|
viewBinding.tvTip.setVisibility(View.VISIBLE);
|
|
|
+ viewBinding.tvTip.setText(getBankNum(data.userBankCard.bankCard));
|
|
|
viewBinding.tvGoBindBankcard.setText("去换绑");
|
|
|
} else {
|
|
|
- viewBinding.tvBankName.setText("您未绑定银行卡");
|
|
|
viewBinding.tvTip.setVisibility(View.GONE);
|
|
|
+ viewBinding.tvBankName.setText("您未绑定银行卡");
|
|
|
viewBinding.tvGoBindBankcard.setText("去绑卡");
|
|
|
}
|
|
|
}
|
|
@@ -241,6 +246,11 @@ public class WithdrawalActivity extends BaseMVPActivity<ActivityWithdrawalBindin
|
|
|
}
|
|
|
|
|
|
private void goBindCard() {
|
|
|
+ ARouter.getInstance().build(RouterPath.MineCenter.MINE_BIND_BANKCARD)
|
|
|
+ .navigation();
|
|
|
+ }
|
|
|
+
|
|
|
+ private void goMineBindCard() {
|
|
|
ARouter.getInstance().build(RouterPath.MineCenter.MINE_MY_BANKCARD)
|
|
|
.navigation();
|
|
|
}
|
|
@@ -248,14 +258,12 @@ public class WithdrawalActivity extends BaseMVPActivity<ActivityWithdrawalBindin
|
|
|
private void showProtocolTipDialog() {
|
|
|
if (mProtocolTipDialog == null) {
|
|
|
mProtocolTipDialog = new CommonDialog(this);
|
|
|
-// mProtocolTipDialog.setCanceledOnTouchOutside(false);
|
|
|
-// mProtocolTipDialog.setCancelable(false);
|
|
|
}
|
|
|
if (!mProtocolTipDialog.isShowing()) {
|
|
|
mProtocolTipDialog.show();
|
|
|
}
|
|
|
- mProtocolTipDialog.setTitle("协议签署");
|
|
|
- mProtocolTipDialog.setContent("您需要先签署协议才能结算");
|
|
|
+ mProtocolTipDialog.setTitle("签署协议");
|
|
|
+ mProtocolTipDialog.setContent("您暂未签署协议,请签署后结算");
|
|
|
mProtocolTipDialog.setConfirmText("去签署");
|
|
|
mProtocolTipDialog.setOnConfirmClickListener(new View.OnClickListener() {
|
|
|
@Override
|
|
@@ -333,8 +341,8 @@ public class WithdrawalActivity extends BaseMVPActivity<ActivityWithdrawalBindin
|
|
|
return "";
|
|
|
}
|
|
|
try {
|
|
|
- String substring = num.substring(num.length() - 8);
|
|
|
- return "(" + substring + ")";
|
|
|
+ String substring = num.substring(num.length() - 4);
|
|
|
+ return "**** **** **** " + substring;
|
|
|
} catch (Exception e) {
|
|
|
e.printStackTrace();
|
|
|
}
|