Commit 5d4b8821aab560abecd5f72163401d31039433f8
1 parent
3fe36dd9
Exists in
yxb_dev
and in
1 other branch
no message
Showing
1 changed file
with
11 additions
and
2 deletions
Show diff stats
app/src/main/java/com/shunzhi/parent/ui/fragment/report/ChengZhangFragment.java
1 | package com.shunzhi.parent.ui.fragment.report; | 1 | package com.shunzhi.parent.ui.fragment.report; |
2 | 2 | ||
3 | +import android.content.Intent; | ||
3 | import android.os.Bundle; | 4 | import android.os.Bundle; |
4 | import android.os.Handler; | 5 | import android.os.Handler; |
5 | import android.os.Message; | 6 | import android.os.Message; |
@@ -36,6 +37,7 @@ import com.shunzhi.parent.bean.ReportBean; | @@ -36,6 +37,7 @@ import com.shunzhi.parent.bean.ReportBean; | ||
36 | import com.shunzhi.parent.contract.report.ReportContract; | 37 | import com.shunzhi.parent.contract.report.ReportContract; |
37 | import com.shunzhi.parent.presenter.report.ReportPresenter; | 38 | import com.shunzhi.parent.presenter.report.ReportPresenter; |
38 | import com.shunzhi.parent.ui.activity.BankActivity; | 39 | import com.shunzhi.parent.ui.activity.BankActivity; |
40 | +import com.shunzhi.parent.ui.activity.MyChildActivity; | ||
39 | import com.shunzhi.parent.ui.activity.apply.ApplyReplaceCardActivity; | 41 | import com.shunzhi.parent.ui.activity.apply.ApplyReplaceCardActivity; |
40 | import com.shunzhi.parent.ui.activity.apply.ApplySigninActivity; | 42 | import com.shunzhi.parent.ui.activity.apply.ApplySigninActivity; |
41 | import com.shunzhi.parent.ui.activity.mywebview.WebViewActivity; | 43 | import com.shunzhi.parent.ui.activity.mywebview.WebViewActivity; |
@@ -184,7 +186,7 @@ public class ChengZhangFragment extends BaseMVPCompatFragment<ReportContract.Rep | @@ -184,7 +186,7 @@ public class ChengZhangFragment extends BaseMVPCompatFragment<ReportContract.Rep | ||
184 | 186 | ||
185 | @Override | 187 | @Override |
186 | public void onClick(View view) { | 188 | public void onClick(View view) { |
187 | - if(showOrderPopu()) | 189 | + if (showOrderPopu()) |
188 | return; | 190 | return; |
189 | switch (view.getId()) { | 191 | switch (view.getId()) { |
190 | 192 | ||
@@ -244,7 +246,7 @@ public class ChengZhangFragment extends BaseMVPCompatFragment<ReportContract.Rep | @@ -244,7 +246,7 @@ public class ChengZhangFragment extends BaseMVPCompatFragment<ReportContract.Rep | ||
244 | } | 246 | } |
245 | 247 | ||
246 | if (TextUtils.isEmpty(childBean.getCardNumber())) { | 248 | if (TextUtils.isEmpty(childBean.getCardNumber())) { |
247 | - BankActivity.newInstance(getActivity(), "如果使用该应用,请前往激活孩子校园卡",childBean.getStudentName(),childBean.getStudentId(),0); | 249 | + BankActivity.newInstance(getActivity(), "如果使用该应用,请前往激活孩子校园卡", childBean.getStudentName(), childBean.getStudentId(), 0); |
248 | return true; | 250 | return true; |
249 | 251 | ||
250 | } | 252 | } |
@@ -297,6 +299,13 @@ public class ChengZhangFragment extends BaseMVPCompatFragment<ReportContract.Rep | @@ -297,6 +299,13 @@ public class ChengZhangFragment extends BaseMVPCompatFragment<ReportContract.Rep | ||
297 | Spannable span = new SpannableString(text); | 299 | Spannable span = new SpannableString(text); |
298 | span.setSpan(new ForegroundColorSpan(getResources().getColor(R.color.xueqing_blue)), 13, 22, Spannable.SPAN_EXCLUSIVE_EXCLUSIVE); | 300 | span.setSpan(new ForegroundColorSpan(getResources().getColor(R.color.xueqing_blue)), 13, 22, Spannable.SPAN_EXCLUSIVE_EXCLUSIVE); |
299 | tvNoData.setText(span); | 301 | tvNoData.setText(span); |
302 | + tvNoData.setOnClickListener(new View.OnClickListener() { | ||
303 | + @Override | ||
304 | + public void onClick(View v) { | ||
305 | + startActivity(new Intent().setClass(getActivity(), MyChildActivity.class)); | ||
306 | +// getActivity().finish(); | ||
307 | + } | ||
308 | + }); | ||
300 | } | 309 | } |
301 | 310 | ||
302 | } | 311 | } |