...
|
...
|
@@ -201,7 +201,8 @@ orderHammer.on('tap', function(e) { |
|
|
|
|
|
$reaMask.data('orderId', id);
|
|
|
|
|
|
if ($cur.closest('.raffle-btn').length > 0) {
|
|
|
if ($cur.closest('.raffle-btn').length > 0 && !($cur.closest('.raffle-btn').hasClass("clicked"))) {
|
|
|
$cur.closest('.raffle-btn').addClass("clicked");
|
|
|
userId = $cur.closest('.raffle-btn').attr('data-uid');
|
|
|
orderCode = $cur.closest('.raffle-btn').attr('data-code');
|
|
|
$.ajax({
|
...
|
...
|
@@ -232,14 +233,11 @@ orderHammer.on('tap', function(e) { |
|
|
}
|
|
|
// 中奖
|
|
|
function lucky(data) {
|
|
|
var message = data.data.orderLotteryMessage;
|
|
|
var bgPic = data.data.prize.image;
|
|
|
$('.lucky').show();
|
|
|
$('.dia-c').show();
|
|
|
$diaMain.find('p').show();
|
|
|
var dia_h = $diaMain.height() / 2;
|
|
|
$diaMain.css('margin-top', '-' + dia_h + 'px');
|
|
|
$diaMain.find('.message').text(message);
|
|
|
$diaMain.find('.lucky').css("background-image","url(" + bgPic + ")");
|
|
|
}
|
|
|
// 未中奖
|
...
|
...
|
|