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 | package com.shunzhi.parent.presenter.loginandregister; | 1 | package com.shunzhi.parent.presenter.loginandregister; |
2 | 2 | ||
3 | import android.text.TextUtils; | 3 | import android.text.TextUtils; |
4 | +import android.util.Log; | ||
4 | 5 | ||
5 | import com.google.gson.JsonObject; | 6 | import com.google.gson.JsonObject; |
6 | import com.share.mvpsdk.helper.RetrofitCreateHelper; | 7 | import com.share.mvpsdk.helper.RetrofitCreateHelper; |
@@ -165,6 +166,7 @@ public class LoginAndRegisterPresenter extends LoginAndRegisterContract.LoginPre | @@ -165,6 +166,7 @@ public class LoginAndRegisterPresenter extends LoginAndRegisterContract.LoginPre | ||
165 | AppConfig.getAppConfig(AppContext.getContext()).set(AppConfig.USER_ID, currentBean.getUserid()); | 166 | AppConfig.getAppConfig(AppContext.getContext()).set(AppConfig.USER_ID, currentBean.getUserid()); |
166 | 167 | ||
167 | if (currentBean.getStudentClass() != null && currentBean.getStudentClass().size() > 0) { | 168 | if (currentBean.getStudentClass() != null && currentBean.getStudentClass().size() > 0) { |
169 | + Log.e("qqqq--==","qqqqq"); | ||
168 | AppConfig.ISBINDING = true; | 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,18 +105,18 @@ public class WebViewActivity extends BaseCompatActivity { | ||
105 | String account = getIntent().getStringExtra("account"); | 105 | String account = getIntent().getStringExtra("account"); |
106 | String name = getIntent().getStringExtra("name"); | 106 | String name = getIntent().getStringExtra("name"); |
107 | String password = getIntent().getStringExtra("password"); | 107 | String password = getIntent().getStringExtra("password"); |
108 | - | ||
109 | tv_info.setText("生成孩子“" + name + "”账号为:" + account + ",初始密码为:" + password + "(与账号相同)。孩子可以下载“汇作业”app进行使用"); | 108 | tv_info.setText("生成孩子“" + name + "”账号为:" + account + ",初始密码为:" + password + "(与账号相同)。孩子可以下载“汇作业”app进行使用"); |
110 | 109 | ||
111 | } else if (type == AppConfig.ORDER_CENTER) { | 110 | } else if (type == AppConfig.ORDER_CENTER) { |
112 | binding_success.setVisibility(View.GONE); | 111 | binding_success.setVisibility(View.GONE); |
113 | binding_success2.setVisibility(View.GONE); | 112 | binding_success2.setVisibility(View.GONE); |
114 | title_web.setVisibility(View.VISIBLE); | 113 | title_web.setVisibility(View.VISIBLE); |
114 | + title_web.setText("订购中心"); | ||
115 | 115 | ||
116 | } else { | 116 | } else { |
117 | binding_success.setVisibility(View.GONE); | 117 | binding_success.setVisibility(View.GONE); |
118 | binding_success2.setVisibility(View.GONE); | 118 | binding_success2.setVisibility(View.GONE); |
119 | - title_web.setVisibility(View.GONE); | 119 | + title_web.setVisibility(View.VISIBLE); |
120 | LinearLayout.LayoutParams lp = (LinearLayout.LayoutParams) nesteScrollWebView.getLayoutParams(); | 120 | LinearLayout.LayoutParams lp = (LinearLayout.LayoutParams) nesteScrollWebView.getLayoutParams(); |
121 | lp.setMargins(0, 0, 0, 0); | 121 | lp.setMargins(0, 0, 0, 0); |
122 | nesteScrollWebView.setLayoutParams(lp); | 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,13 +73,14 @@ public class MineFragment extends BaseMVPCompatFragment<LoginAndRegisterContract | ||
73 | tvExit.setOnClickListener(this); | 73 | tvExit.setOnClickListener(this); |
74 | binding_state = view.findViewById(R.id.binding_state); | 74 | binding_state = view.findViewById(R.id.binding_state); |
75 | layout_afterLogin.setVisibility(View.GONE); | 75 | layout_afterLogin.setVisibility(View.GONE); |
76 | - if (AppConfig.ISBINDING) { | ||
77 | - binding_state.setText(""); | ||
78 | - } | 76 | + |
79 | 77 | ||
80 | } | 78 | } |
81 | 79 | ||
82 | private void setPersonInfo() { | 80 | private void setPersonInfo() { |
81 | + if (AppConfig.ISBINDING) { | ||
82 | + binding_state.setText(""); | ||
83 | + } | ||
83 | if (AppConfig.ISLOGIN) { | 84 | if (AppConfig.ISLOGIN) { |
84 | String url = AppConfig.getAppConfig(AppContext.getInstance()).get(AppConfig.USER_IMAGE); | 85 | String url = AppConfig.getAppConfig(AppContext.getInstance()).get(AppConfig.USER_IMAGE); |
85 | if (!TextUtils.isEmpty(url)) { | 86 | if (!TextUtils.isEmpty(url)) { |
@@ -106,6 +107,7 @@ public class MineFragment extends BaseMVPCompatFragment<LoginAndRegisterContract | @@ -106,6 +107,7 @@ public class MineFragment extends BaseMVPCompatFragment<LoginAndRegisterContract | ||
106 | } | 107 | } |
107 | 108 | ||
108 | 109 | ||
110 | + | ||
109 | @Override | 111 | @Override |
110 | public void onClick(View v) { | 112 | public void onClick(View v) { |
111 | switch (v.getId()) { | 113 | switch (v.getId()) { |
app/src/main/res/layout/activity_web_view.xml
@@ -28,7 +28,7 @@ | @@ -28,7 +28,7 @@ | ||
28 | android:id="@+id/title_web" | 28 | android:id="@+id/title_web" |
29 | android:layout_width="wrap_content" | 29 | android:layout_width="wrap_content" |
30 | android:layout_height="wrap_content" | 30 | android:layout_height="wrap_content" |
31 | - android:text="订购中心" | 31 | + android:text="" |
32 | android:textSize="@dimen/txtsize_title" | 32 | android:textSize="@dimen/txtsize_title" |
33 | android:layout_centerInParent="true" | 33 | android:layout_centerInParent="true" |
34 | android:visibility="gone" | 34 | android:visibility="gone" |
app/src/main/res/layout/fragment_mine.xml
@@ -184,7 +184,7 @@ | @@ -184,7 +184,7 @@ | ||
184 | android:layout_height="wrap_content" | 184 | android:layout_height="wrap_content" |
185 | android:layout_gravity="center_vertical" | 185 | android:layout_gravity="center_vertical" |
186 | android:layout_weight="1" | 186 | android:layout_weight="1" |
187 | - android:text="家校通订购" | 187 | + android:text="订购中心" |
188 | android:textSize="@dimen/txtsize_title" /> | 188 | android:textSize="@dimen/txtsize_title" /> |
189 | 189 | ||
190 | </LinearLayout> | 190 | </LinearLayout> |