|
@@ -96,39 +96,46 @@ public class RealNameAuthenAct extends BaseActivity implements RealNameAutherCon
|
|
|
|
|
|
|
|
Intent i = getIntent();
|
|
Intent i = getIntent();
|
|
|
if (i != null && i.hasExtra("info")) {
|
|
if (i != null && i.hasExtra("info")) {
|
|
|
- mEntity = (UserEntity) i.getSerializableExtra("info");
|
|
|
|
|
whereFrom = i.getIntExtra("where_from", 0);
|
|
whereFrom = i.getIntExtra("where_from", 0);
|
|
|
- if (mEntity != null) {
|
|
|
|
|
|
|
+ }
|
|
|
|
|
+ showProgress();
|
|
|
|
|
+ tvSubmit.setVisibility(View.GONE);
|
|
|
|
|
+ updateUserInfo(new Action1<BaseMessage>() {
|
|
|
|
|
+ @Override
|
|
|
|
|
+ public void call(BaseMessage baseMessage) {
|
|
|
|
|
+ hideProgress();
|
|
|
|
|
+ if (mEntity != null) {
|
|
|
|
|
+ if (!TextUtils.isEmpty(mEntity.getReal_name())) {
|
|
|
|
|
+ etName.setText(mEntity.getReal_name());
|
|
|
|
|
+ count = count + 1;
|
|
|
|
|
+ etName.setEnabled(false);
|
|
|
|
|
+ }
|
|
|
|
|
+ if (!TextUtils.isEmpty(mEntity.getId_number())) {
|
|
|
|
|
+ etIdCard.setText(mEntity.getId_number());
|
|
|
|
|
+ count = count + 1;
|
|
|
|
|
+ etIdCard.setEnabled(false);
|
|
|
|
|
+ }
|
|
|
|
|
|
|
|
- if (!TextUtils.isEmpty(mEntity.getReal_name())) {
|
|
|
|
|
- etName.setText(mEntity.getReal_name());
|
|
|
|
|
- count = count + 1;
|
|
|
|
|
- etName.setEnabled(false);
|
|
|
|
|
- }
|
|
|
|
|
- if (!TextUtils.isEmpty(mEntity.getId_number())) {
|
|
|
|
|
- etIdCard.setText(mEntity.getId_number());
|
|
|
|
|
- count = count + 1;
|
|
|
|
|
- etIdCard.setEnabled(false);
|
|
|
|
|
- }
|
|
|
|
|
|
|
+ if (!TextUtils.isEmpty(mEntity.getBank_card())) {
|
|
|
|
|
+ etBank.setText(mEntity.getBank_card());
|
|
|
|
|
+ count = count + 1;
|
|
|
|
|
+ etBank.setEnabled(false);
|
|
|
|
|
+ }
|
|
|
|
|
+ if (!TextUtils.isEmpty(mEntity.getBank_card_mobile())) {
|
|
|
|
|
+ et_bank_mobile.setText(mEntity.getBank_card_mobile());
|
|
|
|
|
+ count = count + 1;
|
|
|
|
|
+ et_bank_mobile.setEnabled(false);
|
|
|
|
|
+ }
|
|
|
|
|
+ if (count >= 4) {
|
|
|
|
|
+ tvSubmit.setVisibility(View.GONE);
|
|
|
|
|
+ } else {
|
|
|
|
|
+ tvSubmit.setVisibility(View.VISIBLE);
|
|
|
|
|
+ DialogRealNameAuther.showDialog(RealNameAuthenAct.this);
|
|
|
|
|
+ }
|
|
|
|
|
|
|
|
- if (!TextUtils.isEmpty(mEntity.getBank_card())) {
|
|
|
|
|
- etBank.setText(mEntity.getBank_card());
|
|
|
|
|
- count = count + 1;
|
|
|
|
|
- etBank.setEnabled(false);
|
|
|
|
|
- }
|
|
|
|
|
- if (!TextUtils.isEmpty(mEntity.getBank_card_mobile())) {
|
|
|
|
|
- et_bank_mobile.setText(mEntity.getBank_card_mobile());
|
|
|
|
|
- count = count + 1;
|
|
|
|
|
- et_bank_mobile.setEnabled(false);
|
|
|
|
|
- }
|
|
|
|
|
- if (count >= 4) {
|
|
|
|
|
- tvSubmit.setVisibility(View.GONE);
|
|
|
|
|
- } else {
|
|
|
|
|
- DialogRealNameAuther.showDialog(this);
|
|
|
|
|
}
|
|
}
|
|
|
-
|
|
|
|
|
}
|
|
}
|
|
|
- }
|
|
|
|
|
|
|
+ });
|
|
|
|
|
|
|
|
|
|
|
|
|
}
|
|
}
|