Эх сурвалжийг харах

提交内容的备注信息

AAA123 4 сар өмнө
parent
commit
b8c5b68611

+ 13 - 0
src/app/tab1/tab1.page.html

@@ -1,3 +1,4 @@
+
 <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no">
 
 <ion-header>
@@ -100,6 +101,18 @@
       <div class="label">{{ item.label }}</div>
     </div>
   </div>
+
+  <!-- 轮播图区域 -->
+  <div class="promotion-carousel" id="promotionCarousel" (touchstart)="onPromotionTouchStart($event)" (touchmove)="onPromotionTouchMove($event)" (touchend)="onPromotionTouchEnd($event)" [ngStyle]="{ transform: 'translateX(' + promotionCurrentTranslate + '%)' }">
+    <ng-container *ngFor="let poster of promotionPosters; let i = index">
+      <div class="poster">
+        <img [src]="poster.image" alt="Promotion Poster" />
+        <div class="description">{{ poster.description }}</div>
+      </div>
+    </ng-container>
+  </div>
+>>>>>>> 4f45335c00c8e925b67f803d52e4c36b1fd571e3
+>>>>>>> b008be561b87c697d051ef39af1817f6cc35bd8d
 </div>
 
 <!-- 浮动操作按钮 -->