|
@@ -1,5 +1,6 @@
|
|
|
package com.cooleshow.teacher.adapter;
|
|
|
|
|
|
+import android.text.TextUtils;
|
|
|
import android.view.View;
|
|
|
import android.widget.ImageView;
|
|
|
import android.widget.TextView;
|
|
@@ -49,7 +50,12 @@ public class MineVideoCourseAdapter extends BaseQuickAdapter<VideoCourseListBean
|
|
|
String price = "¥" + item.lessonPrice + "/" + item.lessonCount + "课时";
|
|
|
tv_price.setText(price);
|
|
|
TextView tv_buy_num = helper.getView(R.id.tv_buy_num);
|
|
|
- tv_buy_num.setText(item.countStudent + "人已购买");
|
|
|
+ if (TextUtils.equals(item.auditStatus, "PASS")) {
|
|
|
+ tv_buy_num.setText(item.countStudent + "人已购买");
|
|
|
+ tv_buy_num.setVisibility(View.VISIBLE);
|
|
|
+ } else {
|
|
|
+ tv_buy_num.setVisibility(View.GONE);
|
|
|
+ }
|
|
|
|
|
|
}
|
|
|
|