Authored by 王水玲

分期bug 修改

@@ -25,6 +25,15 @@ function setDetailText() { @@ -25,6 +25,15 @@ function setDetailText() {
25 }); 25 });
26 } 26 }
27 27
  28 +function setDefaultHeight() {
  29 + var $detailImg = $('.good-detail-img');
  30 +
  31 + $detailImg.css({
  32 + height: $detailImg.find('img').height() - 1,
  33 + background: '#c3c3c3'
  34 + });
  35 +}
  36 +
28 setDetailText(); 37 setDetailText();
29 38
30 $('.detail-tab span').on('click', function() { 39 $('.detail-tab span').on('click', function() {
@@ -33,9 +42,19 @@ $('.detail-tab span').on('click', function() { @@ -33,9 +42,19 @@ $('.detail-tab span').on('click', function() {
33 42
34 if ($(this).index() === 1) { 43 if ($(this).index() === 1) {
35 setDetailText(); 44 setDetailText();
  45 + lazyLoad($('img.lazy'));
  46 +
  47 + setTimeout(function() {
  48 + setDefaultHeight();
  49 + }, 2000);
36 } 50 }
37 }); 51 });
38 52
  53 +setTimeout(function() {
  54 + setDefaultHeight();
  55 +}, 2500);
  56 +
  57 +
39 window.setCookie('installmentUid', window.queryString.uid); 58 window.setCookie('installmentUid', window.queryString.uid);
40 window.setCookie('udid', window.queryString.udid); 59 window.setCookie('udid', window.queryString.udid);
41 window.setCookie('clientType', window.queryString.client_type); 60 window.setCookie('clientType', window.queryString.client_type);
@@ -88,7 +88,32 @@ @@ -88,7 +88,32 @@
88 } 88 }
89 89
90 #goods-list { 90 #goods-list {
91 - margin: 15px 0 0 15px; 91 + padding: 0 15px;
  92 + margin: 15px 0 0;
  93 + width: 100%;
  94 + box-sizing: border-box;
  95 + }
  96 +
  97 + .good-info {
  98 + float: left;
  99 + padding: 0 15px;
  100 + margin: 10px 0 40px;
  101 + box-sizing: border-box;
  102 + width: 50%;
  103 + height: auto;
  104 + }
  105 +
  106 + .good-thumb {
  107 + width: 100%;
  108 + height: 100%;
  109 + }
  110 +
  111 + .good-detail-img {
  112 + height: auto;
  113 +
  114 + img {
  115 + height: 100%;
  116 + }
92 } 117 }
93 } 118 }
94 119
@@ -294,7 +294,7 @@ @@ -294,7 +294,7 @@
294 border-top: 1px solid #e0e0e0; 294 border-top: 1px solid #e0e0e0;
295 295
296 label { 296 label {
297 - margin-left: 75px; 297 + margin-left: 60px;
298 width: 320px; 298 width: 320px;
299 height: 120px; 299 height: 120px;
300 float: left; 300 float: left;