Explorar o código

Merge branch 'paino_change' into dev

lex %!s(int64=2) %!d(string=hai) anos
pai
achega
8dbeb0697b
Modificáronse 1 ficheiros con 3 adicións e 2 borrados
  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}>