Browse Source

no message

USER-20230908AJ\Administrator 2 years ago
parent
commit
fac986f130
1 changed files with 9 additions and 0 deletions
  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();