Quellcode durchsuchen

feat:image-detail

0235695 vor 2 Tagen
Ursprung
Commit
1da51fd199

+ 1 - 1
picture-web/src/modules/picture/home-tab/home-tab.html

@@ -161,7 +161,7 @@
       </div>
       <div class="waterfall" id="waterfall-container">
         <!-- 动态加载的内容 -->
-        <div class="waterfall-item" *ngFor="let dish of dishes">
+        <div class="waterfall-item" *ngFor="let dish of dishes" routerLink="/mobile/image-detail">
           <img [src]="dish.image" [alt]="dish.name">
           <div class="item-info">
             <h3>

+ 3 - 0
picture-web/src/modules/picture/mobile.routes.ts

@@ -41,6 +41,9 @@ export const MOBILE_ROUTES: Routes = [
     path: 'image-search',
     loadComponent: () => import('../first-home/image-search/image-search').then(m => m.ImageSearch)
   },
+  {
+    path: 'image-detail',
+    loadComponent: () => import('../first-home/image-detail/image-detail').then(m => m.ImageDetail)}
 ];