Commit ad97b75c by Sweet Zhang

轮播图自动播

parent 47852285
...@@ -21,9 +21,10 @@ ...@@ -21,9 +21,10 @@
<WingBlank *ngIf="bannerLists.length>0"> <WingBlank *ngIf="bannerLists.length>0">
<Carousel [infinite]="true" <Carousel [infinite]="true"
[vertical]="false" [vertical]="false"
[autoplay]="true"
[selectedIndex]="1" [selectedIndex]="1"
> >
<CarouselSlide *ngFor="let item of bannerLists" (click)="goBannerPro(item.destinationAddress)"> <CarouselSlide *ngFor="let item of bannerLists" (click)="goBannerPro(item.destinationAddress)">
<div style="display: inline-block; width: 100%;border-radius:10px;overflow:hidden" [ngStyle]="{'height': '145px'}"> <div style="display: inline-block; width: 100%;border-radius:10px;overflow:hidden" [ngStyle]="{'height': '145px'}">
<img src="{{item.filePath}}" style=" pointer-events: none; width: 100%;" /> <img src="{{item.filePath}}" style=" pointer-events: none; width: 100%;" />
</div> </div>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment