瀏覽代碼

Update track-song.tsx

lex 2 年之前
父節點
當前提交
490441ca00
共有 1 個文件被更改,包括 6 次插入2 次删除
  1. 6 2
      src/student/share-active/track-review-activity/track-song.tsx

+ 6 - 2
src/student/share-active/track-review-activity/track-song.tsx

@@ -32,7 +32,8 @@ export default defineComponent({
       behaviorId: getRandomKey(),
       musicList: [] as any,
       rankingScore: 0,
-      hiddenProperty: null as any
+      hiddenProperty: null as any,
+      evaluationDifficulty: ''
     }
   },
   async mounted() {
@@ -94,6 +95,7 @@ export default defineComponent({
         )
         this.musicList = musicList
         this.rankingScore = data.rankingScore || 0
+        this.evaluationDifficulty = data.evaluationDifficulty
       } catch {
         //
       }
@@ -110,12 +112,14 @@ export default defineComponent({
             setting: JSON.stringify({
               mode: 'EVALUATING',
               resets: ['SPEED'],
-              difficulty: item.evaluationDifficulty,
+              difficulty:
+                item.evaluationDifficulty || this.evaluationDifficulty,
               feeType: 'FREE',
               submitData: { evaluationId: item.evaluationId }
             })
           }
         })
+        console.log(url, 'url')
         postMessage({
           api: 'openAccompanyWebView',
           content: {