Browse Source

Merge branch 'master' of http://git.fmode.cn:3000/csdn1233/s202226701049

csdn1233 3 months ago
parent
commit
b24844ffa0

+ 3 - 14
AIart-app/src/app/tab2/tab2.page.html

@@ -9,16 +9,7 @@
 </ion-header>
 
 <ion-content [fullscreen]="true">
-  <ion-toolbar>
-    <div style="display: flex;align-items: center;justify-content: center;gap: 25px;">
-      <div>学习</div>
-      <div>已购</div>
-      <div>计划</div>
-      <div>挑战赛</div>
-      <ion-icon name="calendar-outline" style="height: 25px;width: 25px;"></ion-icon>
-      <ion-icon name="options-outline" style="height: 25px;width: 25px;"></ion-icon>
-    </div>
-  </ion-toolbar>
+
 
   
   @for(item of mapListOnline;track item.id){
@@ -29,13 +20,11 @@
         </ion-card-title>
       </ion-card-header>
       <ion-card-content>
-        <comp-markmap [height]="'600px'" [markdown]="item.get('markmap')"></comp-markmap>
+        <comp-markmap [height]="'400px'" [markdown]="item.get('markmap')"></comp-markmap>
       </ion-card-content>
     </ion-card>
   }
-  @for(item of mapList;track item){
-    <comp-markmap [markdown]="item.content"></comp-markmap>
-  }
+  
 </ion-content>
 
 

+ 5 - 8
AIart-app/src/app/tab4/tab4.page.html

@@ -8,16 +8,13 @@
 
 <!-- {{title}} -->
 <ion-content [fullscreen]="true">
-  <h1>页面:配置路由和参数的聊天页</h1>
-  <ion-button (click)="goChat()">开始页面聊天</ion-button>
-  <h1>组件:直接弹出的聊天组件</h1>
-  <ion-button (click)="openChat()">开始新聊天</ion-button>
-  <ion-button (click)="restoreChat('yHEHqMQDNv')">恢复会话</ion-button>
+  
+  
   <h1>示例:兴趣分析的智能体示例(ChatPanel组件)</h1>
-  <ion-button (click)="openInquiry()">进入兴趣分析</ion-button>
-
+  <ion-button (click)="openInquiry()">进入兴趣学习分析</ion-button>
+  <ion-button (click)="restoreChat('EpfDIz4WeE')">返回上次分析</ion-button>
   @if(!planMessage?.complete){
-    <div>{{planMessage?.content}}</div>
+    <h3>思维导图将在您咨询兴趣学习后自动生成,感谢您的支持</h3>
   }
   @if(planMessage?.complete){
     <comp-markmap [markdown]="markmapResult"></comp-markmap>

+ 1 - 16
AIart-app/src/app/tab4/tab4.page.ts

@@ -98,19 +98,6 @@ export class tab4Page {
     openChatPanelModal(this.modalCtrl, options)
   }
 
-  /**
-   * 开始聊天
-   */
-  openChat() {
-    let options: ChatPanelOptions = {
-      roleId: "2DXJkRsjXK",
-      onChatSaved: (chat: FmodeChat) => {
-        // chat?.chatSession?.id 本次会话的 chatId
-        console.log("onChatSaved", chat, chat?.chatSession, chat?.chatSession?.id)
-      },
-    }
-    openChatPanelModal(this.modalCtrl, options)
-  }
   /**
    * 恢复聊天
    * @chatId 从onChatSaved生命周期中,获取chat?.chatSession?.id
@@ -123,9 +110,7 @@ export class tab4Page {
     openChatPanelModal(this.modalCtrl, options)
   }
 
-  goChat() {
-    this.router.navigateByUrl("/chat/session/role/2DXJkRsjXK")
-  }
+ 
 
 
   // audioModalHeightPoint:number = 0.35;