Authored by yyq

fix

... ... @@ -31,7 +31,9 @@ export default {
};
if (this.data.topicImageUrl) {
style.backgroundImage = `url(//${this.data.topicImageUrl.split('//')[1]})`;
let topicImageUrl = this.data.topicImageUrl.split('?')[0];
style.backgroundImage = `url(//${topicImageUrl.split('//')[1]}?imageView2/2/w/750/h/300/format/jpg/interlace/1)`;
}
return style;
... ...
... ... @@ -107,17 +107,19 @@ export default {
}
}
if (!this.yoho.context.userHeadIco) {
this.$sdk.getUser().then(user => {
if (user && user.uid) {
this.fetchUserProfile();
}
});
}
this.scrollEvent = throttle(this.onDounceScroll.bind(this), throttleTime);
this.colWidthForTwo = Math.floor(this.$el.offsetWidth / 2);
this.setListMinHeight();
setTimeout(() => {
if (!this.yoho.context.userHeadIco) {
this.$sdk.getUser().then(user => {
if (user && user.uid) {
this.fetchUserProfile();
}
});
}
}, 200);
},
computed: {
...mapYohoState(['yoho']),
... ...