2 İşlemeler 8ce2ba6399 ... 2f39141803

Yazar SHA1 Mesaj Tarih
  cainiao-hue 2f39141803 Merge branch 'master' of http://git.fmode.cn:3000/4u/workspace 3 ay önce
  cainiao-hue 5a23ec5eca update:star 3 ay önce

+ 1 - 1
soul-app/src/app/consult-picture/consult-picture.component.ts

@@ -16,7 +16,7 @@ import { DalleOptions, ImagineWork,FmodeChatCompletion } from 'fmode-ng';
 })
 export class ConsultPictureComponent  implements OnInit {
 
-  userPrompt:string = "生成一张图片,手工绘画,小时候动画里的猪猪侠"
+  userPrompt:string = "生成一张图片,在一间充满温馨的小房间里,不要阳光,里面放了各种各样的棉花娃娃"
   promptInput(ev:any){
     this.userPrompt = ev.detail.value;
   }

+ 1 - 1
soul-app/src/app/tab1/tab1.page.html

@@ -62,7 +62,7 @@
       <ion-list>
         <ion-item *ngFor="let chatevaluate of chatevaluateList">
           <ion-avatar slot="start">
-            <img [src]="chatevaluate.get('avatar') || '/assets/img/2.png'"/>
+            <img [src]="chatevaluate.get('avatar') || 'https://nova-cloud.obs.cn-south-1.myhuaweicloud.com/storage/aigc/imagine/HZFoDv7vkk-0.png'"/>
           </ion-avatar>
           <ion-label>
             <p style="font-size: 16px;">{{ chatevaluate.get('content') }}</p>

+ 4 - 2
soul-app/src/app/tab1/tab1.page.ts

@@ -79,7 +79,9 @@ export class Tab1Page {
   review: any = { rating: 5 };  // 示例数据
   // 创建一个方法,用于生成填充了 null 的数组
   createFilledArray(length: number): any[] {
-    return Array(length).fill(null);
+    // 确保返回的数组长度不超过5
+    const maxStars = 5;
+    return Array(Math.min(length, maxStars)).fill(null);
   }
   async evaluate() {
     // 处理点击评价的逻辑
@@ -92,7 +94,7 @@ export class Tab1Page {
         console.log("用户登录失败");
         return
       } 
-      else {
+      else { 
         console.log("当前用户ID:", currentUser.id);
       }    
     }

+ 1 - 3
soul-app/src/app/tab3/tab3.page.html

@@ -7,8 +7,6 @@
 </ion-header>
 
 <ion-content [fullscreen]="true">
-
-
   <!-- 用户登录状态 -->
   <ion-card>
     <!-- 未登录 -->
@@ -21,7 +19,7 @@
      @if(currentUser?.id){
       <ion-card-header>
         <div style="display: flex; align-items: center;">
-          <img src="{{currentUser?.get('avatar')}}" alt="头像" style="width: 50px; height: 50px; border-radius: 50%; margin-right: 10px;">
+          <img [src]="currentUser?.get('avatar') || 'https://nova-cloud.obs.cn-south-1.myhuaweicloud.com/storage/aigc/imagine/HZFoDv7vkk-0.png'" alt="头像" style="width: 50px; height: 50px; border-radius: 50%; margin-right: 10px;">
           <div>
             <ion-card-title>{{currentUser?.get("username")}} </ion-card-title>
             <ion-card-subtitle style="font-size: 16px;">性别: {{currentUser?.get("gender") || "-"}} 年龄: {{currentUser?.get("age") || "-"}}</ion-card-subtitle>

+ 1 - 1
soul-app/src/lib/user/modal-user-edit/modal-user-edit.component.html

@@ -12,7 +12,7 @@
       <ion-input [value]="userData['realname']" (ionChange)="userDataChange('realname',$event)" label="姓名" placeholder="请您输入真实姓名"></ion-input>
     </ion-item>
     <ion-item>
-      <ion-input [value]="userData['username']" (ionChange)="userDataChange('username',$event)" label="昵称" placeholder="请您输入用户网名"></ion-input>
+      <ion-input [value]="userData['username']" (ionChange)="userDataChange('username',$event)" label="用户名" placeholder="请您输入用户名"></ion-input>
     </ion-item>
     <ion-item>
       <ion-input type="number" [value]="userData['age']" (ionChange)="userDataChange('age',$event)" label="年龄" placeholder="请您输入年龄"></ion-input>

+ 1 - 1
soul-app/src/lib/user/modal-user-login/modal-user-login.component.html

@@ -15,7 +15,7 @@
   </ion-card-header>
   <ion-card-content>
     <ion-item>
-      <ion-input [value]="username" (ionChange)="usernameChange($event)" label="昵称" placeholder="昵称"></ion-input>
+      <ion-input [value]="username" (ionChange)="usernameChange($event)" label="用户名" placeholder="用户名"></ion-input>
     </ion-item>
     <ion-item>
       <ion-input [value]="password" (ionChange)="passwordChange($event)" label="密码" type="password" value="password"placeholder="密码"></ion-input>