Commit 33ca66ef1093baea0ecddfd7fad94091337f5710

Authored by 姚旭斌
1 parent ddfe0ee9
Exists in yxb_dev and in 1 other branch developer

no message

.idea/inspectionProfiles/profiles_settings.xml
... ... @@ -1,6 +0,0 @@
1   -<component name="InspectionProjectProfileManager">
2   - <settings>
3   - <option name="PROJECT_PROFILE" />
4   - <version value="1.0" />
5   - </settings>
6   -</component>
7 0 \ No newline at end of file
.idea/misc.xml
... ... @@ -5,11 +5,12 @@
5 5 <option name="myDefaultNotNull" value="android.support.annotation.NonNull" />
6 6 <option name="myNullables">
7 7 <value>
8   - <list size="4">
  8 + <list size="5">
9 9 <item index="0" class="java.lang.String" itemvalue="org.jetbrains.annotations.Nullable" />
10 10 <item index="1" class="java.lang.String" itemvalue="javax.annotation.Nullable" />
11   - <item index="2" class="java.lang.String" itemvalue="edu.umd.cs.findbugs.annotations.Nullable" />
12   - <item index="3" class="java.lang.String" itemvalue="android.support.annotation.Nullable" />
  11 + <item index="2" class="java.lang.String" itemvalue="javax.annotation.CheckForNull" />
  12 + <item index="3" class="java.lang.String" itemvalue="edu.umd.cs.findbugs.annotations.Nullable" />
  13 + <item index="4" class="java.lang.String" itemvalue="android.support.annotation.Nullable" />
13 14 </list>
14 15 </value>
15 16 </option>
... ... @@ -24,7 +25,7 @@
24 25 </value>
25 26 </option>
26 27 </component>
27   - <component name="ProjectRootManager" version="2" languageLevel="JDK_1_7" project-jdk-name="1.8" project-jdk-type="JavaSDK">
  28 + <component name="ProjectRootManager" version="2" languageLevel="JDK_1_7" default="true" project-jdk-name="1.8" project-jdk-type="JavaSDK">
28 29 <output url="file://$PROJECT_DIR$/build/classes" />
29 30 </component>
30 31 <component name="ProjectType">
... ...
.idea/modules.xml
... ... @@ -4,9 +4,7 @@
4 4 <modules>
5 5 <module fileurl="file://$PROJECT_DIR$/app/app.iml" filepath="$PROJECT_DIR$/app/app.iml" />
6 6 <module fileurl="file://$PROJECT_DIR$/mvpsdk/mvpsdk.iml" filepath="$PROJECT_DIR$/mvpsdk/mvpsdk.iml" />
7   - <module fileurl="file://$PROJECT_DIR$/parentWorkHolper.iml" filepath="$PROJECT_DIR$/parentWorkHolper.iml" />
8 7 <module fileurl="file://$PROJECT_DIR$/parentwork.iml" filepath="$PROJECT_DIR$/parentwork.iml" />
9   - <module fileurl="file://F:/parentWorkHolper/parentwork.iml" filepath="F:/parentWorkHolper/parentwork.iml" />
10 8 <module fileurl="file://$PROJECT_DIR$/processor/processor.iml" filepath="$PROJECT_DIR$/processor/processor.iml" />
11 9 <module fileurl="file://$PROJECT_DIR$/roundedimageview-2.2.1/roundedimageview-2.2.1.iml" filepath="$PROJECT_DIR$/roundedimageview-2.2.1/roundedimageview-2.2.1.iml" />
12 10 </modules>
... ...
.idea/vcs.xml
1 1 <?xml version="1.0" encoding="UTF-8"?>
2 2 <project version="4">
3 3 <component name="VcsDirectoryMappings">
4   - <mapping directory="" vcs="Git" />
  4 + <mapping directory="$PROJECT_DIR$" vcs="Git" />
5 5 </component>
6 6 </project>
7 7 \ No newline at end of file
... ...
app/libs/processor.jar
No preview for this file type
app/src/main/java/com/shunzhi/parent/ui/activity/binding/CheckInfoActivity.java
... ... @@ -4,6 +4,7 @@ import android.content.Intent;
4 4 import android.os.Bundle;
5 5 import android.support.annotation.NonNull;
6 6 import android.text.TextUtils;
  7 +import android.util.Log;
