lsc 2 年之前
父節點
當前提交
e31669c551
共有 2 個文件被更改,包括 513 次插入338 次删除
  1. 507 333
      src/components/a.json
  2. 6 5
      src/components/components/audio.vue

File diff suppressed because it is too large
+ 507 - 333
src/components/a.json


+ 6 - 5
src/components/components/audio.vue

@@ -1,10 +1,11 @@
 <template>
   <div>
     <div>
-      <el-button type="primary" @click="startRecorder()">{{
-      !isRecord ? "开始录音" : "结束录音"
-      }}</el-button>
-      <el-button type="primary" @click="playRecorder()">{{
+      <el-button type="primary" :style="{ 'background': isRecord ? '#ee5255' : '', 'borderColor': isRecord ? '#ee5255' : '' }"
+        @click="startRecorder()">{{
+        !isRecord ? "开始录音" : "结束录音"
+        }}</el-button>
+      <el-button type="primary" :style="{ 'background': isPlayerRecord ? '#ee5255' : '', 'borderColor': isPlayerRecord ? '#ee5255' : '' }" @click="playRecorder()">{{
       !isPlayerRecord ? "录音播放" : "停止播放"
       }}</el-button>
       <el-button type="primary" @click="getMp3Data()">上传录音</el-button>
@@ -206,7 +207,7 @@ export default {
       }
     },
     addPz(audio) {
-      this.$emit("addPz", '2',audio);
+      this.$emit("addPz", '2', audio);
     },
   },
   mounted() { },

Some files were not shown because too many files changed in this diff