|
@@ -19,7 +19,7 @@ import com.cooleshow.base.utils.SpannableStringUtils;
|
|
|
import com.cooleshow.base.utils.ToastUtils;
|
|
|
import com.cooleshow.base.utils.helper.QMUIStatusBarHelper;
|
|
|
import com.cooleshow.usercenter.R;
|
|
|
-import com.cooleshow.usercenter.UserConstants;
|
|
|
+import com.cooleshow.usercenter.constants.UserConstants;
|
|
|
import com.cooleshow.usercenter.databinding.ActivityVerifyCodeLoginBinding;
|
|
|
import com.cooleshow.usercenter.helper.PhoneCheckHelper;
|
|
|
import com.cooleshow.usercenter.helper.UserHelper;
|
|
@@ -34,7 +34,8 @@ import androidx.annotation.Nullable;
|
|
|
@Route(path = RouterPath.UserCenter.PATH_VERIFY_LOGIN)
|
|
|
public class VerifyCodeLoginActivity extends BaseMVPActivity<ActivityVerifyCodeLoginBinding, VerifyLoginPresenter> implements View.OnClickListener {
|
|
|
public static final int LOGIN_STATUS_REQUEST_CODE = 10000002;
|
|
|
-
|
|
|
+ public static final int TEACHER_ITEM = 1;
|
|
|
+ public static final int STUDENT_ITEM = 2;
|
|
|
@Override
|
|
|
protected void onCreate(@Nullable Bundle savedInstanceState) {
|
|
|
super.onCreate(savedInstanceState);
|
|
@@ -49,6 +50,12 @@ public class VerifyCodeLoginActivity extends BaseMVPActivity<ActivityVerifyCodeL
|
|
|
|
|
|
@Override
|
|
|
protected void initView() {
|
|
|
+ int loginFromType = getIntent().getIntExtra(UserConstants.LOGIN_ITEM, 0);
|
|
|
+ if(loginFromType == TEACHER_ITEM){
|
|
|
+ viewBinding.tvHeaderTitle.setText("您好, \n欢迎使用酷乐秀学院");
|
|
|
+ } else if(loginFromType == STUDENT_ITEM){
|
|
|
+ viewBinding.tvHeaderTitle.setText("您好, \n欢迎使用酷乐秀");
|
|
|
+ }
|
|
|
viewBinding.tvSendVerifyCode.setOnClickListener(this);
|
|
|
viewBinding.tvLoginByCode.setOnClickListener(this);
|
|
|
String phoneNum = getIntent().getStringExtra(UserConstants.PHONE_NUM_KEY);
|