7 8 import android.view.Gravity;
8 9 import android.view.LayoutInflater;
9 10 import android.view.View;
... ... @@ -83,40 +84,11 @@ public class CheckInfoActivity extends BaseMVPCompatActivity&lt;MyChildContract.MyC
83 84 public void onClick(View v) {
84 85 if (!TextUtils.isEmpty(child_name.getText()) && !TextUtils.isEmpty(child_sex.getText())
85 86 && !TextUtils.isEmpty(child_grade.getText()) && !TextUtils.isEmpty(child_class.getText())) {
86   - if (isNew == 0) {
87   - mPresenter.addChild(0,"",Integer.parseInt(AppConfig.getAppConfig(AppContext.getInstance()).get(AppConfig.PARENT_ID)), true, true, 0, 0, studentId,"");
  87 + if ("".equals(captcha)) {
  88 + mPresenter.addChild(0, "", Integer.parseInt(AppConfig.getAppConfig(AppContext.getInstance()).get(AppConfig.PARENT_ID)), true, true, 0, 0, studentId, "");
88 89 } else {
89   - mPresenter.addChild(0,"",Integer.parseInt(AppConfig.getAppConfig(AppContext.getInstance()).get(AppConfig.PARENT_ID)), false, true, 0, classId, studentId, "");
  90 + mPresenter.addChild(0, "", Integer.parseInt(AppConfig.getAppConfig(AppContext.getInstance()).get(AppConfig.PARENT_ID)), false, true, 0, classId, studentId, "");
90 91 }
91   - } else {
92   - final PopupWindow popupWindow = new PopupWindow();
93   - popupWindow.setWidth(ViewGroup.LayoutParams.WRAP_CONTENT);
94   - popupWindow.setHeight(ViewGroup.LayoutParams.WRAP_CONTENT);
95   - backgroundAlpha(0.5f);
96   - View view = LayoutInflater.from(this).inflate(R.layout.dialog_view, null);
97   - TextView dialog_info = view.findViewById(R.id.dialog_info);
98   - dialog_info.setText("当前无可绑定孩子,点击确认返回孩子列表");
99   - dialog_info.setGravity(Gravity.CENTER);
100   - TextView right_btn = view.findViewById(R.id.right_btn);
101   - right_btn.setOnClickListener(new View.OnClickListener() {
102   - @Override
103   - public void onClick(View v) {
104   - popupWindow.dismiss();
105   - startActivity(new Intent().setFlags(Intent.FLAG_ACTIVITY_CLEAR_TOP).setClass(CheckInfoActivity.this, MyChildActivity.class));
106   - finish();
107   - }
108   - });
109   - TextView cancel_btn = view.findViewById(R.id.cancel_btn);
110   - cancel_btn.setOnClickListener(new View.OnClickListener() {
111   - @Override
112   - public void onClick(View v) {
113   - popupWindow.dismiss();
114   - backgroundAlpha(1f);
115   - }
116   - });
117   -
118   - popupWindow.setContentView(view);
119   - popupWindow.showAtLocation(iphone_layout, Gravity.CENTER, 0, 0);
120 92 }
121 93 }
122 94  
... ... @@ -142,8 +114,6 @@ public class CheckInfoActivity extends BaseMVPCompatActivity&lt;MyChildContract.MyC
142 114 child_sex.setText(sexStr);
143 115 child_grade.setText(childBean.getGradename());
144 116 child_class.setText(childBean.getClassName());
145   - } else {
146   - ToastUtils.showToast("该账号下无需要绑定的孩子");
147 117 }
148 118 if (currentBean.isNew() == 1) {
149 119 iphone_layout.setVisibility(View.INVISIBLE);
... ... @@ -152,11 +122,11 @@ public class CheckInfoActivity extends BaseMVPCompatActivity&lt;MyChildContract.MyC
152 122 }
153 123  
154 124 @Override
155   - public void addChildSuccess(String account,String password) {
  125 + public void addChildSuccess(String account, String password) {
156 126 // WebViewActivity.start_show(CheckInfoActivity.this,AppConfig.BINDING_SUCCESS_HEZUO);
157 127 WebViewActivity.getInstance(CheckInfoActivity.this,
158   - AppConfig.BASE_URL_ORDER+"/RecommendOrder.aspx?userid="+
159   - AppConfig.getAppConfig(AppContext.getInstance()).get(AppConfig.USER_ID),AppConfig.BINDING_SUCCESS_HEZUO);
  128 + AppConfig.BASE_URL_ORDER + "/RecommendOrder.aspx?userid=" +
  129 + AppConfig.getAppConfig(AppContext.getInstance()).get(AppConfig.USER_ID), AppConfig.BINDING_SUCCESS_HEZUO);
160 130 finish();
161 131  
162 132 }
... ...
app/src/main/java/com/shunzhi/parent/ui/activity/binding/SelectSchoolActivity.java
... ... @@ -237,7 +237,12 @@ public class SelectSchoolActivity extends BaseMVPCompatActivity&lt;SchoolListContra
237 237 @Override
238 238 public void showChild(CurrentBean currentBean) {
239 239 if (currentBean.isNew() == 0) {
240   - startActivity(new Intent().putExtra("school_id", schoolId).setClass(SelectSchoolActivity.this, CheckInfoActivity.class));
  240 +
  241 + if (currentBean.getStudentClass().size() > 0 && currentBean.getStudentClass() != null) {
  242 + startActivity(new Intent().putExtra("school_id", schoolId).setClass(SelectSchoolActivity.this, CheckInfoActivity.class));
  243 + } else {
  244 + startActivity(new Intent().putExtra("school_id", schoolId).setClass(SelectSchoolActivity.this, InviteCodeActivity.class));
  245 + }
241 246 } else {
242 247 startActivity(new Intent().putExtra("school_id", schoolId).setClass(SelectSchoolActivity.this, InviteCodeActivity.class));
243 248 }
... ...