浏览代码

🐞 fix:
专辑详情
上传缴费类型改为数字

wolyshaw 3 年之前
父节点
当前提交
1cbec63c38

+ 1 - 1
src/student/music/album-detail/index.module.less

@@ -1,4 +1,4 @@
-.detail {
+.base {
   background: url(./header-bg.png) no-repeat top center;
   background-attachment: fixed;
 }

+ 1 - 1
src/student/music/album-detail/index.tsx

@@ -64,7 +64,7 @@ export default defineComponent({
       console.log(albumFavoriteCount.value)
       return (
         <div class={styles.detail}>
-          <Sticky class={styles.header}>
+          <Sticky class={styles.base}>
             <ColHeader
               class={styles.header}
               background="transparent"

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

@@ -44,7 +44,7 @@ export default defineComponent({
       musicSheetName: '',
       composer: '',
       speed: '',
-      chargeType: '0',
+      chargeType: 0,
       showFingering: 1,
       canEvaluate: 1,
       musicPrice: '',
@@ -67,7 +67,7 @@ export default defineComponent({
       this.mergeXmlData(this.formated)
     },
     chargeType() {
-      if (this.chargeType === '0') {
+      if (this.chargeType === 0) {
         this.musicPrice = ''
       }
     }
@@ -130,7 +130,7 @@ export default defineComponent({
             midiUrl: this.midiUrl,
             xmlFileUrl: this.xmlFileUrl,
             canEvaluate: this.canEvaluate,
-            chargeType: this.chargeType === '0' ? 'FREE' : 'CHARGE',
+            chargeType: this.chargeType === 0 ? 'FREE' : 'CHARGE',
             composer: this.composer,
             musicPrice: this.musicPrice
           }
@@ -457,7 +457,7 @@ export default defineComponent({
                 onUpdate:modelValue={val => (this.chargeType = val)}
               >
                 {Object.keys(teacherChargeType).map((item: string) => {
-                  const isActive = item === this.chargeType
+                  const isActive = item === String(this.chargeType)
                   const type = isActive ? 'primary' : 'default'
                   return (
                     <Radio class={styles.radio} name={item}>
@@ -469,7 +469,7 @@ export default defineComponent({
                 })}
               </RadioGroup>
             </ColField>
-            {this.chargeType === '2' && (
+            {this.chargeType === 2 && (
               <ColField required title="收费价格">
                 <Field
                   clearable
@@ -483,7 +483,7 @@ export default defineComponent({
               </ColField>
             )}
           </ColFieldGroup>
-          {this.chargeType === '2' && (
+          {this.chargeType === 2 && (
             <div class={styles.rule}>
               <p>扣除手续费后该曲目预计收入为:</p>
               <p>