소스 검색

no message

USER-20230908AJ\Administrator 2 년 전
부모
커밋
fac986f130
1개의 변경된 파일과 9개의 추가작업 그리고 0개의 파일을 삭제
  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();