Merge branch 'develop' of http://git.dev.yoho.cn/web/yohobuy into develop
Showing
5 changed files
with
30 additions
and
2 deletions
@@ -83,6 +83,7 @@ function loadData($parent, url, page) { | @@ -83,6 +83,7 @@ function loadData($parent, url, page) { | ||
83 | } | 83 | } |
84 | 84 | ||
85 | if (data === ' ') { | 85 | if (data === ' ') { |
86 | + $parent.closest('.fav-type').find('.fav-content-loading').addClass('hide'); | ||
86 | $parent.closest('.fav-type').find('.fav-null-box').removeClass('hide'); | 87 | $parent.closest('.fav-type').find('.fav-null-box').removeClass('hide'); |
87 | } else if (data === 'end') { | 88 | } else if (data === 'end') { |
88 | $parent.closest('.fav-type').find('.fav-load-background') | 89 | $parent.closest('.fav-type').find('.fav-load-background') |
@@ -20,12 +20,27 @@ var sizeSwiper, | @@ -20,12 +20,27 @@ var sizeSwiper, | ||
20 | 20 | ||
21 | require('../recommend-for-you.js'); | 21 | require('../recommend-for-you.js'); |
22 | 22 | ||
23 | +//判断是否要显示向左滑动提示 | ||
24 | +function hiddenTips($ele) { | ||
25 | + var offsetContainer = $ele[0].getBoundingClientRect().right; | ||
26 | + var offsetLastColumn = $ele.find('.swiper-slide:last-child')[0].getBoundingClientRect().right; | ||
27 | + | ||
28 | + | ||
29 | + if (offsetLastColumn - offsetContainer < 0) { | ||
30 | + $ele.next('.tips').css('display', 'none'); | ||
31 | + } else { | ||
32 | + $ele.next('.tips').css('display', 'block'); | ||
33 | + } | ||
34 | +} | ||
35 | + | ||
23 | function search() { | 36 | function search() { |
24 | if (searching || end) { | 37 | if (searching || end) { |
25 | return; | 38 | return; |
26 | } | 39 | } |
27 | searching = true; | 40 | searching = true; |
28 | 41 | ||
42 | + // alert($('#reference-swiper-container .swiper-wrapper').width()); | ||
43 | + | ||
29 | loading.showLoadingMask(); | 44 | loading.showLoadingMask(); |
30 | 45 | ||
31 | $.ajax({ | 46 | $.ajax({ |
@@ -47,6 +62,9 @@ function search() { | @@ -47,6 +62,9 @@ function search() { | ||
47 | slidesPerView: 'auto' | 62 | slidesPerView: 'auto' |
48 | }); | 63 | }); |
49 | 64 | ||
65 | + hiddenTips($('#size-swiper-container')); | ||
66 | + hiddenTips($('#reference-swiper-container')); | ||
67 | + | ||
50 | searching = false; | 68 | searching = false; |
51 | end = true; | 69 | end = true; |
52 | loading.hideLoadingMask(); | 70 | loading.hideLoadingMask(); |
@@ -19,6 +19,14 @@ | @@ -19,6 +19,14 @@ | ||
19 | font-weight: bold; | 19 | font-weight: bold; |
20 | } | 20 | } |
21 | 21 | ||
22 | + .name { | ||
23 | + display: inline-block; | ||
24 | + max-width: pxToRem(380px); | ||
25 | + overflow: hidden; | ||
26 | + text-overflow: ellipsis; | ||
27 | + white-space: nowrap; | ||
28 | + } | ||
29 | + | ||
22 | .tel { | 30 | .tel { |
23 | float: right; | 31 | float: right; |
24 | } | 32 | } |
@@ -3,7 +3,7 @@ | @@ -3,7 +3,7 @@ | ||
3 | <input type="hidden" name="id" value=""> | 3 | <input type="hidden" name="id" value=""> |
4 | <label class="username"> | 4 | <label class="username"> |
5 | 收件人姓名 | 5 | 收件人姓名 |
6 | - <input type="text" name="consignee" value=""> | 6 | + <input type="text" name="consignee" maxlength="20" value=""> |
7 | </label> | 7 | </label> |
8 | <label class="mobile"> | 8 | <label class="mobile"> |
9 | 手机号码 | 9 | 手机号码 |
@@ -17,7 +17,7 @@ | @@ -17,7 +17,7 @@ | ||
17 | </label> | 17 | </label> |
18 | <label class="address"> | 18 | <label class="address"> |
19 | 详细地址 | 19 | 详细地址 |
20 | - <textarea name="address"></textarea> | 20 | + <textarea name="address" maxlength="100"></textarea> |
21 | </label> | 21 | </label> |
22 | 22 | ||
23 | </form> | 23 | </form> |
-
Please register or login to post a comment