Parcourir la source

Update track-song.tsx

lex il y a 2 ans
Parent
commit
490441ca00
1 fichiers modifiés avec 6 ajouts et 2 suppressions
  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(),
       behaviorId: getRandomKey(),
       musicList: [] as any,
       musicList: [] as any,
       rankingScore: 0,
       rankingScore: 0,
-      hiddenProperty: null as any
+      hiddenProperty: null as any,
+      evaluationDifficulty: ''
     }
     }
   },
   },
   async mounted() {
   async mounted() {
@@ -94,6 +95,7 @@ export default defineComponent({
         )
         )
         this.musicList = musicList
         this.musicList = musicList
         this.rankingScore = data.rankingScore || 0
         this.rankingScore = data.rankingScore || 0
+        this.evaluationDifficulty = data.evaluationDifficulty
       } catch {
       } catch {
         //
         //
       }
       }
@@ -110,12 +112,14 @@ export default defineComponent({
             setting: JSON.stringify({
             setting: JSON.stringify({
               mode: 'EVALUATING',
               mode: 'EVALUATING',
               resets: ['SPEED'],
               resets: ['SPEED'],
-              difficulty: item.evaluationDifficulty,
+              difficulty:
+                item.evaluationDifficulty || this.evaluationDifficulty,
               feeType: 'FREE',
               feeType: 'FREE',
               submitData: { evaluationId: item.evaluationId }
               submitData: { evaluationId: item.evaluationId }
             })
             })
           }
           }
         })
         })
+        console.log(url, 'url')
         postMessage({
         postMessage({
           api: 'openAccompanyWebView',
           api: 'openAccompanyWebView',
           content: {
           content: {