Explorar o código

滚动条隐藏

skyblued %!s(int64=2) %!d(string=hai) anos
pai
achega
044fcc9703

+ 5 - 2
src/student/leaderboard/index.module.less

@@ -26,11 +26,14 @@
     }
   }
 }
+
 .tabContent {
   position: relative;
   padding: 12px;
   box-sizing: border-box;
   overflow-y: auto;
+  width: calc(100vw + 10px);
+  padding-right: 22px;
 }
 .tabContent.hasUser {
   padding-bottom: 80px;
@@ -80,7 +83,7 @@
   }
   .user {
     margin-left: 6px;
-    .userContent{
+    .userContent {
       display: flex;
       align-items: center;
       margin-bottom: 4px;
@@ -98,7 +101,7 @@
       margin-right: 4px;
       padding: 1px 2px;
     }
-    .times{
+    .times {
       font-size: 12px;
       color: #999;
     }

+ 3 - 2
src/student/leaderboard/index.tsx

@@ -35,7 +35,8 @@ export default defineComponent({
       tabIndex: 0,
       musicList: [] as IMusicItem[],
       isSignup: false, // 是否报名
-      isChallenge: false // 是否挑战过
+      isChallenge: false, // 是否挑战过
+      score: 0
     })
     const getMusicList = async () => {
       try {
@@ -102,7 +103,7 @@ export default defineComponent({
       step = step > -1 ? step + 1 : 0
       return {
         join: rank.join,
-        score: rank.score,
+        score: item?.score,
         isTop: item ? true : false,
         heardUrl: userdata.heardUrl,
         username: userdata.username,