Merge branch 'release/4.5' of http://git.yoho.cn/fe/yohobuywap into release/4.5
Showing
7 changed files
with
39 additions
and
28 deletions
@@ -36,26 +36,27 @@ function downCount(options) { | @@ -36,26 +36,27 @@ function downCount(options) { | ||
36 | _minute = _second * 60, | 36 | _minute = _second * 60, |
37 | _hour = _minute * 60, | 37 | _hour = _minute * 60, |
38 | _day = _hour * 24, | 38 | _day = _hour * 24, |
39 | - days, | ||
40 | hours, | 39 | hours, |
41 | minutes, | 40 | minutes, |
42 | seconds; | 41 | seconds; |
43 | 42 | ||
44 | // calculate dates | 43 | // calculate dates |
45 | - days = Math.floor(difference / _day), | ||
46 | hours = Math.floor((difference % _day) / _hour), | 44 | hours = Math.floor((difference % _day) / _hour), |
47 | minutes = Math.floor((difference % _hour) / _minute), | 45 | minutes = Math.floor((difference % _hour) / _minute), |
48 | seconds = Math.floor((difference % _minute) / _second); | 46 | seconds = Math.floor((difference % _minute) / _second); |
49 | 47 | ||
50 | // fix dates so that it will show two digets | 48 | // fix dates so that it will show two digets |
51 | - days = (String(days).length >= 2) ? days : '0' + days; | ||
52 | hours = (String(hours).length >= 2) ? hours : '0' + hours; | 49 | hours = (String(hours).length >= 2) ? hours : '0' + hours; |
53 | minutes = (String(minutes).length >= 2) ? minutes : '0' + minutes; | 50 | minutes = (String(minutes).length >= 2) ? minutes : '0' + minutes; |
54 | seconds = (String(seconds).length >= 2) ? seconds : '0' + seconds; | 51 | seconds = (String(seconds).length >= 2) ? seconds : '0' + seconds; |
55 | 52 | ||
56 | // set to DOM | 53 | // set to DOM |
57 | $countdownContainer.removeClass('hide'); | 54 | $countdownContainer.removeClass('hide'); |
58 | - $countDownHours.text('剩余' + hours + ':' + minutes + ':' + seconds); | 55 | + if (hours === '00') { |
56 | + $countDownHours.text('剩余' + minutes + ':' + seconds); | ||
57 | + } else { | ||
58 | + $countDownHours.text('剩余' + hours + ':' + minutes + ':' + seconds); | ||
59 | + } | ||
59 | 60 | ||
60 | difference -= 1000; | 61 | difference -= 1000; |
61 | 62 | ||
@@ -121,12 +122,10 @@ if ($ownerInfo.data('changeable') === true) { | @@ -121,12 +122,10 @@ if ($ownerInfo.data('changeable') === true) { | ||
121 | 122 | ||
122 | $(function() { | 123 | $(function() { |
123 | reasonSwiper = new Swiper('.box-main', { | 124 | reasonSwiper = new Swiper('.box-main', { |
124 | - paginationClickable: true, | ||
125 | - direction: 'vertical', | ||
126 | - slidesPerView: 6, | ||
127 | - height: 200, | 125 | + initialSlide: 0, |
128 | centeredSlides: true, | 126 | centeredSlides: true, |
129 | - initialSlide: 3, | 127 | + slidesPerView: 5, |
128 | + direction: 'vertical', | ||
130 | onSlideChangeStart: function(reasonSwiper) { | 129 | onSlideChangeStart: function(reasonSwiper) { |
131 | var activeIndex = reasonSwiper.activeIndex, | 130 | var activeIndex = reasonSwiper.activeIndex, |
132 | slides = reasonSwiper.slides, | 131 | slides = reasonSwiper.slides, |
@@ -247,12 +247,10 @@ getOrders(); | @@ -247,12 +247,10 @@ getOrders(); | ||
247 | 247 | ||
248 | $(function() { | 248 | $(function() { |
249 | reasonSwiper = new Swiper('.box-main', { | 249 | reasonSwiper = new Swiper('.box-main', { |
250 | - paginationClickable: true, | ||
251 | direction: 'vertical', | 250 | direction: 'vertical', |
252 | - slidesPerView: 6, | ||
253 | - height: 200, | 251 | + slidesPerView: 5, |
254 | centeredSlides: true, | 252 | centeredSlides: true, |
255 | - initialSlide: 3, | 253 | + initialSlide: 0, |
256 | onSlideChangeStart: function(reasonSwiper) { | 254 | onSlideChangeStart: function(reasonSwiper) { |
257 | var activeIndex = reasonSwiper.activeIndex, | 255 | var activeIndex = reasonSwiper.activeIndex, |
258 | slides = reasonSwiper.slides, | 256 | slides = reasonSwiper.slides, |
@@ -203,7 +203,7 @@ | @@ -203,7 +203,7 @@ | ||
203 | left: 0; | 203 | left: 0; |
204 | top: 0; | 204 | top: 0; |
205 | background: rgba(0, 0, 0, .5); | 205 | background: rgba(0, 0, 0, .5); |
206 | - z-index: 5; | 206 | + z-index: 1; |
207 | visibility: hidden; | 207 | visibility: hidden; |
208 | 208 | ||
209 | .reason-box { | 209 | .reason-box { |
@@ -235,6 +235,18 @@ | @@ -235,6 +235,18 @@ | ||
235 | background: #FFFFFF; | 235 | background: #FFFFFF; |
236 | padding: 20px; | 236 | padding: 20px; |
237 | height:480px; | 237 | height:480px; |
238 | + | ||
239 | + .active-mask { | ||
240 | + position: absolute; | ||
241 | + top: 50%; | ||
242 | + margin-top: -44px; | ||
243 | + height: 88px; | ||
244 | + z-index: 8; | ||
245 | + width: 500px; | ||
246 | + background: rgba(255, 255, 255, 0.1); | ||
247 | + border-bottom: 1px solid rgb(223,224,224); | ||
248 | + border-top: 1px solid rgb(223,224,224); | ||
249 | + } | ||
238 | } | 250 | } |
239 | 251 | ||
240 | li { | 252 | li { |
@@ -247,17 +259,12 @@ | @@ -247,17 +259,12 @@ | ||
247 | .swiper-slide-active { | 259 | .swiper-slide-active { |
248 | padding-top: 0; | 260 | padding-top: 0; |
249 | font-style: normal; | 261 | font-style: normal; |
250 | - border-top: 1px solid rgb(223,224,224); | ||
251 | - border-bottom: 1px solid rgb(223,224,224); | ||
252 | font-size: 38px; | 262 | font-size: 38px; |
253 | color: rgb(0,0,0); | 263 | color: rgb(0,0,0); |
254 | - height: 78px !important; | ||
255 | line-height: 78px; | 264 | line-height: 78px; |
256 | } | 265 | } |
257 | 266 | ||
258 | - .swiper-slide { | ||
259 | - line-height: 70px; | ||
260 | - } | 267 | + |
261 | } | 268 | } |
262 | } | 269 | } |
263 | } | 270 | } |
@@ -40,6 +40,18 @@ | @@ -40,6 +40,18 @@ | ||
40 | background: #FFFFFF; | 40 | background: #FFFFFF; |
41 | padding: 20px; | 41 | padding: 20px; |
42 | height:480px; | 42 | height:480px; |
43 | + | ||
44 | + .active-mask { | ||
45 | + position: absolute; | ||
46 | + top: 50%; | ||
47 | + margin-top: -44px; | ||
48 | + height: 88px; | ||
49 | + z-index: 8; | ||
50 | + width: 500px; | ||
51 | + background: rgba(255, 255, 255, 0.1); | ||
52 | + border-bottom: 1px solid rgb(223,224,224); | ||
53 | + border-top: 1px solid rgb(223,224,224); | ||
54 | + } | ||
43 | } | 55 | } |
44 | 56 | ||
45 | li { | 57 | li { |
@@ -52,17 +64,10 @@ | @@ -52,17 +64,10 @@ | ||
52 | .swiper-slide-active { | 64 | .swiper-slide-active { |
53 | padding-top: 0; | 65 | padding-top: 0; |
54 | font-style: normal; | 66 | font-style: normal; |
55 | - border-top: 1px solid rgb(223,224,224); | ||
56 | - border-bottom: 1px solid rgb(223,224,224); | ||
57 | font-size: 38px; | 67 | font-size: 38px; |
58 | color: rgb(0,0,0); | 68 | color: rgb(0,0,0); |
59 | - height: 78px !important; | ||
60 | line-height: 78px; | 69 | line-height: 78px; |
61 | } | 70 | } |
62 | - | ||
63 | - .swiper-slide { | ||
64 | - line-height: 70px; | ||
65 | - } | ||
66 | } | 71 | } |
67 | } | 72 | } |
68 | 73 |
@@ -128,12 +128,12 @@ | @@ -128,12 +128,12 @@ | ||
128 | <div class="reason-box" > | 128 | <div class="reason-box" > |
129 | <div class="box-head"><span class="box-cmp">完成</span></div> | 129 | <div class="box-head"><span class="box-cmp">完成</span></div> |
130 | <div class="swiper-container box-main"> | 130 | <div class="swiper-container box-main"> |
131 | - | ||
132 | <ul class="swiper-wrapper"> | 131 | <ul class="swiper-wrapper"> |
133 | {{#cancelReason}} | 132 | {{#cancelReason}} |
134 | <li class="swiper-slide" data-reason-id="{{id}}"><span >{{reason}}</span></li> | 133 | <li class="swiper-slide" data-reason-id="{{id}}"><span >{{reason}}</span></li> |
135 | {{/cancelReason}} | 134 | {{/cancelReason}} |
136 | </ul> | 135 | </ul> |
136 | + <div class="active-mask"></div> | ||
137 | </div> | 137 | </div> |
138 | </div> | 138 | </div> |
139 | </div> | 139 | </div> |
@@ -25,6 +25,7 @@ | @@ -25,6 +25,7 @@ | ||
25 | <li class="swiper-slide" data-reason-id="{{id}}"><span >{{reason}}</span></li> | 25 | <li class="swiper-slide" data-reason-id="{{id}}"><span >{{reason}}</span></li> |
26 | {{/cancelReason}} | 26 | {{/cancelReason}} |
27 | </ul> | 27 | </ul> |
28 | + <div class="active-mask"></div> | ||
28 | </div> | 29 | </div> |
29 | </div> | 30 | </div> |
30 | </div> | 31 | </div> |
-
Please register or login to post a comment