Merge branch 'develop' of git.dev.yoho.cn:web/yohobuy into develop
Showing
7 changed files
with
28 additions
and
12 deletions
static/img/me/employ/employ-red.jpg
0 → 100644
12.6 KB
@@ -70,6 +70,16 @@ $('#coupon-list').on('touchend', '.employ-main', function() { | @@ -70,6 +70,16 @@ $('#coupon-list').on('touchend', '.employ-main', function() { | ||
70 | 70 | ||
71 | orderInfo('couponCode', $this.data('coupon-code')); | 71 | orderInfo('couponCode', $this.data('coupon-code')); |
72 | orderInfo('couponName', $this.data('coupon-name')); | 72 | orderInfo('couponName', $this.data('coupon-name')); |
73 | +}).on('touchstart', '.employ-main', function() { | ||
74 | + var $this = $(this); | ||
75 | + | ||
76 | + $this.siblings().removeClass('focus'); | ||
77 | + $this.addClass('focus'); | ||
78 | +}).on('touchend touchcancel', '.employ-main', function() { | ||
79 | + var $this = $(this); | ||
80 | + | ||
81 | + $this.siblings().removeClass('focus'); | ||
82 | + $this.removeClass('focus'); | ||
73 | }); | 83 | }); |
74 | 84 | ||
75 | $('body').on('touchend', '.not-use', function() { | 85 | $('body').on('touchend', '.not-use', function() { |
@@ -42,13 +42,10 @@ optHammer.on('tap', function(e) { | @@ -42,13 +42,10 @@ optHammer.on('tap', function(e) { | ||
42 | }).then(function(res) { | 42 | }).then(function(res) { |
43 | $('#dialog-wrapper').hide(); | 43 | $('#dialog-wrapper').hide(); |
44 | if (!res) { | 44 | if (!res) { |
45 | - tip.show('网络错误'); | ||
46 | return; | 45 | return; |
47 | } | 46 | } |
48 | - if (res.code === 200) { | ||
49 | - tip.show('删除成功'); | ||
50 | - } else { | ||
51 | - tip.show(res.message || '网络错误'); | 47 | + if (res.message) { |
48 | + tip.show(res.message); | ||
52 | } | 49 | } |
53 | window.location.href = '/home/orders'; | 50 | window.location.href = '/home/orders'; |
54 | }).fail(function() { | 51 | }).fail(function() { |
@@ -74,13 +71,10 @@ optHammer.on('tap', function(e) { | @@ -74,13 +71,10 @@ optHammer.on('tap', function(e) { | ||
74 | }).then(function(res) { | 71 | }).then(function(res) { |
75 | $('#dialog-wrapper').hide(); | 72 | $('#dialog-wrapper').hide(); |
76 | if (!res) { | 73 | if (!res) { |
77 | - tip.show('网络错误'); | ||
78 | return; | 74 | return; |
79 | } | 75 | } |
80 | - if (res.code === 200) { | ||
81 | - tip.show('取消成功'); | ||
82 | - } else { | ||
83 | - tip.show(res.message || '网络错误'); | 76 | + if (res.message) { |
77 | + tip.show(res.message); | ||
84 | } | 78 | } |
85 | window.location.href = '/home/orders'; | 79 | window.location.href = '/home/orders'; |
86 | }).fail(function() { | 80 | }).fail(function() { |
@@ -3,6 +3,14 @@ | @@ -3,6 +3,14 @@ | ||
3 | position: relative; | 3 | position: relative; |
4 | padding-left: 16rem / $pxConvertRem; | 4 | padding-left: 16rem / $pxConvertRem; |
5 | 5 | ||
6 | + .prevent-img-click { | ||
7 | + width: 20rem / $pxConvertRem; | ||
8 | + height: 200rem / $pxConvertRem; | ||
9 | + position: absolute; | ||
10 | + background-color: transparent; | ||
11 | + z-index: 99; | ||
12 | + } | ||
13 | + | ||
6 | .checkbox { | 14 | .checkbox { |
7 | position: absolute; | 15 | position: absolute; |
8 | top: 50%; | 16 | top: 50%; |
@@ -40,6 +40,9 @@ | @@ -40,6 +40,9 @@ | ||
40 | background-size: 100% 100%; | 40 | background-size: 100% 100%; |
41 | color: #fff; | 41 | color: #fff; |
42 | position: relative; | 42 | position: relative; |
43 | + &.focus { | ||
44 | + background-image: image-url('me/employ/employ-red.jpg'); | ||
45 | + } | ||
43 | span{ | 46 | span{ |
44 | width: 34.482759%; | 47 | width: 34.482759%; |
45 | height: 100%; | 48 | height: 100%; |
@@ -8,6 +8,7 @@ | @@ -8,6 +8,7 @@ | ||
8 | {{/if}} | 8 | {{/if}} |
9 | 9 | ||
10 | <div class="info"> | 10 | <div class="info"> |
11 | + <div class="prevent-img-click"></div> | ||
11 | <a href="{{link}}"> | 12 | <a href="{{link}}"> |
12 | <img class="thumb lazy" data-original="{{thumb}}"> | 13 | <img class="thumb lazy" data-original="{{thumb}}"> |
13 | </a> | 14 | </a> |
@@ -5,8 +5,8 @@ | @@ -5,8 +5,8 @@ | ||
5 | <a class="swiper-slide" href="{{url}}"> | 5 | <a class="swiper-slide" href="{{url}}"> |
6 | <img class="swiper-lazy img-box" data-src="{{thumb}}"> | 6 | <img class="swiper-lazy img-box" data-src="{{thumb}}"> |
7 | <div class="price"> | 7 | <div class="price"> |
8 | - <span class="sale-price {{^price}}no-price{{/price}}">¥{{salePrice}}</span> | ||
9 | - {{#price}}<span class="old-price">¥{{.}}</span>{{/price}} | 8 | + <span class="sale-price {{^price}}no-price{{/price}}">¥{{salePrice}}</span> |
9 | + {{#price}}<span class="old-price">¥{{.}}</span>{{/price}} | ||
10 | </div> | 10 | </div> |
11 | <div class="swiper-lazy-preloader"></div> | 11 | <div class="swiper-lazy-preloader"></div> |
12 | </a> | 12 | </a> |
-
Please register or login to post a comment