Authored by 王水玲

领券中心修改

@@ -15,6 +15,9 @@ $receive.on('click', function() { @@ -15,6 +15,9 @@ $receive.on('click', function() {
15 15
16 $.ajax({ 16 $.ajax({
17 url: '/coupon/receiveCoupon', 17 url: '/coupon/receiveCoupon',
  18 + data: {
  19 + couponID: $curDom.parents('.coupon-floor').attr('coupon-id')
  20 + },
18 dataType: 'json', 21 dataType: 'json',
19 success: function(data) { 22 success: function(data) {
20 var msg = data.msg, 23 var msg = data.msg,
1 {{>layout/header}} 1 {{>layout/header}}
2 <div class="coupon-area"> 2 <div class="coupon-area">
3 -{{# content}}  
4 -  
5 -{{#if isSingleImage}}  
6 - <a href="{{url}}"><img src="{{src}}" class="just-img" /></a>  
7 -{{/if}}  
8 -{{#if isCarouselBanner}}  
9 - {{> home/banner_top}}  
10 -{{/if}}  
11 -{{#if isCoupon}}  
12 -<div class="coupon-floor">  
13 - {{#if showFloorTitle}}  
14 - <div class="floor-title">  
15 - {{floorTitle}}  
16 - </div>  
17 - {{/if}}  
18 - <div class="floor-main" style="background-image: url({{image.src}});">  
19 - <a href="{{image.url}}" class="main-left"></a>  
20 - {{#if isGet}}  
21 - <div class="main-right-receive">  
22 - <span class="on-receive"></span>  
23 - </div>  
24 - <a href="{{image.url}}" class="main-right-use" style="display: none">  
25 - <span class="received"></span>  
26 - </a> 3 + {{# content}}
  4 + {{#if isSingleImage}}
  5 + <a href="{{url}}"><img src="{{src}}" class="just-img" /></a>
27 {{/if}} 6 {{/if}}
28 - {{#if isGeted}}  
29 - <a href="{{image.url}}" class="main-right-use">  
30 - <span class="received"></span>  
31 - </a> 7 + {{#if isCarouselBanner}}
  8 + {{> home/banner_top}}
32 {{/if}} 9 {{/if}}
33 - {{#if isZero}}  
34 - <a href="{{image.url}}" class="main-right-go">  
35 - <span class="zero"></span>  
36 - </a> 10 + {{#if isCoupon}}
  11 + <div class="coupon-floor" coupon-id="{{couponID}}">
  12 + {{#if showFloorTitle}}
  13 + <div class="floor-title">
  14 + {{floorTitle}}
  15 + </div>
  16 + {{/if}}
  17 + <div class="floor-main" style="background-image: url({{image.src}});">
  18 + <a href="{{image.url}}" class="main-left"></a>
  19 + {{#if isGet}}
  20 + <div class="main-right-receive">
  21 + <span class="on-receive"></span>
  22 + </div>
  23 + <a href="{{image.url}}" class="main-right-use" style="display: none">
  24 + <span class="received"></span>
  25 + </a>
  26 + {{/if}}
  27 + {{#if isGeted}}
  28 + <a href="{{image.url}}" class="main-right-use">
  29 + <span class="received"></span>
  30 + </a>
  31 + {{/if}}
  32 + {{#if isZero}}
  33 + <a href="{{image.url}}" class="main-right-go">
  34 + <span class="zero"></span>
  35 + </a>
  36 + {{/if}}
  37 + </div>
  38 + </div>
37 {{/if}} 39 {{/if}}
38 - </div>  
39 -</div>  
40 -{{/if}}  
41 -{{/ content}} 40 + {{/ content}}
42 </div> 41 </div>
43 <div class="floor-mask"></div> 42 <div class="floor-mask"></div>
44 <div class="floor-message"> 43 <div class="floor-message">