소스 검색

【需求变动】学生端:增加会员限制

skyblued 2 년 전
부모
커밋
6c75a4c550
1개의 변경된 파일3개의 추가작업 그리고 0개의 파일을 삭제
  1. 3 0
      src/views/courseList/index.tsx

+ 3 - 0
src/views/courseList/index.tsx

@@ -14,6 +14,7 @@ import iconLook from './image/look.svg'
 import iconCourse from './image/icon-course.png'
 import { browser } from '@/helpers/utils'
 import OEmpty from '@/components/o-empty'
+import { handleCheckVip } from '../hook/useFee'
 export default defineComponent({
   name: 'lessonCourseware',
   setup() {
@@ -77,6 +78,8 @@ export default defineComponent({
 
       if (!item.hasCache) {
         if (browserInfo.isStudent || route.query.isdev) {
+          const hasVip = handleCheckVip()
+          if (!hasVip) return
           try {
             await showConfirmDialog({
               message: '当前课程没有缓存,是否缓存?'