Browse Source

[회원가입][Bug] 30일 이내 재가입 분기

hyodong.min 7 years ago
parent
commit
06756c544d

+ 11 - 7
app/src/main/java/kr/co/zumo/app/lifeplus/view/fragment/signup/SignUpNeedFor30daysFragment.java

@@ -7,6 +7,7 @@ import android.view.LayoutInflater;
 import android.view.View;
 import android.view.ViewGroup;
 import android.widget.Button;
+import android.widget.TextView;
 
 import kr.co.zumo.app.R;
 import kr.co.zumo.app.lifeplus.model.SignUpModel;
@@ -41,14 +42,17 @@ public class SignUpNeedFor30daysFragment extends FragmentBase<SignUpNeedFor30day
   @Override
   protected void onAfterActivityCreated(Bundle savedInstanceState) {
 
-    View buttonAuthorization = (Button) getView().findViewById(R.id.sign_up_mobile_authorization_button);
+    View parent = getView();
 
-    buttonAuthorization.setOnClickListener(new View.OnClickListener() {
-      @Override
-      public void onClick(View view) {
-        presenter.onEvent(new Event.Builder(Event.SUCCESS).build());
-      }
-    });
+    TextView title = parent.findViewById(R.id.text_title);
+    TextView description = parent.findViewById(R.id.text_description);
+
+    title.setText(R.string.sign_up_30days_title);
+    description.setText(R.string.sign_up_30days_description);
+
+    Button button = getView().findViewById(R.id.button_confirm);
+    button.setText(R.string.confirm);
+    button.setOnClickListener(view -> presenter.onEvent(new Event.Builder(Event.SUCCESS).build()));
   }
 
   @Override

+ 1 - 1
app/src/main/java/kr/co/zumo/app/lifeplus/view/presenter/signup/SignUpMobileAuthorizationPresenter.java

@@ -127,7 +127,7 @@ public class SignUpMobileAuthorizationPresenter extends SignUpFragmentPresenter
       // todo 기존 회원
     }
     else if (false) {
-      // todo 30일 이내 재가입
+      onCommand(new FragmentChangeCommand(ScreenID.SIGN_UP_NEED_FOR_30DAYS, ScreenID.DIRECTION_NEXT));
     }
     else {
       Context context = App.getInstance().getContext();

+ 2 - 1
app/src/main/java/kr/co/zumo/app/lifeplus/view/presenter/signup/SignUpNeedFor30daysPresenter.java

@@ -58,7 +58,8 @@ public class SignUpNeedFor30daysPresenter extends SignUpFragmentPresenter {
 
   @Override
   public boolean onBackPressed() {
-    return false;
+    onCommand(new ActivityChangeCommand(ScreenID.ACTIVITY_MAIN, ScreenID.DIRECTION_BACK));
+    return true;
   }
 
   @Override

+ 2 - 0
app/src/main/res/values/strings.xml

@@ -96,6 +96,8 @@
   <string name="sign_up_register_pin_again_title">간편암호 재확인</string>
   <string name="sign_up_from_zumo_title">기존 ZUMO 회원이시네요.\n간편암호로 편리하게\nLifeplus를 이용해보세요.</string>
   <string name="sign_up_from_zumo_description">새로워진 서비스와 함께 고객님의 정보보호를 위해 본인인증이 필요합니다.</string>
+  <string name="sign_up_30days_title">Lifeplus 서비스는\n회원탈퇴 후 30일 이내\n재가입이 불가합니다.</string>
+  <string name="sign_up_30days_description">추후 다시 시도해주시기 바랍니다. 감사합니다.</string>
 
   <string name="login_input_pin">간편암호 4자리를 입력해주세요.</string>
   <string name="login_input_pin_title">간편암호 입력</string>