Commit 19c700cf by zhangheng

y

parent 7f35694c
...@@ -13,6 +13,52 @@ $(document).ready(function () { ...@@ -13,6 +13,52 @@ $(document).ready(function () {
this.css('z-index', window['max_zindex']); this.css('z-index', window['max_zindex']);
this.show(); this.show();
}; };
var prize_lock = true;
$('.btn-prize').on(clickEvent, function () {
if (!prize_lock) {
return;
}
$('.text_').html('抽奖中,<br>莫捉急~');
$('.page_checking').show();
prize_lock = false;
$.ajax({
url: '/index/get_prize',
type: 'post',
data: {
'photo_url':$('.h-b').attr('src')
},
success: function (resp) {
setTimeout(function () {
prize_lock = true;
$('.page-s-c').hide();
$('.page_checking').hide();
if (resp.errcode == 0) {
if (resp.data.prize_type == 0) {
$('.page-no-prize').show();
}else {
$('.page-prize').show();
if(resp.data.info_type==0 || resp.data.info_type==2){
$('.btn-submit').show();
}else {
$('.page-prize input').attr('disabled','disabled');
$('.btn-submit').addClass('lock').show();
$('.name').val(resp.data.name);
$('.tel').val(resp.data.tel);
$('.address').val(resp.data.address);
}
if(resp.data.info_type==2 || resp.data.info_type==1){
my_notify('你已中过奖');
}
}
}
}, 2500);
}
});
});
$('.btn-close-two').on('click',function () { $('.btn-close-two').on('click',function () {
$('.page_home').hide(); $('.page_home').hide();
$('.dialog_game_rule').hide(); $('.dialog_game_rule').hide();
...@@ -216,7 +262,8 @@ $(document).ready(function () { ...@@ -216,7 +262,8 @@ $(document).ready(function () {
// var url =stage.toDataURL(); // var url =stage.toDataURL();
}); });
$('.btn-j-c').on('click',function () { $('.btn-j-c').on('click',function () {
$('.page_checking').show() $('.text_').html('海报合成中,<br>莫捉急~');
$('.page_checking').show();
var url =stage.toDataURL(); var url =stage.toDataURL();
mergeImage_two(url) mergeImage_two(url)
......
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 sign in to comment