|
@@ -48,6 +48,7 @@ public class MyDatumActivity extends PresenterActivity implements View.OnClickLi
|
48
|
48
|
private String alipay_id;
|
49
|
49
|
private String real_name;
|
50
|
50
|
private DataHomeBean.RstBean rst;
|
|
51
|
+ private boolean isover=false;
|
51
|
52
|
|
52
|
53
|
@Override
|
53
|
54
|
protected boolean isNeedNotch() {
|
|
@@ -97,11 +98,11 @@ public class MyDatumActivity extends PresenterActivity implements View.OnClickLi
|
97
|
98
|
}else {
|
98
|
99
|
cardphone.setText("已认证");
|
99
|
100
|
}
|
100
|
|
-// if(rst.is_identity==0){
|
101
|
|
-// identycard.setText("去认证");
|
102
|
|
-// }else {
|
103
|
|
-// identycard.setText("已认证");
|
104
|
|
-// }
|
|
101
|
+ if(rst.is_identity==0){
|
|
102
|
+ isover=true;
|
|
103
|
+ }else {
|
|
104
|
+ isover=false;
|
|
105
|
+ }
|
105
|
106
|
if(rst.is_contact==0){
|
106
|
107
|
people.setText("去添加");
|
107
|
108
|
}else {
|
|
@@ -151,6 +152,7 @@ public class MyDatumActivity extends PresenterActivity implements View.OnClickLi
|
151
|
152
|
identycard.setText(s);
|
152
|
153
|
authentication.setClickable(false);
|
153
|
154
|
}
|
|
155
|
+
|
154
|
156
|
if(rst.alipay_id!=null){
|
155
|
157
|
if(!rst.alipay_id.equals("")){
|
156
|
158
|
String alipay_id = rst.alipay_id;
|
|
@@ -196,13 +198,16 @@ public class MyDatumActivity extends PresenterActivity implements View.OnClickLi
|
196
|
198
|
//身份认证
|
197
|
199
|
case R.id.authentication:
|
198
|
200
|
if(rst!=null){
|
199
|
|
- Intent intent=new Intent(MyDatumActivity.this,IdentityCardActivity.class);
|
200
|
|
- if(rst.is_identity==0){
|
201
|
|
- intent.putExtra("myidentcode",0);
|
202
|
|
- }else {
|
203
|
|
- intent.putExtra("myidentcode",1);
|
|
201
|
+ if(isover){
|
|
202
|
+ Intent intent=new Intent(MyDatumActivity.this,IdentityCardActivity.class);
|
|
203
|
+ if(rst.is_identity==0){
|
|
204
|
+ intent.putExtra("myidentcode",0);
|
|
205
|
+ }else {
|
|
206
|
+ intent.putExtra("myidentcode",1);
|
|
207
|
+ }
|
|
208
|
+ startActivity(intent);
|
204
|
209
|
}
|
205
|
|
- startActivity(intent);
|
|
210
|
+
|
206
|
211
|
}
|
207
|
212
|
|
208
|
213
|
break;
|