Commit 1cd28c12 authored by Mac's avatar Mac

修改抢购成功之后的样式

parent 3c089c3f
...@@ -363,6 +363,7 @@ ...@@ -363,6 +363,7 @@
} else { } else {
$('.img_btn p').html('去使用'); $('.img_btn p').html('去使用');
$(".received_img").css('display', "block"); $(".received_img").css('display', "block");
$('.img_btn').css("background-image", "url(../images/buy_btn.png)");
} }
} else { } else {
......
...@@ -170,6 +170,20 @@ $.fn.dataStatistics = function(options) { ...@@ -170,6 +170,20 @@ $.fn.dataStatistics = function(options) {
}else { }else {
run(num) run(num)
} }
}else if(num< 0){
$('.digit_set').empty()
clearInterval(timer2);
$('.dataStatistics').dataStatistics({
max: nownumber,
min: nownumber,
len: 4,
add: true,
price: res.data.redemptionPrice,
couponId: res.data.couponId,
platform: options.platform,
login:options.login,
count: res.data.count, //判断是否可以抢购 0为不可以
}); //刚进入页面不执行动画
} }
if (nownumber == 0) { if (nownumber == 0) {
...@@ -207,8 +221,7 @@ $.fn.dataStatistics = function(options) { ...@@ -207,8 +221,7 @@ $.fn.dataStatistics = function(options) {
} else { } else {
$(".received_img").css('display', "block"); $(".received_img").css('display', "block");
$('.img_btn p').html('去使用') $('.img_btn p').html('去使用')
$('.img_btn').css("background-image", "url(../images/buy_btn.png)");
} }
} else { } else {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment