Browse Source

视频看护10分钟

zhengkaixin 4 năm trước cách đây
mục cha
commit
d2fed41bf4

+ 6 - 3
src/projects/pension/views/Master/Hospital/Form.vue

@@ -133,7 +133,7 @@ export default {
                 hospitalName: "", //医院
                 hospitalTime: "",
                 id: "",
-                personId: "",
+                popedomId: "",
                 pathogeny: "", //病因
                 result: "", //就医结果
                 resultImg: "", //结果图片
@@ -142,7 +142,9 @@ export default {
             },
         };
     },
-    created() {},
+    created() {
+
+    },
     methods: {
         checkForm() {
             if (!this.detail.hospitalName) {
@@ -161,7 +163,8 @@ export default {
             if (!this.checkForm()) {
                 return;
             }
-            this.detail.personId = this.person_data.id;
+
+            this.detail.popedomId = this.$route.query.popedomId;
             this.detail.resultImg = this.resultImg.join(",");
             this.detail.drugsImg = this.drugsImg.join(",");
             this.detail.costImg = this.costImg.join(",");

+ 1 - 0
src/projects/pension/views/Master/Hospital/Home.vue

@@ -112,6 +112,7 @@ export default {
                 name: "MasterHospitalForm",
                 query: {
                     id: id,
+                    popedomId: this.info.popedomId
                 },
             });
         },

+ 4 - 10
src/projects/pension/views/Master/Live/Room.vue

@@ -163,8 +163,6 @@ export default {
                 this.setTimeoutId = setTimeout(() => {
                     console.log("延迟暂停");
 
-                    this.player.pause() //暂停
-
                     if (document.exitFullscreen) {
                         document.exitFullscreen();
                     } else if (document.mozCancelFullScreen) {
@@ -184,13 +182,9 @@ export default {
                     } else {
                         this.getBannerInfo();
                     }
-
-                    setTimeout(() => {
-                        if (this.isLoading2) {
-                            this.hls.stopLoad();
-                            this.isLoading3 = true; //需要刷新;
-                        }
-                    }, 1000 * 60 * 1)
+                    this.player.pause() //暂停
+                    this.isLoading3 = true; //需要刷新;
+                    this.hls.stopLoad();
 
                 }, 1000 * 60 * 10)
             }
@@ -212,7 +206,6 @@ export default {
                 //this.player.play();
                 console.log("ios原生支持播放m3u8!");
             } else {
-                this.player.addEventListener('play', this.handlePlay);
 
                 var hls = new Hls();
                 hls.loadSource(this.liveAddressUrl);
@@ -223,6 +216,7 @@ export default {
                 });
                 this.hls = hls;
             }
+            this.player.addEventListener('play', this.handlePlay);
 
         },
         cameraDetail() {