Merge branch 'develop' of git.dev.yoho.cn:web/yohobuy into develop
Showing
6 changed files
with
28 additions
and
26 deletions
@@ -234,3 +234,9 @@ function scrollHandler() { | @@ -234,3 +234,9 @@ function scrollHandler() { | ||
234 | 234 | ||
235 | //srcoll to load more | 235 | //srcoll to load more |
236 | $(window).scroll(scrollHandler); | 236 | $(window).scroll(scrollHandler); |
237 | + | ||
238 | +$(document).on('touchend', '.swiper-header', function() { | ||
239 | + var url = $(this).find('.fav-more').attr('href'); | ||
240 | + | ||
241 | + window.location.href = url; | ||
242 | +}); |
@@ -19,9 +19,9 @@ myImage.onload = function() { | @@ -19,9 +19,9 @@ myImage.onload = function() { | ||
19 | $userAvatar.css('background-image', 'url(' + avatar + ')'); | 19 | $userAvatar.css('background-image', 'url(' + avatar + ')'); |
20 | }; | 20 | }; |
21 | 21 | ||
22 | -$('.yoho-page').on('touchstart', '.list-item, .type-item', function() { | 22 | +$('.yoho-page').on('touchstart', '.list-item, .type-item, .order-title', function() { |
23 | $listItem.removeClass('highlight'); | 23 | $listItem.removeClass('highlight'); |
24 | $(this).addClass('highlight'); | 24 | $(this).addClass('highlight'); |
25 | -}).on('touchend touchcancel', '.list-item, .type-item', function() { | 25 | +}).on('touchend touchcancel', '.list-item, .type-item, .order-title', function() { |
26 | $(this).removeClass('highlight'); | 26 | $(this).removeClass('highlight'); |
27 | }); | 27 | }); |
@@ -50,9 +50,13 @@ function hiddenTips($ele) { | @@ -50,9 +50,13 @@ function hiddenTips($ele) { | ||
50 | //} | 50 | //} |
51 | 51 | ||
52 | function wrapElements(selector, count) { | 52 | function wrapElements(selector, count) { |
53 | + var elArr = null; | ||
54 | + | ||
53 | $(selector).each(function(idx, el) { | 55 | $(selector).each(function(idx, el) { |
54 | - if (idx % count === 0) { | ||
55 | - $($(selector).slice(idx, idx + count)).wrapAll($('<div class="js-wraper"></div>')); | 56 | + elArr = $(selector).slice(idx, idx + count); |
57 | + | ||
58 | + if (elArr.length === count && idx % count === 0) { | ||
59 | + $(elArr).wrapAll($('<div class="js-wraper"></div>')); | ||
56 | } | 60 | } |
57 | }); | 61 | }); |
58 | } | 62 | } |
@@ -141,23 +141,15 @@ $suggest: sprite-map("me/suggest/*.png",$spacing: 5px); | @@ -141,23 +141,15 @@ $suggest: sprite-map("me/suggest/*.png",$spacing: 5px); | ||
141 | border-top: pxToRem(30px) solid #f0f0f0; | 141 | border-top: pxToRem(30px) solid #f0f0f0; |
142 | border-bottom: pxToRem(30px) solid #f0f0f0; | 142 | border-bottom: pxToRem(30px) solid #f0f0f0; |
143 | position: relative; | 143 | position: relative; |
144 | - &:after { | ||
145 | - content: ''; | ||
146 | - width: 100%; | ||
147 | - height: 1px; | ||
148 | - border-top: 1px solid #e0e0e0; | ||
149 | - position: absolute; | ||
150 | - left: 0; | ||
151 | - top: 0; | 144 | + |
145 | + | ||
146 | + .list-item { | ||
147 | + padding: 0 pxToRem(35px); | ||
152 | } | 148 | } |
153 | - &:before { | ||
154 | - content: ''; | ||
155 | - width: 100%; | ||
156 | - height: 1px; | ||
157 | - border-bottom: 1px solid #e0e0e0; | ||
158 | - position: absolute; | ||
159 | - left: 0; | ||
160 | - bottom: 0; | 149 | + .new-right { |
150 | + float: right; | ||
151 | + margin-left: pxToRem(40px); | ||
152 | + color: #e0e0e0; | ||
161 | } | 153 | } |
162 | 154 | ||
163 | a { | 155 | a { |
@@ -165,10 +157,6 @@ $suggest: sprite-map("me/suggest/*.png",$spacing: 5px); | @@ -165,10 +157,6 @@ $suggest: sprite-map("me/suggest/*.png",$spacing: 5px); | ||
165 | display: inline-block; | 157 | display: inline-block; |
166 | } | 158 | } |
167 | 159 | ||
168 | - > span { | ||
169 | - color: #b0b0b0; | ||
170 | - font-size: pxToRem(26px); | ||
171 | - } | ||
172 | } | 160 | } |
173 | } | 161 | } |
174 | 162 |
@@ -7,8 +7,8 @@ | @@ -7,8 +7,8 @@ | ||
7 | </h2> | 7 | </h2> |
8 | 8 | ||
9 | <div class="create-new-suggest"> | 9 | <div class="create-new-suggest"> |
10 | - <a href="./suggestSub"> | ||
11 | - 反馈问题<span>(功能意见,界面意见)</span> | 10 | + <a class="list-item" href="./suggestSub"> |
11 | + 反馈问题 (功能意见,界面意见)<span class="iconfont new-right"></span> | ||
12 | </a> | 12 | </a> |
13 | </div> | 13 | </div> |
14 | 14 |
-
Please register or login to post a comment