我三目判断有问题,不会从数据中取图!对应的ts里的点击事件是帖子详情页,另外我找到的应该也是相关的是
/*帖子详情页*/
goToArticle(articleUuid,action) {
this.nav.push(Article, { 'articleUuid': articleUuid,'action':action });
}
/*加载数据 获取帖子信息*/
loadData(loading) {
let params: string = 'articleUuid=' + this.articleUuid + '&customerUuid=' + this.customerUuid + '&customerRoleUuid=' + this.customerRoleUuid;
this.commonSv.apiGet('getArticleInfo', params)
.subscribe(
data => {
console.log(data.info);
this.articleInfo = data.info;
this.images = this.articleInfo.images;
this.likeCount = this.articleInfo.article_like_count;
this.likeCount = Number(this.articleInfo.article_like_count);
this.repostCount = this.articleInfo.article_repost_count;
this.repostCount = Number(this.articleInfo.article_repost_count);
this.outParams ={
'article_uuid':data.info.bbs_article_uuid,
'islike':data.info.islike,
'like_count':data.info.article_like_count,
'reply_count':data.info.article_reply_count,
'repost_count':data.info.article_repost_count,
'isFriend':data.info.isFriend
};
if (loading != null) {
loading.dismiss();
}
},
err => {
console.log(err);
if (loading != null) {
loading.dismiss();
}
}
);
}