张延森 3 年之前
父節點
當前提交
30254274d7
共有 3 個文件被更改,包括 16 次插入3 次删除
  1. 2
    0
      public/index.html
  2. 10
    0
      public/vconsole.min.js
  3. 4
    3
      src/components/BgMusic.vue

+ 2
- 0
public/index.html 查看文件

@@ -6,6 +6,8 @@
6 6
   <meta name="viewport" content="width=device-width,initial-scale=1.0">
7 7
   <title>干洗护理 诠释新生</title>
8 8
   <script src="https://res2.wx.qq.com/open/js/jweixin-1.6.0.js"></script>
9
+  <!-- <script src="./vconsole.min.js"></script>
10
+  <script>const vConsole = new VConsole();</script> -->
9 11
   <style>
10 12
     .page-loading-wrapper {
11 13
       position: absolute;

+ 10
- 0
public/vconsole.min.js
文件差異過大導致無法顯示
查看文件


+ 4
- 3
src/components/BgMusic.vue 查看文件

@@ -28,9 +28,10 @@ export default {
28 28
     handleIOSAudio() {
29 29
       const isiOS = !!navigator.userAgent.match(/\(i[^;]+;( U;)? CPU.+Mac OS X/)
30 30
       if (isiOS) {
31
-        document.addEventListener('WeixinJSBridgeReady', () => {
32
-          this.$refs.audioRef.load()
33
-        }, false)
31
+        // document.addEventListener('WeixinJSBridgeReady', () => {
32
+        //   this.$refs.audioRef.load()
33
+        // }, false)
34
+        this.show = true
34 35
       }
35 36
     },
36 37
     handleClick() {