wolyshaw %!s(int64=2) %!d(string=hai) anos
pai
achega
f93b00fd24

+ 5 - 1
src/student/music/list/item.module.less

@@ -2,6 +2,7 @@
   background-color: var(--music-list-item-background-color);
   margin: 10px 14px;
   padding: 10px;
+  padding-bottom: 0;
   border-radius: 9px;
   .header {
     display: flex;
@@ -52,7 +53,7 @@
   }
   .footer {
     display: flex;
-    padding-top: 8px;
+    // padding-top: 8px;
     align-items: center;
     justify-content: space-between;
     .user {
@@ -65,6 +66,9 @@
         height: 20px;
         margin-right: 8px;
       }
+      > p {
+        margin-right: 8px;
+      }
     }
     .favorite {
       font-size: 16px;

+ 1 - 1
src/student/music/personal/album.tsx

@@ -50,7 +50,7 @@ export default defineComponent({
           ? data.value.rows.map(item => <Item data={item} />)
           : !loading.value && (
               <ColResult
-                tips="暂无收藏曲目"
+                tips="暂无收藏专辑"
                 classImgSize="SMALL"
                 btnStatus={false}
               />

+ 1 - 1
src/student/music/personal/collection.tsx

@@ -76,7 +76,7 @@ export default defineComponent({
             ))
           : !loading.value && (
               <ColResult
-                tips="暂无收藏曲"
+                tips="暂无收藏曲"
                 classImgSize="SMALL"
                 btnStatus={false}
               />

+ 1 - 1
src/student/music/personal/personal.tsx

@@ -71,7 +71,7 @@ export default defineComponent({
             ))
           : !loading.value && (
               <ColResult
-                tips="暂无收藏曲目"
+                tips="暂无单曲"
                 classImgSize="SMALL"
                 btnStatus={false}
               />

+ 10 - 6
src/student/music/personal/practice.tsx

@@ -10,11 +10,12 @@ export default defineComponent({
   emits: ['favorite'],
   setup(props, { expose, emit }) {
     const { isLoading, state, execute } = useAsyncState(
-      request.get('/api-student/music/sheet/practice', {
-        params: {
-          rows: 3
-        }
-      }),
+      (args): Promise<any> =>
+        request.get('/api-student/music/sheet/practice', {
+          params: {
+            rows: args?.rows || 3
+          }
+        }),
       null
     )
 
@@ -29,9 +30,12 @@ export default defineComponent({
           {list.length > 0 && <Cell title="最近练习" />}
           {list.map(item => (
             <Item
+              key={item.id}
               data={item}
               onClick={() => musicBuy(item)}
-              onFavorite={() => emit('favorite')}
+              onFavorite={() => {
+                emit('favorite')
+              }}
             />
           ))}
         </>