Authored by 毕凯

排版优化

@@ -73,10 +73,11 @@ @@ -73,10 +73,11 @@
73 } 73 }
74 .related-goods { 74 .related-goods {
75 float: left; 75 float: left;
  76 + width: 100%;
76 background-color: #fff; 77 background-color: #fff;
77 } 78 }
78 .related-goods .good-item { 79 .related-goods .good-item {
79 - width: 100%; 80 + width: 100%;
80 border-top: 1px solid #e0e0e0; 81 border-top: 1px solid #e0e0e0;
81 float: left; 82 float: left;
82 padding: 20px 0; 83 padding: 20px 0;
@@ -87,7 +88,6 @@ @@ -87,7 +88,6 @@
87 } 88 }
88 .pic-mip { 89 .pic-mip {
89 max-width: 100%; 90 max-width: 100%;
90 - min-width: 100%;  
91 } 91 }
92 .related-goods .good-item .info { 92 .related-goods .good-item .info {
93 width: 70%; 93 width: 70%;
@@ -249,8 +249,8 @@ const processArticleDetail = (articleContent, isApp, gender, isWeixin, isqq, isW @@ -249,8 +249,8 @@ const processArticleDetail = (articleContent, isApp, gender, isWeixin, isqq, isW
249 noLazy: index <= 3, 249 noLazy: index <= 3,
250 tagList: tagList, 250 tagList: tagList,
251 isGif: /\.gif/i.test(_.get(value, 'singleImage.data[0].src', '')), 251 isGif: /\.gif/i.test(_.get(value, 'singleImage.data[0].src', '')),
252 - width: _.get(value, 'singleImage.data[0].width', 0) / 2,  
253 - height: _.get(value, 'singleImage.data[0].height', 0) / 2, 252 + width: 320,
  253 + height: _.get(value, 'singleImage.data[0].height', 0) / _.get(value, 'singleImage.data[0].width', 1) * 320 // eslint-disable-line
254 }); 254 });
255 } 255 }
256 256