3
This commit is contained in:
@@ -82,7 +82,8 @@ import cn.shangyu.gdxzExpert.widget.LoadingPage.ResultState;
|
||||
public class LoginSetInfoActivity extends BaseActivity implements
|
||||
OnItemClickListener {
|
||||
|
||||
private Button submit_myinfo;
|
||||
private Button submit_myinfo;
|
||||
private Button btn_skip_info;
|
||||
private TextView tv_showCheckInfo;
|
||||
private ImageView upload_certificateImg;
|
||||
private static final int TO_SELECT_PHOTO = 3;
|
||||
@@ -205,7 +206,11 @@ public class LoginSetInfoActivity extends BaseActivity implements
|
||||
ll_my_disease = (LinearLayout) view.findViewById(R.id.ll_my_disease);// 专长
|
||||
my_disease = (TextView) view.findViewById(R.id.my_disease);// 专长
|
||||
|
||||
submit_myinfo = (Button) view.findViewById(R.id.submit_myinfo);// 提交
|
||||
submit_myinfo = (Button) view.findViewById(R.id.submit_myinfo);// 提交
|
||||
btn_skip_info = (Button) view.findViewById(R.id.btn_skip_info);// 跳过
|
||||
if (btn_skip_info != null) {
|
||||
btn_skip_info.setOnClickListener(this);
|
||||
}
|
||||
tv_showCheckInfo = (TextView) view.findViewById(R.id.tv_showCheckInfo);// 回显审核状态
|
||||
|
||||
// my_photo.setOnClickListener(this);
|
||||
@@ -377,8 +382,11 @@ public class LoginSetInfoActivity extends BaseActivity implements
|
||||
Intent intent = getIntent();
|
||||
// ( 1.待审核 2.审核中 3.需要补充修改资料 4.再次提交审核 5.拒绝
|
||||
// 6.已通过)//修改,0,1,3,4,5需要提交资料,6是通过,2其他不允许提交
|
||||
state = intent.getIntExtra("state", 0);
|
||||
String checkInfo = intent.getStringExtra("checkInfo");
|
||||
state = intent.getIntExtra("state", SharePrefUtil.getInt(ct, "state", 0));
|
||||
String checkInfo = intent.getStringExtra("checkInfo");
|
||||
if (TextUtils.isEmpty(checkInfo)) {
|
||||
checkInfo = SharePrefUtil.getString(ct, "checkInfo", "");
|
||||
}
|
||||
userName = intent.getStringExtra("phone");
|
||||
LogUtil.i("审核信息==" + state);
|
||||
// 根据状态进行显示规则,与提示用户
|
||||
@@ -596,6 +604,9 @@ public class LoginSetInfoActivity extends BaseActivity implements
|
||||
case R.id.ll_my_disease:// 专长
|
||||
showDiseasePop(my_disease);
|
||||
break;
|
||||
case R.id.btn_skip_info:// 跳过
|
||||
handleSkipOrBack(mobile);
|
||||
break;
|
||||
case R.id.submit_myinfo:// 提交
|
||||
submitInfo();
|
||||
break;
|
||||
@@ -607,8 +618,10 @@ public class LoginSetInfoActivity extends BaseActivity implements
|
||||
overridePendingTransition(R.anim.timepicker_anim_enter_bottom,
|
||||
R.anim.timepicker_anim_exit_bottom);
|
||||
break;
|
||||
case R.id.top_back_layout:// 返回
|
||||
Intent Login = new Intent(ct, LoginNewActivity.class);
|
||||
case R.id.top_back_layout:// 返回
|
||||
handleSkipOrBack(SharePrefUtil.getString(ct, Constant.SP_IS_FIRST_NAME, Constant.mobile, ""));
|
||||
if (ct != null) return;
|
||||
Intent Login = new Intent(ct, LoginNewActivity.class);
|
||||
// 注册后跳转到登录页面
|
||||
|
||||
Login.putExtra("phone", userName);
|
||||
@@ -626,6 +639,17 @@ public class LoginSetInfoActivity extends BaseActivity implements
|
||||
}
|
||||
}
|
||||
|
||||
private void handleSkipOrBack(String mobile) {
|
||||
if (submit_myinfo != null && submit_myinfo.getVisibility() == View.VISIBLE && !StringUtil.isEmpty(mobile)) {
|
||||
save(mobile);
|
||||
}
|
||||
if (MainActivity.mMainActivity == null || MainActivity.mMainActivity.isFinishing() || MainActivity.mMainActivity.isDestroyed()) {
|
||||
Intent intent = new Intent(ct, MainActivity.class);
|
||||
startActivity(intent);
|
||||
}
|
||||
this.finish();
|
||||
}
|
||||
|
||||
// 返回键监听
|
||||
@Override
|
||||
public void onBackPressed() {
|
||||
@@ -636,6 +660,8 @@ public class LoginSetInfoActivity extends BaseActivity implements
|
||||
// finish();
|
||||
// AppManager.getAppManager().finishAllActivity();
|
||||
// android.os.Process.killProcess(android.os.Process.myPid());
|
||||
handleSkipOrBack(SharePrefUtil.getString(ct, Constant.SP_IS_FIRST_NAME, Constant.mobile, ""));
|
||||
if (ct != null) return;
|
||||
Intent Login = new Intent(ct, LoginNewActivity.class);
|
||||
// 注册后跳转到登录页面
|
||||
|
||||
@@ -1264,7 +1290,8 @@ public class LoginSetInfoActivity extends BaseActivity implements
|
||||
submit_myinfo.setEnabled(false);
|
||||
submit_myinfo.setVisibility(View.GONE);
|
||||
setInfoClick(false);
|
||||
SharePrefUtil.saveString(ct, Constant.realName, name);// 真实姓名
|
||||
SharePrefUtil.saveString(ct, Constant.realName, name);// 真实姓名
|
||||
SharePrefUtil.saveInt(ct, "state", 2);// 审核中
|
||||
} else {
|
||||
ToastUtil.showToast("提交失败,请重试" + bean.message);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user