Ver Fonte

没有vip,结束全屏动画

skyblued há 2 anos atrás
pai
commit
514c0d2b49
1 ficheiros alterados com 12 adições e 1 exclusões
  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)