Authored by liangxs

领券修改

26.5 KB | W: | H:

31.8 KB | W: | H:

  • 2-up
  • Swipe
  • Onion skin
@@ -6,17 +6,19 @@ var $receive = $('.coupon-right-reBox'); @@ -6,17 +6,19 @@ var $receive = $('.coupon-right-reBox');
6 var $mask = $('.coupon-mask'); 6 var $mask = $('.coupon-mask');
7 var $message = $('.coupon-message'); 7 var $message = $('.coupon-message');
8 var $tooltip = $('.coupon-tooltip'); 8 var $tooltip = $('.coupon-tooltip');
  9 +var $right = $('.coupon-right-reBox');
9 10
10 -$receive.on('touchend',function(){ 11 +$receive.on('touchend',function(){console.log('s');
11 $.ajax({ 12 $.ajax({
12 url:'/coupon/receiveCoupon', 13 url:'/coupon/receiveCoupon',
13 dataType:'json', 14 dataType:'json',
14 success:function(data){ 15 success:function(data){
15 - if (data['noLogin'] !== true) { 16 + if (data['noLogin'] === true) {
16 var msg=data.msg; 17 var msg=data.msg;
17 var status=data.status; 18 var status=data.status;
18 if(!status){ 19 if(!status){
19 $tooltip.show(); 20 $tooltip.show();
  21 + $right.css({"background":"url('http://static.dev.yohobuy.com/img/test/received.png')","background-repeat:":"no-repeat","background-size":"100%"});
20 setTimeout(function(){ 22 setTimeout(function(){
21 $tooltip.hide(); 23 $tooltip.hide();
22 },3000); 24 },3000);
1 .coupon-floor { 1 .coupon-floor {
  2 + float: left;
  3 +
2 .coupon-title { 4 .coupon-title {
3 background-color: #fff; 5 background-color: #fff;
4 text-align: center; 6 text-align: center;
@@ -25,6 +27,9 @@ @@ -25,6 +27,9 @@
25 width: 143rem/$pxConvertRem; 27 width: 143rem/$pxConvertRem;
26 text-align: center; 28 text-align: center;
27 height: 180rem/$pxConvertRem; 29 height: 180rem/$pxConvertRem;
  30 + background-size: 100%;
  31 + background-repeat: no-repeat;
  32 + // background: url("http://static.dev.yohobuy.com/img/test/received.png");
28 33
29 .coupon-right-reBox { 34 .coupon-right-reBox {
30 height: 100%; 35 height: 100%;
@@ -3,8 +3,10 @@ @@ -3,8 +3,10 @@
3 {{#if isCoupon}} 3 {{#if isCoupon}}
4 {{# list}} 4 {{# list}}
5 <div class="coupon-floor"> 5 <div class="coupon-floor">
6 - <div class="coupon-title"> 6 + {{#if title}}
  7 + <div class="coupon-title">{{title}}
7 </div> 8 </div>
  9 + {{/if}}
8 <div class="coupon-box" style="background-image: url('http://static.dev.yohobuy.com/img/test/coupon.png')"> 10 <div class="coupon-box" style="background-image: url('http://static.dev.yohobuy.com/img/test/coupon.png')">
9 {{#if image.src}} 11 {{#if image.src}}
10 <a href="{{goShopping}}"> 12 <a href="{{goShopping}}">