Browse Source

主播端首页

warrior 2 months ago
parent
commit
95f3e6ba67

+ 2 - 2
projects/live-app/src/modules/live/link-page/link-page.component.scss

@@ -69,10 +69,10 @@
     left: 0;
     width: 100%;
     padding: 2.5641vw;
-    .swiper-wrapper {
+    // .swiper-wrapper {
       // height: 71.7949vw;
       // justify-content: end;
-    }
+    // }
     .row {
       display: flex;
       justify-content: space-between;

+ 3 - 2
projects/live-app/src/modules/user/profile/profile.component.html

@@ -8,7 +8,7 @@
     <div class="user-dateil">
       <div class="pendant">
         <div class="top">
-          <div
+          <!-- <div
             class="pendant"
             [style.background-image]="
               'url(https://file-cloud.fmode.cn/Qje9D4bqol/20241109/vv1tvb032259054.png)'
@@ -19,7 +19,8 @@
               [src]="profile?.get('user')?.get('avatar')"
               alt=""
             />
-          </div>
+          </div> -->
+          <app-avatar [avatar]="profile?.get('user')?.get('avatar')" />
           <div class="top-right-block">
             <div class="top-left-title">{{ profile?.get("name") }}</div>
             @if (user?.get('sex') == '男') {

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

@@ -35,24 +35,25 @@
       display: flex;
       justify-content: space-between;
       .pendant {
+        margin-top: -9.7436vw;
         .top {
           display: flex;
           align-items: self-end;
-          .pendant {
-            margin-top: -9.7436vw;
-            width: 20.5128vw;
-            height: 20.5128vw;
-            display: flex;
-            justify-content: center;
-            align-items: center;
-            background-size: 100% 100%;
-            .avatar {
-              width: 15.3846vw;
-              height: 15.3846vw;
-              z-index: 1;
-              border-radius: 50%;
-            }
-          }
+          // .pendant {
+          //   margin-top: -9.7436vw;
+          //   width: 20.5128vw;
+          //   height: 20.5128vw;
+          //   display: flex;
+          //   justify-content: center;
+          //   align-items: center;
+          //   background-size: 100% 100%;
+          //   .avatar {
+          //     width: 15.3846vw;
+          //     height: 15.3846vw;
+          //     z-index: 1;
+          //     border-radius: 50%;
+          //   }
+          // }
           .top-right-block {
             display: flex;
             align-items: end;

+ 2 - 0
projects/live-app/src/modules/user/profile/profile.component.ts

@@ -19,6 +19,7 @@ import {
 } from '../../ionic-standalone.modules';
 import { AccountService } from '../../../services/account.service';
 import { CallModalComponent } from '../../../app/components/call-modal/call-modal.component';
+import { AvatarComponent } from '../../../app/components/avatar/avatar.component';
 
 @Component({
   selector: 'app-profile',
@@ -35,6 +36,7 @@ import { CallModalComponent } from '../../../app/components/call-modal/call-moda
     UploadComponent,
     GiftModalComponent,
     CallModalComponent,
+    AvatarComponent
   ],
   providers: [DatePipe],
 })

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

@@ -54,7 +54,7 @@ export class HttpService {
   }) {
     return new Promise((resolve, reject) => {
       this.http
-        .post('https://test.fmode.cn/api/apig/bankcard', param)
+        .post('https://server.fmode.cn/api/apig/bankcard', param)
         .subscribe((res: any) => {
           console.log(res);
           resolve(res);