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');
var $mask = $('.coupon-mask');
var $message = $('.coupon-message');
var $tooltip = $('.coupon-tooltip');
var $right = $('.coupon-right-reBox');
$receive.on('touchend',function(){
$receive.on('touchend',function(){console.log('s');
$.ajax({
url:'/coupon/receiveCoupon',
dataType:'json',
success:function(data){
if (data['noLogin'] !== true) {
if (data['noLogin'] === true) {
var msg=data.msg;
var status=data.status;
if(!status){
$tooltip.show();
$right.css({"background":"url('http://static.dev.yohobuy.com/img/test/received.png')","background-repeat:":"no-repeat","background-size":"100%"});
setTimeout(function(){
$tooltip.hide();
},3000);
... ...
.coupon-floor {
float: left;
.coupon-title {
background-color: #fff;
text-align: center;
... ... @@ -25,6 +27,9 @@
width: 143rem/$pxConvertRem;
text-align: center;
height: 180rem/$pxConvertRem;
background-size: 100%;
background-repeat: no-repeat;
// background: url("http://static.dev.yohobuy.com/img/test/received.png");
.coupon-right-reBox {
height: 100%;
... ...
{{>layout/header}}
{{# floor}}
{{#if isCoupon}}
{{# list}}
{{# list}}
<div class="coupon-floor">
<div class="coupon-title">
{{#if title}}
<div class="coupon-title">{{title}}
</div>
{{/if}}
<div class="coupon-box" style="background-image: url('http://static.dev.yohobuy.com/img/test/coupon.png')">
{{#if image.src}}
<a href="{{goShopping}}">
... ...