christftj 2 anni fa
parent
commit
196096ef54

BIN
QJKK/public/favicon.ico


+ 1 - 0
QJKK/public/static/template/skin/vtourskin.xml

@@ -1372,6 +1372,7 @@
         set(plugin[get(tooltipname)].borderalpha,0.2);
         set(plugin[get(tooltipname)].glow,0); 
         set(plugin[get(tooltipname)].glowcolor,0xFFFFFF);
+        set(plugin[get(tooltipname)].css,'font-weight:700;color:#930909');
         <!-- set(plugin[get(tooltipname)].css,'text-align:center; color:#FFFFFF; font-family:STXihei; font-size:14px;');
         if(device.mobile,
         set(plugin[get(tooltipname)].css,'text-align:center; color:#FFFFFF;

+ 1 - 1
SWKK/src/components/Rbottom.vue

@@ -267,7 +267,7 @@ export default {
       this.isFullscreen = !this.isFullscreen;
     },
     rightClisk(type) {
-      if (type === 1)  window.location.replace('/YHT/index.html')
+      if (type === 1) window.location.replace("/YHT/index.html");
       else if (type === 2) {
         let dom = document.querySelector("#bacMusic");
         window.bacMusic = dom.paused;

+ 31 - 1
SWKK/src/views/Home.vue

@@ -89,6 +89,7 @@ export default {
       }
     },
 
+
     onceClickMusic() {
       this.$refs.RbottomRef.opMusic(true);
       setTimeout(() => {
@@ -97,9 +98,9 @@ export default {
     },
 
     async stopPlay(val) {
+      if (!val && this.playing) this.$refs.RbottomRef.leftCut(-1);
       let player = await this.kankan.TourManager.player;
       player.pause();
-      if (!val) this.$refs.RbottomRef.leftCut(-1);
 
       this.progress = 0;
     },
@@ -196,6 +197,35 @@ export default {
       });
     });
 
+    // 有关球幕视频控制背景音乐
+    kankan.Scene.on("panorama.videorenderer.startvideo", () => {
+      // 点击热点的时候当前背景音乐的播放状态
+      let dom = document.querySelector("#bacMusic");
+      window.bacMusic = !dom.paused;
+      setTimeout(() => {
+        this.$refs.RbottomRef.opMusic(false);
+      }, 200);
+      // 暂停背景音乐
+    });
+    kankan.Scene.on("panorama.videorenderer.resumerender", () => {
+
+      // 点击热点的时候当前背景音乐的播放状态
+      let dom = document.querySelector("#bacMusic");
+      window.bacMusic = !dom.paused;
+      setTimeout(() => {
+        this.$refs.RbottomRef.opMusic(false);
+      }, 200);
+      // 暂停背景音乐
+    });
+    kankan.Scene.on("panorama.videorenderer.suspendrender", () => {
+      if (window.bacMusic) {
+        setTimeout(() => {
+          this.$refs.RbottomRef.opMusic(true);
+        }, 100);
+      }
+      // 恢复背景音乐
+    });
+
     // 导览数据
     kankan.TourManager.on("loaded", (tours) => {
       this.$refs.RbottomRef.baseSw(tours);