我在使用s3 / cloudfront托管的应用中显示图片。在测试,Android模拟器,设备和网络服务器上一切都很好,但谷歌批准我的应用程序后,我从Play商店下载所有图像都坏了?这些链接都是https,可能会导致问题?文字是从api回来的,它只是图片链接。
有人遇到这个问题吗?
html页面:
<ion-content padding>
<ion-card *ngFor="let article of articles" (click)="getPage(article.id, article.company)" tappable role="button">
<div class="main-image">
<div class="image-crop" [ngStyle]="{background: 'url(' + article.mainImage + ') no-repeat center center'}"></div>
</div>
<ion-item>
<h2>{{article.mainHeading}}</h2>
</ion-item>
<ion-card-content>
{{article.mainBody | truncate : 86}}
</ion-card-content>
</ion-card>
<ion-infinite-scroll (ionInfinite)="doInfinite($event)">
<ion-infinite-scroll-content></ion-infinite-scroll-content>
</ion-infinite-scroll>
<ion-refresher (ionRefresh)="doRefresh($event)">
<ion-refresher-content></ion-refresher-content>
</ion-refresher>
</ion-content>
成分</ P>
loadArticles() {
this.httpService.getData('articles?limit=' + this.limit + '&skip=' + this.currentPage * 10)
.subscribe(
(data: any) => {
this.articles = data;
},
(error) => {
console.log(error);
}
);
}