Authored by 张帅

封面图宽高

@@ -128,6 +128,9 @@ @@ -128,6 +128,9 @@
128 if(width >240){ 128 if(width >240){
129 w =240; 129 w =240;
130 } 130 }
  131 + if(width ==1 || height == 1){
  132 + w =240;
  133 + }
131 var h = w * height/width; 134 var h = w * height/width;
132 imgHtml = '<img src="'+detailInfo.coverImg+'" style="width:'+w+'px;height:'+h+'px;"/>'; 135 imgHtml = '<img src="'+detailInfo.coverImg+'" style="width:'+w+'px;height:'+h+'px;"/>';
133 $("#coverImg").html(imgHtml); 136 $("#coverImg").html(imgHtml);