Commit bec10697087c80f9dd6e626f1d2028e5fd8e4624
1 parent
e56d2f35
Exists in
yxb_dev
and in
2 other branches
no message
Showing
5 changed files
with
11 additions
and
7 deletions
Show diff stats
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
| ... | ... | @@ -105,18 +105,18 @@ public class WebViewActivity extends BaseCompatActivity { |
| 105 | 105 | String account = getIntent().getStringExtra("account"); |
| 106 | 106 | String name = getIntent().getStringExtra("name"); |
| 107 | 107 | String password = getIntent().getStringExtra("password"); |
| 108 | - | |
| 109 | 108 | tv_info.setText("生成孩子“" + name + "”账号为:" + account + ",初始密码为:" + password + "(与账号相同)。孩子可以下载“汇作业”app进行使用"); |
| 110 | 109 | |
| 111 | 110 | } else if (type == AppConfig.ORDER_CENTER) { |
| 112 | 111 | binding_success.setVisibility(View.GONE); |
| 113 | 112 | binding_success2.setVisibility(View.GONE); |
| 114 | 113 | title_web.setVisibility(View.VISIBLE); |
| 114 | + title_web.setText("订购中心"); | |
| 115 | 115 | |
| 116 | 116 | } else { |
| 117 | 117 | binding_success.setVisibility(View.GONE); |
| 118 | 118 | binding_success2.setVisibility(View.GONE); |
| 119 | - title_web.setVisibility(View.GONE); | |
| 119 | + title_web.setVisibility(View.VISIBLE); | |
| 120 | 120 | LinearLayout.LayoutParams lp = (LinearLayout.LayoutParams) nesteScrollWebView.getLayoutParams(); |
| 121 | 121 | lp.setMargins(0, 0, 0, 0); |
| 122 | 122 | 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