|
@@ -125,14 +125,24 @@ public class ChangeTelAct extends BaseActivity implements PhoneContract.View{
|
|
|
}
|
|
}
|
|
|
});
|
|
});
|
|
|
switch (where_from){
|
|
switch (where_from){
|
|
|
- case 1://用户可以跳过
|
|
|
|
|
|
|
+ case FROM_SPLASH://非第一次登录(如:登录后直接重启),老用户需要绑定手机号
|
|
|
|
|
+ titleBarUtils.setRightBotton(this, "跳过", 0, new View.OnClickListener() {
|
|
|
|
|
+ @Override
|
|
|
|
|
+ public void onClick(View view) {
|
|
|
|
|
+ Intent intent = new Intent(activity, ActMain.class);
|
|
|
|
|
+ activity.startActivity(intent);
|
|
|
|
|
+ activity.finish();
|
|
|
|
|
+ }
|
|
|
|
|
+ });
|
|
|
|
|
+ break;
|
|
|
|
|
+ case FROM_LOGIN://用户可以跳过
|
|
|
titleBarUtils.setRightBotton(this, "跳过", 0, new View.OnClickListener() {
|
|
titleBarUtils.setRightBotton(this, "跳过", 0, new View.OnClickListener() {
|
|
|
@Override
|
|
@Override
|
|
|
public void onClick(View view) {
|
|
public void onClick(View view) {
|
|
|
Jump2View.getInstance().checkLabel(activity, new Action1<BaseMessage>() {
|
|
Jump2View.getInstance().checkLabel(activity, new Action1<BaseMessage>() {
|
|
|
@Override
|
|
@Override
|
|
|
public void call(BaseMessage baseMessage) {
|
|
public void call(BaseMessage baseMessage) {
|
|
|
- final Intent intent = new Intent(activity, ActMain.class);
|
|
|
|
|
|
|
+ Intent intent = new Intent(activity, ActMain.class);
|
|
|
activity.startActivity(intent);
|
|
activity.startActivity(intent);
|
|
|
activity.finish();
|
|
activity.finish();
|
|
|
}
|
|
}
|
|
@@ -162,21 +172,26 @@ public class ChangeTelAct extends BaseActivity implements PhoneContract.View{
|
|
|
|
|
|
|
|
private void toFinish() {
|
|
private void toFinish() {
|
|
|
switch (where_from){
|
|
switch (where_from){
|
|
|
- case 1:
|
|
|
|
|
|
|
+ case FROM_SPLASH://非第一次登录(如:登录后直接重启),老用户需要绑定手机号
|
|
|
|
|
+ Intent intent = new Intent(activity, ActMain.class);
|
|
|
|
|
+ startActivity(intent);
|
|
|
|
|
+ finish();
|
|
|
|
|
+ break;
|
|
|
|
|
+ case FROM_LOGIN://第一次登录,老用户需要绑定手机号
|
|
|
Jump2View.getInstance().checkLabel(activity, new Action1<BaseMessage>() {
|
|
Jump2View.getInstance().checkLabel(activity, new Action1<BaseMessage>() {
|
|
|
@Override
|
|
@Override
|
|
|
public void call(BaseMessage baseMessage) {
|
|
public void call(BaseMessage baseMessage) {
|
|
|
- final Intent intent = new Intent(activity, ActMain.class);
|
|
|
|
|
|
|
+ Intent intent = new Intent(activity, ActMain.class);
|
|
|
activity.startActivity(intent);
|
|
activity.startActivity(intent);
|
|
|
activity.finish();
|
|
activity.finish();
|
|
|
}
|
|
}
|
|
|
});
|
|
});
|
|
|
- return;
|
|
|
|
|
- case 30001:
|
|
|
|
|
|
|
+ break;
|
|
|
|
|
+ case 30001://新用户必须绑定手机号,正常情况是会在登录成功后
|
|
|
Jump2View.getInstance().gotoLoginAgain();
|
|
Jump2View.getInstance().gotoLoginAgain();
|
|
|
|
|
+ finish();
|
|
|
break;
|
|
break;
|
|
|
}
|
|
}
|
|
|
- finish();
|
|
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
@Override
|
|
@Override
|
|
@@ -396,21 +411,25 @@ public class ChangeTelAct extends BaseActivity implements PhoneContract.View{
|
|
|
|
|
|
|
|
@Override
|
|
@Override
|
|
|
public void bindTelSuccess(BaseMessage o) {
|
|
public void bindTelSuccess(BaseMessage o) {
|
|
|
- G.showToast(o.getMsg()+"");
|
|
|
|
|
|
|
+ G.showToast(o);
|
|
|
switch (where_from){
|
|
switch (where_from){
|
|
|
- case 1:
|
|
|
|
|
|
|
+ case FROM_SPLASH://非第一次登录(如:登录后直接重启),老用户需要绑定手机号
|
|
|
|
|
+ Intent intent = new Intent(activity, ActMain.class);
|
|
|
|
|
+ startActivity(intent);
|
|
|
|
|
+ finish();
|
|
|
|
|
+ break;
|
|
|
|
|
+ case FROM_LOGIN:
|
|
|
case 30001:
|
|
case 30001:
|
|
|
Jump2View.getInstance().checkLabel(activity, new Action1<BaseMessage>() {
|
|
Jump2View.getInstance().checkLabel(activity, new Action1<BaseMessage>() {
|
|
|
@Override
|
|
@Override
|
|
|
public void call(BaseMessage baseMessage) {
|
|
public void call(BaseMessage baseMessage) {
|
|
|
- final Intent intent = new Intent(activity, ActMain.class);
|
|
|
|
|
|
|
+ Intent intent = new Intent(activity, ActMain.class);
|
|
|
activity.startActivity(intent);
|
|
activity.startActivity(intent);
|
|
|
activity.finish();
|
|
activity.finish();
|
|
|
}
|
|
}
|
|
|
});
|
|
});
|
|
|
- return;
|
|
|
|
|
|
|
+ break;
|
|
|
}
|
|
}
|
|
|
- finish();
|
|
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
@Override
|
|
@Override
|
|
@@ -461,4 +480,6 @@ public class ChangeTelAct extends BaseActivity implements PhoneContract.View{
|
|
|
selfCountDownTimer.cancel();
|
|
selfCountDownTimer.cancel();
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
|
|
|
+ public static final int FROM_LOGIN = 1;//第一次登录,老用户需要绑定手机号
|
|
|
|
|
+ public static final int FROM_SPLASH = 2;//非第一次登录(如:登录后直接重启),老用户需要绑定手机号
|
|
|
}
|
|
}
|