Browse Source

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

skyblued 2 năm trước cách đây
mục cha
commit
6c75a4c550
1 tập tin đã thay đổi với 3 bổ sung0 xóa
  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: '当前课程没有缓存,是否缓存?'