|
@@ -27,6 +27,7 @@ import com.sheep.gamegroup.util.UMConfigUtils;
|
|
|
import com.sheep.jiuyan.samllsheep.R;
|
|
import com.sheep.jiuyan.samllsheep.R;
|
|
|
import com.sheep.jiuyan.samllsheep.SheepApp;
|
|
import com.sheep.jiuyan.samllsheep.SheepApp;
|
|
|
import com.sheep.jiuyan.samllsheep.utils.G;
|
|
import com.sheep.jiuyan.samllsheep.utils.G;
|
|
|
|
|
+import com.sheep.jiuyan.samllsheep.utils.SpUtils;
|
|
|
import com.sheep.jiuyan.samllsheep.utils.TitleBarUtils;
|
|
import com.sheep.jiuyan.samllsheep.utils.TitleBarUtils;
|
|
|
|
|
|
|
|
import org.xutils.ex.DbException;
|
|
import org.xutils.ex.DbException;
|
|
@@ -82,6 +83,7 @@ public class ChangeTelAct extends BaseActivity implements PhoneContract.View{
|
|
|
private String hitStr = "请输入手机号";
|
|
private String hitStr = "请输入手机号";
|
|
|
private String noticeStr = "绑定手机号";
|
|
private String noticeStr = "绑定手机号";
|
|
|
private UserEntity userEntity = null;
|
|
private UserEntity userEntity = null;
|
|
|
|
|
+ String mobiles;
|
|
|
|
|
|
|
|
//验证码倒计时
|
|
//验证码倒计时
|
|
|
private SelfCountDownTimer selfCountDownTimer;
|
|
private SelfCountDownTimer selfCountDownTimer;
|
|
@@ -125,11 +127,12 @@ public class ChangeTelAct extends BaseActivity implements PhoneContract.View{
|
|
|
} catch (DbException e) {
|
|
} catch (DbException e) {
|
|
|
e.printStackTrace();
|
|
e.printStackTrace();
|
|
|
}
|
|
}
|
|
|
- if(userEntity != null && !TextUtils.isEmpty(userEntity.getMobile())){//提示
|
|
|
|
|
|
|
+ mobiles = SpUtils.getPhone(activity);
|
|
|
|
|
+ if(mobiles != null && !TextUtils.isEmpty(mobiles)){//提示
|
|
|
oldOrNew = 1;
|
|
oldOrNew = 1;
|
|
|
showChangeLayout.setVisibility(View.VISIBLE);
|
|
showChangeLayout.setVisibility(View.VISIBLE);
|
|
|
changePhoneLayout.setVisibility(View.GONE);
|
|
changePhoneLayout.setVisibility(View.GONE);
|
|
|
- telTv.setText(userEntity.getMobile()+"");
|
|
|
|
|
|
|
+ telTv.setText(mobiles+"");
|
|
|
return;
|
|
return;
|
|
|
}
|
|
}
|
|
|
refreshData();
|
|
refreshData();
|
|
@@ -174,7 +177,7 @@ public class ChangeTelAct extends BaseActivity implements PhoneContract.View{
|
|
|
hitStr = "请输入原手机号码";
|
|
hitStr = "请输入原手机号码";
|
|
|
noticeStr = "验证原手机";
|
|
noticeStr = "验证原手机";
|
|
|
phoneEtAccount.setHint(hitStr+"");
|
|
phoneEtAccount.setHint(hitStr+"");
|
|
|
- phoneEtAccount.setText(userEntity.getMobile()+"");
|
|
|
|
|
|
|
+ phoneEtAccount.setText(mobiles+"");
|
|
|
}else{
|
|
}else{
|
|
|
step = 0;
|
|
step = 0;
|
|
|
hitStr = "请输入手机号码";
|
|
hitStr = "请输入手机号码";
|