Sfoglia il codice sorgente

更新礼物和头像显示问题

warrior 2 settimane fa
parent
commit
28bcaa09ef

+ 12 - 0
projects/live-app/src/modules/tabs/my/my.component.scss

@@ -240,6 +240,7 @@
                 width: 100%;
                 height: 100%;
                 border-radius: 50%;
+                object-fit: cover;
               }
             }
           }
@@ -290,10 +291,21 @@
       .row-left {
         display: flex;
         align-items: center;
+        .row-index{
+          width: 18px;
+        }
+        .row-name{
+          overflow: hidden;
+          white-space: nowrap;
+          text-overflow: ellipsis;
+          max-width: 130px;
+        }
         .row-avatar {
           width: 7.6923vw;
           height: 7.6923vw;
           margin: 0 1.0256vw;
+          border-radius: 50%;
+          object-fit: cover;
         }
       }
       .row-right {

+ 1 - 1
projects/live-app/src/modules/user/profile/profile.component.scss

@@ -379,7 +379,7 @@
         img {
           // width: 10.2564vw;
           height: 17.9487vw;
-          object-fit: cover;
+          object-fit: contain;
           margin-top: 2.5641vw;
         }
       }

+ 24 - 12
projects/live-app/src/modules/user/ranking/ranking.component.scss

@@ -1,4 +1,4 @@
-.content{
+.content {
   .order {
     width: 92.3077vw;
     margin: 2.5641vw auto;
@@ -41,7 +41,7 @@
             color: white;
           }
           .num {
-            color: #fefcc9
+            color: #fefcc9;
           }
           .user-block {
             font-size: 2.5641vw;
@@ -61,6 +61,7 @@
               .avatar {
                 width: 100%;
                 height: 100%;
+                object-fit: cover;
                 border-radius: 50%;
               }
             }
@@ -72,24 +73,24 @@
             color: #fd4800;
           }
         }
-        .user-detail2{
+        .user-detail2 {
           background: #f9bc66;
           width: 100%;
           height: 10.2564vw;
           border-radius: 1.0256vw 0 0 1.0256vw;
         }
-        .user-detail1{
+        .user-detail1 {
           background: #ffc36f;
           width: 100%;
           height: 12.8205vw;
-          border-radius: 1.0256vw 1.0256vw 0 0 ;
+          border-radius: 1.0256vw 1.0256vw 0 0;
           box-shadow: rgba(17, 12, 46, 0.15) 0vw -3.8462vw 25.641vw 0vw;
         }
-        .user-detail3{
+        .user-detail3 {
           background: #fdd7a2;
           width: 100%;
           height: 7.6923vw;
-          border-radius: 0 1.0256vw 1.0256vw 0 ;
+          border-radius: 0 1.0256vw 1.0256vw 0;
         }
       }
     }
@@ -112,10 +113,21 @@
       .row-left {
         display: flex;
         align-items: center;
+        .row-index {
+          width: 18px;
+        }
+        .row-name {
+          overflow: hidden;
+          white-space: nowrap;
+          text-overflow: ellipsis;
+          max-width: 130px;
+        }
         .row-avatar {
           width: 7.6923vw;
           height: 7.6923vw;
           margin: 0 1.0256vw;
+          object-fit: cover;
+          border-radius: 50%;
         }
       }
       .row-right {
@@ -134,18 +146,18 @@
         }
       }
     }
-    .title{
+    .title {
       display: flex;
       justify-content: space-between;
       color: #7d7d7d;
       font-size: 14px;
     }
-    .btns{
+    .btns {
       display: flex;
-      .btn{
+      .btn {
         margin-left: 4px;
       }
-      .btn:hover{
+      .btn:hover {
         color: #ec760c;
       }
     }
@@ -153,4 +165,4 @@
   .user-name {
     text-align: center;
   }
-}
+}

+ 1 - 1
projects/live-app/src/services/aichart.service.ts

@@ -226,7 +226,7 @@ export class AiChatService {
     if (limit) {
       where = `OFFSET ${skip ?? 0} LIMIT ${limit}`;
     }
-    let sql = `SELECT name,image,"gift",COUNT("gift")
+    let sql = `SELECT name,image,"gift",SUM("index") AS "count"
       FROM "LoveRender"
       WHERE "toUser" = '${uid}'
       AND "isDeleted" IS NOT TRUE