Merge branch 'master' of git.yoho.cn:fe/yohobuywap-node into feature/couponcenter
Showing
5 changed files
with
49 additions
and
5 deletions
@@ -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 |
@@ -126,7 +126,7 @@ | @@ -126,7 +126,7 @@ | ||
126 | .info-box { | 126 | .info-box { |
127 | margin-left: 22px; | 127 | margin-left: 22px; |
128 | float: left; | 128 | float: left; |
129 | - width: 452px; | 129 | + width: 402px; |
130 | } | 130 | } |
131 | 131 | ||
132 | h3 { | 132 | h3 { |
@@ -154,7 +154,7 @@ | @@ -154,7 +154,7 @@ | ||
154 | .installment-box { | 154 | .installment-box { |
155 | text-align: center; | 155 | text-align: center; |
156 | float: left; | 156 | float: left; |
157 | - width: 213.333px; | 157 | + width: 33%; |
158 | font-size: 22px; | 158 | font-size: 22px; |
159 | } | 159 | } |
160 | 160 |
-
Please register or login to post a comment