Kaynağa Gözat

录音+输入

natasha 1 yıl önce
ebeveyn
işleme
7b649b95d3

+ 7 - 0
src/icons/svg/components/upload.svg

@@ -0,0 +1,7 @@
+<svg width="56" height="56" viewBox="0 0 56 56" fill="none" xmlns="http://www.w3.org/2000/svg">
+  <path
+    d="M11.6673 4.66699H35.0007L46.6673 16.3337V49.0003C46.6673 50.289 45.6227 51.3337 44.334 51.3337H11.6673C10.3787 51.3337 9.33398 50.289 9.33398 49.0003V7.00033C9.33398 5.71166 10.3787 4.66699 11.6673 4.66699Z"
+    stroke="black" stroke-width="4" stroke-linejoin="round" />
+  <path d="M18.6758 23.333L22.1758 39.6663L28.0091 27.9997L33.8424 39.6663L37.3424 23.333" stroke="black"
+    stroke-width="4" stroke-linecap="round" stroke-linejoin="round" />
+</svg>

+ 7 - 0
src/icons/svg/components/uploadPreview.svg

@@ -0,0 +1,7 @@
+<svg width="56" height="56" viewBox="0 0 56 56" fill="none" xmlns="http://www.w3.org/2000/svg">
+  <path
+    d="M11.6673 4.66699H35.0007L46.6673 16.3337V49.0003C46.6673 50.289 45.6227 51.3337 44.334 51.3337H11.6673C10.3787 51.3337 9.33398 50.289 9.33398 49.0003V7.00033C9.33398 5.71166 10.3787 4.66699 11.6673 4.66699Z"
+    stroke="black" stroke-width="4" stroke-linejoin="round" />
+  <path d="M21 21.0098H35" stroke="black" stroke-width="4" stroke-linecap="round" />
+  <path d="M28.0098 21.0098V39.6667" stroke="black" stroke-width="4" stroke-linecap="round" />
+</svg>

+ 2 - 2
src/views/book/courseware/create/components/question/record_input/RecordInput.vue

@@ -31,7 +31,7 @@
 <script>
 import ModuleMixin from '../../common/ModuleMixin';
 
-import { getFillData, sizeList, switchOption } from '@/views/book/courseware/data/recordInput';
+import { getRecordInputData, sizeList, switchOption } from '@/views/book/courseware/data/recordInput';
 
 export default {
   name: 'RecordInputPage',
@@ -39,7 +39,7 @@ export default {
   mixins: [ModuleMixin],
   data() {
     return {
-      data: getFillData(),
+      data: getRecordInputData(),
       sizeList,
       switchOption,
     };

+ 2 - 2
src/views/book/courseware/create/components/question/record_input/RecordInputSetting.vue

@@ -10,7 +10,7 @@
 import SettingMixin from '@/views/book/courseware/create/components/common/SettingMixin';
 
 import {
-  getFillProperty,
+  getRecordInputProperty,
   arrangeTypeList,
   audioPositionList,
   audioGenerationMethodList,
@@ -23,7 +23,7 @@ export default {
   mixins: [SettingMixin],
   data() {
     return {
-      property: getFillProperty(),
+      property: getRecordInputProperty(),
       arrangeTypeList,
       audioPositionList,
       audioGenerationMethodList,

+ 3 - 3
src/views/book/courseware/data/recordInput.js

@@ -16,7 +16,7 @@ export const sizeList = [
   { value: 'mini', label: '迷你' },
 ]
 
-export function getFillProperty() {
+export function getRecordInputProperty() {
   return {
     serial_number: 1,
     sn_type: serialNumberTypeList[0].value,
@@ -25,11 +25,11 @@ export function getFillProperty() {
   };
 }
 
-export function getFillData() {
+export function getRecordInputData() {
   return {
     type: 'record_input',
     title: '录音组件',
-    property: getFillProperty(),
+    property: getRecordInputProperty(),
     size: 'promax',
     is_enable_score: switchOption[0].value,
     is_enable_input: switchOption[0].value,