USER-20230908AJ\Administrator 2 éve
szülő
commit
fac986f130
1 módosított fájl, 9 hozzáadás és 0 törlés
  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();