|  | @@ -11,7 +11,9 @@ import com.chad.library.adapter.base.BaseQuickAdapter;
 | 
	
		
			
				|  |  |  import com.chad.library.adapter.base.module.BaseLoadMoreModule;
 | 
	
		
			
				|  |  |  import com.chad.library.adapter.base.module.LoadMoreModule;
 | 
	
		
			
				|  |  |  import com.chad.library.adapter.base.viewholder.BaseViewHolder;
 | 
	
		
			
				|  |  | +import com.cooleshow.base.constanst.VideoCoursePayType;
 | 
	
		
			
				|  |  |  import com.cooleshow.base.utils.GlideUtils;
 | 
	
		
			
				|  |  | +import com.cooleshow.base.utils.LOG;
 | 
	
		
			
				|  |  |  import com.cooleshow.base.utils.UiUtils;
 | 
	
		
			
				|  |  |  import com.cooleshow.teacher.R;
 | 
	
		
			
				|  |  |  import com.cooleshow.teacher.bean.MineLiveCourseListBean;
 | 
	
	
		
			
				|  | @@ -51,20 +53,33 @@ public class MineVideoCourseAdapter extends BaseQuickAdapter<VideoCourseListBean
 | 
	
		
			
				|  |  |          tv_title.setText(item.lessonName);
 | 
	
		
			
				|  |  |          //价格
 | 
	
		
			
				|  |  |          TextView tv_price = helper.getView(R.id.tv_price);
 | 
	
		
			
				|  |  | -        tv_price.setText(UiUtils.getVideoCoursePriceText2(item.lessonPrice));
 | 
	
		
			
				|  |  | +        boolean isVipType = TextUtils.equals(item.payType, VideoCoursePayType.VIP.getId());
 | 
	
		
			
				|  |  | +        if (isVipType) {
 | 
	
		
			
				|  |  | +            tv_price.setText("会员");
 | 
	
		
			
				|  |  | +            tv_price.setTextColor(getContext().getResources().getColor(com.cooleshow.base.R.color.color_c76e21));
 | 
	
		
			
				|  |  | +        } else {
 | 
	
		
			
				|  |  | +            //收费
 | 
	
		
			
				|  |  | +            tv_price.setText(UiUtils.getVideoCoursePriceText2(item.lessonPrice));
 | 
	
		
			
				|  |  | +            if (UiUtils.isFree(item.lessonPrice)) {
 | 
	
		
			
				|  |  | +                tv_price.setTextColor(getContext().getResources().getColor(com.cooleshow.base.R.color.color_20bea0));
 | 
	
		
			
				|  |  | +            } else {
 | 
	
		
			
				|  |  | +                tv_price.setTextColor(getContext().getResources().getColor(com.cooleshow.base.R.color.color_ff0000));
 | 
	
		
			
				|  |  | +            }
 | 
	
		
			
				|  |  | +        }
 | 
	
		
			
				|  |  |          TextView tv_price_unit = helper.getView(R.id.tv_price_unit);
 | 
	
		
			
				|  |  |          tv_price_unit.setText(String.format("/%d课时", item.lessonCount));
 | 
	
		
			
				|  |  | +
 | 
	
		
			
				|  |  |          //购买人数
 | 
	
		
			
				|  |  |          TextView tv_buy_num = helper.getView(R.id.tv_buy_num);
 | 
	
		
			
				|  |  |          tv_buy_num.setText(UiUtils.getBuyNumTip(item.lessonPrice, item.countStudent));
 | 
	
		
			
				|  |  | -        if (TextUtils.equals(auditStatus, MineVideoCourseActivity.TYPE_DOING)) {
 | 
	
		
			
				|  |  | +        if (isVipType || TextUtils.equals(auditStatus, MineVideoCourseActivity.TYPE_DOING)) {
 | 
	
		
			
				|  |  |              tv_buy_num.setVisibility(View.GONE);
 | 
	
		
			
				|  |  |          } else {
 | 
	
		
			
				|  |  |              tv_buy_num.setVisibility(View.VISIBLE);
 | 
	
		
			
				|  |  |          }
 | 
	
		
			
				|  |  |  
 | 
	
		
			
				|  |  |          TextView tv_course_status_tip = helper.getView(R.id.tv_course_status_tip);
 | 
	
		
			
				|  |  | -        if(TextUtils.isEmpty(auditStatus)){
 | 
	
		
			
				|  |  | +        if (TextUtils.isEmpty(auditStatus)) {
 | 
	
		
			
				|  |  |              tv_course_status_tip.setVisibility(View.GONE);
 | 
	
		
			
				|  |  |              return;
 | 
	
		
			
				|  |  |          }
 |