Explorar o código

没有vip,结束全屏动画

skyblued %!s(int64=2) %!d(string=hai) anos
pai
achega
514c0d2b49
Modificáronse 1 ficheiros con 12 adicións e 1 borrados
  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()
     const swiperDom = ref()
     onMounted(() => {
     onMounted(() => {
       const hasVip = handleCheckVip()
       const hasVip = handleCheckVip()
-      if (!hasVip) return
+      if (!hasVip) {
+        nextTick(() => {
+          postMessage({
+            api: 'courseLoading',
+            content: {
+              show: false,
+              type: 'fullscreen'
+            }
+          })
+        })
+        return
+      }
       getDetail()
       getDetail()
       getCourseSchedule()
       getCourseSchedule()
       window.addEventListener('message', iframeHandle)
       window.addEventListener('message', iframeHandle)