wolyshaw 3 years ago
parent
commit
69d82a0b89
1 changed files with 6 additions and 4 deletions
  1. 6 4
      src/teacher/music/upload/index.tsx

+ 6 - 4
src/teacher/music/upload/index.tsx

@@ -185,7 +185,7 @@ export default defineComponent({
 
         this.xmlFileUrl = res.data.xmlFileUrl
 
-        this.audioType = res.data.mp3Type
+        // this.audioType = res.data.mp3Type
 
         if (this.audioType === 'MP3') {
           this.hasBeat = res.data.hasBeat || 0
@@ -747,9 +747,11 @@ export default defineComponent({
               <p>
                 每人:
                 <span>
-                  {((parseFloat(this.musicPrice || '0') || 0) *
-                    (100 - this.music_sheet_service_fee)) /
-                    100}
+                  {(
+                    ((parseFloat(this.musicPrice || '0') || 0) *
+                      (100 - this.music_sheet_service_fee)) /
+                    100
+                  ).toFixed(2)}
                 </span>
                 元/人
               </p>