|
@@ -45,7 +45,7 @@ public class MineScoreFragment extends BaseMVPFragment<FragmentMineScoreBinding,
|
|
|
private String auditStatus = "";
|
|
|
private String currentSubjectId = "";
|
|
|
private String currentSearchStr = "";
|
|
|
-// private String musicianAuthStatus = TeacherInfoConstants.MUSICIAN_STATUS_UNPAALY;
|
|
|
+ // private String musicianAuthStatus = TeacherInfoConstants.MUSICIAN_STATUS_UNPAALY;
|
|
|
private MineScoreAdapter mineScoreAdapter;
|
|
|
|
|
|
@Override
|
|
@@ -85,7 +85,12 @@ public class MineScoreFragment extends BaseMVPFragment<FragmentMineScoreBinding,
|
|
|
protected void initView(View rootView) {
|
|
|
auditStatus = getArguments().getString("auditStatus");
|
|
|
if (TextUtils.isEmpty(auditStatus)) {
|
|
|
- auditStatus = "PASS";
|
|
|
+ auditStatus = MineScoreActivity.TYPE_PASS;
|
|
|
+ }
|
|
|
+ if (TextUtils.equals(MineScoreActivity.TYPE_BUY, auditStatus)) {
|
|
|
+ mViewBinding.llUploadScore.setVisibility(View.GONE);
|
|
|
+ } else {
|
|
|
+ mViewBinding.llUploadScore.setVisibility(View.VISIBLE);
|
|
|
}
|
|
|
RecyclerView rvAddress = mViewBinding.recyclerView;
|
|
|
mViewBinding.llUploadScore.setOnClickListener(this);
|
|
@@ -132,7 +137,7 @@ public class MineScoreFragment extends BaseMVPFragment<FragmentMineScoreBinding,
|
|
|
mineScoreAdapter.setOnItemClickListener((adapter, view, position) -> {
|
|
|
List<MusicSheetListBean.RowsBean> data = mineScoreAdapter.getData();
|
|
|
MusicSheetListBean.RowsBean rowsBean = data.get(position);
|
|
|
- if (TextUtils.equals(rowsBean.auditStatus, "UNPASS")) {
|
|
|
+ if (TextUtils.equals(rowsBean.auditStatus, MineScoreActivity.TYPE_UNPASS)) {
|
|
|
ARouter.getInstance().build(RouterPath.WebCenter.ACTIVITY_HTML)
|
|
|
.withString(WebConstants.WEB_URL, String.format(WebConstants.EDIT_SCORE_PAGE, rowsBean.id))
|
|
|
.navigation();
|
|
@@ -181,7 +186,11 @@ public class MineScoreFragment extends BaseMVPFragment<FragmentMineScoreBinding,
|
|
|
}
|
|
|
|
|
|
private void queryScore(boolean isLoading) {
|
|
|
- presenter.queryPageCourseGroup(isLoading, currentSubjectId, currentSearchStr, currentPage, auditStatus);
|
|
|
+ if (TextUtils.equals(MineScoreActivity.TYPE_BUY, auditStatus)) {
|
|
|
+ presenter.queryBuyMusicSheet(isLoading, currentSubjectId, currentSearchStr, currentPage, auditStatus);
|
|
|
+ } else {
|
|
|
+ presenter.queryPageCourseGroup(isLoading, currentSubjectId, currentSearchStr, currentPage, auditStatus);
|
|
|
+ }
|
|
|
}
|
|
|
|
|
|
public void goSearch(String searchStr, String subjectId) {
|