Authored by yyq

fix

@@ -31,7 +31,9 @@ export default { @@ -31,7 +31,9 @@ export default {
31 }; 31 };
32 32
33 if (this.data.topicImageUrl) { 33 if (this.data.topicImageUrl) {
34 - style.backgroundImage = `url(//${this.data.topicImageUrl.split('//')[1]})`; 34 + let topicImageUrl = this.data.topicImageUrl.split('?')[0];
  35 +
  36 + style.backgroundImage = `url(//${topicImageUrl.split('//')[1]}?imageView2/2/w/750/h/300/format/jpg/interlace/1)`;
35 } 37 }
36 38
37 return style; 39 return style;
@@ -107,17 +107,19 @@ export default { @@ -107,17 +107,19 @@ export default {
107 } 107 }
108 } 108 }
109 109
110 - if (!this.yoho.context.userHeadIco) {  
111 - this.$sdk.getUser().then(user => {  
112 - if (user && user.uid) {  
113 - this.fetchUserProfile();  
114 - }  
115 - });  
116 - }  
117 -  
118 this.scrollEvent = throttle(this.onDounceScroll.bind(this), throttleTime); 110 this.scrollEvent = throttle(this.onDounceScroll.bind(this), throttleTime);
119 this.colWidthForTwo = Math.floor(this.$el.offsetWidth / 2); 111 this.colWidthForTwo = Math.floor(this.$el.offsetWidth / 2);
120 this.setListMinHeight(); 112 this.setListMinHeight();
  113 +
  114 + setTimeout(() => {
  115 + if (!this.yoho.context.userHeadIco) {
  116 + this.$sdk.getUser().then(user => {
  117 + if (user && user.uid) {
  118 + this.fetchUserProfile();
  119 + }
  120 + });
  121 + }
  122 + }, 200);
121 }, 123 },
122 computed: { 124 computed: {
123 ...mapYohoState(['yoho']), 125 ...mapYohoState(['yoho']),