15179588180 hai 7 meses
pai
achega
2e12d52f21

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

@@ -99,7 +99,7 @@
 
     <ion-row class="horizontal-row">
       <ion-col size="6">
-        <ion-button >
+        <ion-button (click)="openInNewWindow()">
           <ion-icon slot="start" name="storefront-outline"></ion-icon>
           外卖推荐
         </ion-button>

+ 3 - 1
smarteat-app/src/app/tab1/tab1.page.ts

@@ -343,5 +343,7 @@ export class Tab1Page implements OnInit {
       }
     }
 
-
+    openInNewWindow() {
+      window.open('https://i.meituan.com/mttouch/page/home', '_blank');
+    }
 }

+ 2 - 15
smarteat-app/src/app/tabs/tabs.routes.ts

@@ -26,26 +26,13 @@ export const routes: Routes = [
         loadComponent: () =>
           import('../page-edit/page-edit.component').then((m) => m.PageEditComponent),
       },
-      {
-        path: 'tips',
-        loadComponent: () =>
-          import('../health-tips/health-tips.component').then((m) => m.HealthTipsComponent),
-      },
+      
       {
         path: 'asy',
         loadComponent: () =>
           import('../asy/asy.component').then((m) => m.AsyComponent),
       },
-      {
-        path: 'asf',
-        loadComponent: () =>
-          import('../asf/asf.component').then((m) => m.AsfComponent),
-      },
-      {
-        path: 'asx',
-        loadComponent: () =>
-          import('../asx/asx.component').then((m) => m.AsxComponent),
-      },
+
       {
         path: '',
         redirectTo: '/tabs/tab1',