Browse Source

没有vip,结束全屏动画

skyblued 2 years ago
parent
commit
514c0d2b49
1 changed files with 12 additions and 1 deletions
  1. 12 1
      src/views/coursewarePlay/index.tsx

+ 12 - 1
src/views/coursewarePlay/index.tsx

@@ -304,7 +304,18 @@ export default defineComponent({
     const swiperDom = ref()
     onMounted(() => {
       const hasVip = handleCheckVip()
-      if (!hasVip) return
+      if (!hasVip) {
+        nextTick(() => {
+          postMessage({
+            api: 'courseLoading',
+            content: {
+              show: false,
+              type: 'fullscreen'
+            }
+          })
+        })
+        return
+      }
       getDetail()
       getCourseSchedule()
       window.addEventListener('message', iframeHandle)