lex 2 years ago
parent
commit
806a0bb902
1 changed files with 3 additions and 2 deletions
  1. 3 2
      src/views/video-class/video-item.tsx

+ 3 - 2
src/views/video-class/video-item.tsx

@@ -59,8 +59,9 @@ export default defineComponent({
             </span>
             <span class={styles.viUserNum}>
               {item?.countStudent}人已
-              {item?.lessonPrice <= 0 && item.auditVersion !== 0 && <>购买</>}
-              {item?.lessonPrice <= 0 && item.auditVersion === 0 && <>领取</>}
+              {item?.lessonPrice <= 0 && item.auditVersion === 0
+                ? '领取'
+                : '购买'}
             </span>
           </div>
           <div class={styles.viPrice}>