USER-20230908AJ\Administrator před 2 roky
rodič
revize
fac986f130
1 změnil soubory, kde provedl 9 přidání a 0 odebrání
  1. 9 0
      pages/index/index.vue

+ 9 - 0
pages/index/index.vue

@@ -157,6 +157,15 @@ import wxJs from "jweixin-module"
         })
 
       },
+      play(){
+       if(!this.isPlay && this.audioServe){
+         this.audioServe.play();
+         this.audioServe.onPlay(() => {
+           this.isPlay = true;
+           this.isAutoPlay = true
+         })
+       }
+      },
       musicPause() {
         if (this.audioServe) {
           this.audioServe.pause();