Commit 7b6b3dbc by 张恒

j

parent bc829280
......@@ -82,6 +82,7 @@ class IndexController extends Controller
))->count();
if ($type == 1) {
if ($c >= 10) {
continue;
}
......
......@@ -51,7 +51,11 @@
<body ontouchmove="return false;">
<div id="container">
<div class="btn-prize" style="display: none">点击抽奖</div>
<div class="btn-prize" style="display: none">
点击抽奖
</div>
<div class="prize-type" style="display: none"></div>
</div>
<script>
......
......@@ -30,7 +30,6 @@ $(document).ready(function () {
}
$('.btn-prize').on('click',function () {
if(prize_lock==2){
my_notify('点击太快');
return;
}
btnPrize();
......@@ -38,6 +37,7 @@ $(document).ready(function () {
});
function btnPrize() {
prize_lock=2;
$('.btn-prize').text('抽奖中...');
$.ajax({
url: '/index/tryPrize',
type: 'post',
......@@ -51,9 +51,11 @@ function btnPrize() {
if (resp.data.prize ==0) {
my_notify(prize_word[rank])
}else{
$('.btn-prize').hide();
$('.prize-type').text('已中奖,请麻烦找官方登记信息').show();
}
}
$('.btn-prize').text('点击抽奖');
prize_lock=1;
},
error: function () {
......
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