Browse Source

0210348-字体排版

0210348 4 months ago
parent
commit
3fa8d71788

+ 1 - 2
src/app/chatpage/chatpage.page.scss

@@ -2,8 +2,7 @@
   font-size: 32px;
   text-align: center;
   font-weight: bold;
-  padding-top: 4px;
-  height:50px;
+  height:55px;
 }
 
 .history{

+ 1 - 2
src/app/child-page/chat/chat.page.scss

@@ -2,8 +2,7 @@
   font-size: 32px;
   text-align: center;
   font-weight: bold;
-  padding-top: 4px;
-  height:50px;
+  height:55px;
 }
 
 .chat-container {

+ 2 - 2
src/app/child-page/memo-history/memo-history.page.ts

@@ -24,8 +24,8 @@ export class MemoHistoryPage implements OnInit {
 
     const MemoHistory = Parse.Object.extend('memo_history');
     const query = new Parse.Query(MemoHistory);
-    query.equalTo('username', currentUser.getUsername()); // Ensure only the current user's memos are fetched
-    query.descending('memoId'); // Sort by memoId descending to get the latest memos first
+    query.equalTo('username', currentUser.getUsername()); // 确保只获取当前用户的备忘录
+    query.descending('memoId'); // 按 memoId 降序排列,最新的在最上面
 
     try {
       const results = await query.find();

+ 2 - 1
src/app/home/home.page.scss

@@ -16,7 +16,8 @@ ion-searchbar {
   text-align: center;
   font-weight: bold;
   font-size: 18px;
-  margin-left: 18%;
+  margin-left: 19%;
+  margin-top:8px;
 }
 
 .info-box {

+ 1 - 1
src/app/home/home.page.ts

@@ -57,7 +57,7 @@ export class HomePage implements OnInit {
         // 检查任务是否完成
         if (this.current === this.target && this.initial !== this.target) {
           await this.completeTask(weightStatus);
-        } else if (this.current === this.initial && this.current === this.target) {
+        } else if (this.current === this.initial && this.current === this.target && this.current != 0 ) {
           this.taskCompleted = true; // 设置任务完成标志
         } else {
           this.taskCompleted = false; // 重置任务完成标志

+ 4 - 4
src/app/mine/mine.page.html

@@ -22,18 +22,18 @@
       <ion-grid>
         <ion-row>
           <ion-col size="6">
-            打卡天数: 天
+            打卡天数: 30
           </ion-col>
           <ion-col size="6">
-            累计减重: kg
+            累计减重: 4kg
           </ion-col>
         </ion-row>
         <ion-row>
           <ion-col size="6">
-            当前赏金: 元
+            当前赏金: 40
           </ion-col>
           <ion-col size="6">
-            BMI指数:
+            BMI指数:25.5
           </ion-col>
         </ion-row>
       </ion-grid>