|
@@ -63,48 +63,28 @@ public class MineVideoCourseAdapter extends BaseQuickAdapter<VideoCourseListBean
|
|
|
tv_buy_num.setVisibility(View.VISIBLE);
|
|
|
}
|
|
|
|
|
|
- TextView tv_operate_tip = helper.getView(R.id.tv_operate_tip);
|
|
|
- View view_divide_bottom = helper.getView(R.id.view_divide_bottom);
|
|
|
TextView tv_course_status_tip = helper.getView(R.id.tv_course_status_tip);
|
|
|
if(TextUtils.isEmpty(auditStatus)){
|
|
|
- tv_operate_tip.setVisibility(View.GONE);
|
|
|
tv_course_status_tip.setVisibility(View.GONE);
|
|
|
return;
|
|
|
}
|
|
|
if (TextUtils.equals(auditStatus, MineVideoCourseActivity.TYPE_PASS)) {
|
|
|
//已上架
|
|
|
- tv_operate_tip.setVisibility(View.VISIBLE);
|
|
|
- tv_operate_tip.setText("下架此课程");
|
|
|
- tv_operate_tip.setTextColor(getContext().getResources().getColor(com.cooleshow.base.R.color.color_008ae0));
|
|
|
- tv_operate_tip.setCompoundDrawablesWithIntrinsicBounds(null, null, getContext().getResources().getDrawable(com.cooleshow.base.R.drawable.icon_arrow_right_small_blue), null);
|
|
|
- view_divide_bottom.setVisibility(View.VISIBLE);
|
|
|
tv_course_status_tip.setText("已上架");
|
|
|
tv_course_status_tip.setTextColor(getContext().getResources().getColor(com.cooleshow.base.R.color.color_2dc7aa));
|
|
|
tv_course_status_tip.setBackgroundResource(R.drawable.shape_d5fff7_9dp_right);
|
|
|
} else if (TextUtils.equals(auditStatus, MineVideoCourseActivity.TYPE_DOING)) {
|
|
|
//审核中
|
|
|
- tv_operate_tip.setVisibility(View.GONE);
|
|
|
- view_divide_bottom.setVisibility(View.INVISIBLE);
|
|
|
tv_course_status_tip.setText("审核中");
|
|
|
tv_course_status_tip.setTextColor(getContext().getResources().getColor(com.cooleshow.base.R.color.color_008ae0));
|
|
|
tv_course_status_tip.setBackgroundResource(R.drawable.shape_def2ff_9dp_right);
|
|
|
} else if (TextUtils.equals(auditStatus, MineVideoCourseActivity.TYPE_UNPASS)) {
|
|
|
//审核失败
|
|
|
- tv_operate_tip.setVisibility(View.VISIBLE);
|
|
|
- tv_operate_tip.setText("重新编辑");
|
|
|
- tv_operate_tip.setTextColor(getContext().getResources().getColor(com.cooleshow.base.R.color.color_ff4e19));
|
|
|
- tv_operate_tip.setCompoundDrawablesWithIntrinsicBounds(null, null, getContext().getResources().getDrawable(com.cooleshow.base.R.drawable.icon_arrow_right_small_orange), null);
|
|
|
- view_divide_bottom.setVisibility(View.VISIBLE);
|
|
|
tv_course_status_tip.setText("失败");
|
|
|
tv_course_status_tip.setTextColor(getContext().getResources().getColor(com.cooleshow.base.R.color.color_ff1919));
|
|
|
tv_course_status_tip.setBackgroundResource(R.drawable.shape_ffe7e7_9dp_right);
|
|
|
} else if (TextUtils.equals(auditStatus, MineVideoCourseActivity.TYPE_OUT_SALE)) {
|
|
|
//已下架
|
|
|
- tv_operate_tip.setVisibility(View.VISIBLE);
|
|
|
- tv_operate_tip.setText("重新上架");
|
|
|
- tv_operate_tip.setTextColor(getContext().getResources().getColor(com.cooleshow.base.R.color.color_ff1919));
|
|
|
- tv_operate_tip.setCompoundDrawablesWithIntrinsicBounds(null, null, getContext().getResources().getDrawable(com.cooleshow.base.R.drawable.icon_arrow_right_small_red), null);
|
|
|
- view_divide_bottom.setVisibility(View.VISIBLE);
|
|
|
tv_course_status_tip.setText("已下架");
|
|
|
tv_course_status_tip.setTextColor(getContext().getResources().getColor(com.cooleshow.base.R.color.color_666666));
|
|
|
tv_course_status_tip.setBackgroundResource(R.drawable.shape_f0f0f0_9dp_right);
|