Commit 257465ea1c909ab7518027106b49bdf4839a5459
Exists in
yxb_dev
and in
2 other branches
no message
Showing
6 changed files
with
12 additions
and
8 deletions
Show diff stats
app/src/main/AndroidManifest.xml
| ... | ... | @@ -136,7 +136,7 @@ |
| 136 | 136 | <activity |
| 137 | 137 | android:name=".ui.activity.consult.ConsultOneLevelActivity" |
| 138 | 138 | android:windowSoftInputMode="adjustPan|stateAlwaysHidden" /> |
| 139 | - <!-- <activity android:name=".ui.activity.LoginAndRegistActivity" /> --> | |
| 139 | + | |
| 140 | 140 | <activity |
| 141 | 141 | android:name=".ui.MainActivity" |
| 142 | 142 | android:launchMode="singleInstance" | ... | ... |
app/src/main/java/com/shunzhi/parent/presenter/loginandregister/LoginAndRegisterPresenter.java
| 1 | 1 | package com.shunzhi.parent.presenter.loginandregister; |
| 2 | 2 | |
| 3 | 3 | import android.text.TextUtils; |
| 4 | +import android.util.Log; | |
| 4 | 5 | |
| 5 | 6 | import com.google.gson.JsonObject; |
| 6 | 7 | import com.share.mvpsdk.helper.RetrofitCreateHelper; |
| ... | ... | @@ -165,6 +166,7 @@ public class LoginAndRegisterPresenter extends LoginAndRegisterContract.LoginPre |
| 165 | 166 | AppConfig.getAppConfig(AppContext.getContext()).set(AppConfig.USER_ID, currentBean.getUserid()); |
| 166 | 167 | |
| 167 | 168 | if (currentBean.getStudentClass() != null && currentBean.getStudentClass().size() > 0) { |
| 169 | + Log.e("qqqq--==","qqqqq"); | |
| 168 | 170 | AppConfig.ISBINDING = true; |
| 169 | 171 | } |
| 170 | 172 | ... | ... |
app/src/main/java/com/shunzhi/parent/ui/activity/mywebview/WebViewActivity.java
| ... | ... | @@ -98,18 +98,18 @@ public class WebViewActivity extends BaseCompatActivity { |
| 98 | 98 | String account = getIntent().getStringExtra("account"); |
| 99 | 99 | String name = getIntent().getStringExtra("name"); |
| 100 | 100 | String password = getIntent().getStringExtra("password"); |
| 101 | - | |
| 102 | 101 | tv_info.setText("生成孩子“" + name + "”账号为:" + account + ",初始密码为:" + password + "(与账号相同)。孩子可以下载“汇作业”app进行使用"); |
| 103 | 102 | |
| 104 | 103 | } else if (type == AppConfig.ORDER_CENTER) { |
| 105 | 104 | binding_success.setVisibility(View.GONE); |
| 106 | 105 | binding_success2.setVisibility(View.GONE); |
| 107 | 106 | title_web.setVisibility(View.VISIBLE); |
| 107 | + title_web.setText("订购中心"); | |
| 108 | 108 | |
| 109 | 109 | } else { |
| 110 | 110 | binding_success.setVisibility(View.GONE); |
| 111 | 111 | binding_success2.setVisibility(View.GONE); |
| 112 | - title_web.setVisibility(View.GONE); | |
| 112 | + title_web.setVisibility(View.VISIBLE); | |
| 113 | 113 | LinearLayout.LayoutParams lp = (LinearLayout.LayoutParams) nesteScrollWebView.getLayoutParams(); |
| 114 | 114 | lp.setMargins(0, 0, 0, 0); |
| 115 | 115 | nesteScrollWebView.setLayoutParams(lp); | ... | ... |
app/src/main/java/com/shunzhi/parent/ui/fragment/MineFragment.java
| ... | ... | @@ -73,13 +73,14 @@ public class MineFragment extends BaseMVPCompatFragment<LoginAndRegisterContract |
| 73 | 73 | tvExit.setOnClickListener(this); |
| 74 | 74 | binding_state = view.findViewById(R.id.binding_state); |
| 75 | 75 | layout_afterLogin.setVisibility(View.GONE); |
| 76 | - if (AppConfig.ISBINDING) { | |
| 77 | - binding_state.setText(""); | |
| 78 | - } | |
| 76 | + | |
| 79 | 77 | |
| 80 | 78 | } |
| 81 | 79 | |
| 82 | 80 | private void setPersonInfo() { |
| 81 | + if (AppConfig.ISBINDING) { | |
| 82 | + binding_state.setText(""); | |
| 83 | + } | |
| 83 | 84 | if (AppConfig.ISLOGIN) { |
| 84 | 85 | String url = AppConfig.getAppConfig(AppContext.getInstance()).get(AppConfig.USER_IMAGE); |
| 85 | 86 | if (!TextUtils.isEmpty(url)) { |
| ... | ... | @@ -106,6 +107,7 @@ public class MineFragment extends BaseMVPCompatFragment<LoginAndRegisterContract |
| 106 | 107 | } |
| 107 | 108 | |
| 108 | 109 | |
| 110 | + | |
| 109 | 111 | @Override |
| 110 | 112 | public void onClick(View v) { |
| 111 | 113 | switch (v.getId()) { | ... | ... |
app/src/main/res/layout/activity_web_view.xml
| ... | ... | @@ -28,7 +28,7 @@ |
| 28 | 28 | android:id="@+id/title_web" |
| 29 | 29 | android:layout_width="wrap_content" |
| 30 | 30 | android:layout_height="wrap_content" |
| 31 | - android:text="订购中心" | |
| 31 | + android:text="" | |
| 32 | 32 | android:textSize="@dimen/txtsize_title" |
| 33 | 33 | android:layout_centerInParent="true" |
| 34 | 34 | android:visibility="gone" | ... | ... |
app/src/main/res/layout/fragment_mine.xml