瀏覽代碼

修改课件『去练习』按钮进入去教练默认为免费

lex 10 月之前
父節點
當前提交
034b8e25d1
共有 2 個文件被更改,包括 10 次插入2 次删除
  1. 5 1
      src/tenant/music/coursewarePlay/component/video-play.tsx
  2. 5 1
      src/tenant/music/coursewarePlay/index.tsx

+ 5 - 1
src/tenant/music/coursewarePlay/component/video-play.tsx

@@ -330,7 +330,11 @@ export default defineComponent({
     const gotoAccomany = (e: any) => {
       // 去云练习完整版
       e.stopPropagation()
-      musicBuy({ id: item.value.materialMusicId })
+      musicBuy({ id: item.value.materialMusicId }, () => {}, {
+        setting: JSON.stringify({
+          feeType: 'FREE'
+        })
+      })
     }
 
     expose({

+ 5 - 1
src/tenant/music/coursewarePlay/index.tsx

@@ -981,7 +981,11 @@ export default defineComponent({
                           onClick={(e: any) => {
                             // 去云练习完整版
                             e.stopPropagation()
-                            musicBuy({ id: m.materialMusicId })
+                            musicBuy({ id: m.materialMusicId }, () => {}, {
+                              setting: JSON.stringify({
+                                feeType: 'FREE'
+                              })
+                            })
                           }}
                         ></div>
                       )}