liushengqiang 2 years ago
parent
commit
8f65ddbe71

+ 1 - 1
src/views/courseList/index.tsx

@@ -106,7 +106,7 @@ export default defineComponent({
       postMessage({
         api: 'openWebView',
         content: {
-          url: `${location.origin}${location.pathname}/#/coursewarePlay?id=${item.lessonCoursewareDetailId}&source=my-course`,
+          url: `${location.origin}${location.pathname}#/coursewarePlay?id=${item.lessonCoursewareDetailId}&source=my-course`,
           orientation: 0,
           isHideTitle: true,
           statusBarTextColor: false,

+ 3 - 0
src/views/coursewarePlay/component/musicScore.tsx

@@ -26,6 +26,7 @@ export default defineComponent({
     const pageVisibility = usePageVisibility()
     /** 页面显示和隐藏 */
     watch(pageVisibility, (value) => {
+      console.log("🚀 ~ value:", value)
       if (value == 'hidden') {
         isLoading.value = false
       }
@@ -80,6 +81,8 @@ export default defineComponent({
           statusBarTextColor: false,
           isOpenLight: true
         }
+      }, () => {
+        isLoading.value = false
       })
     }
 

+ 0 - 1
src/views/coursewarePlay/component/video-play.tsx

@@ -96,7 +96,6 @@ export default defineComponent({
 
     onMounted(() => {
       videoItem.value = new Plyr(videoRef.value, {
-        muted: true,
         autoplay: true,
         controls: controls,
         autopause: true, // 一次只允许