|
@@ -383,14 +383,14 @@
|
|
</div>
|
|
</div>
|
|
<div class="zz">
|
|
<div class="zz">
|
|
<img src="https://cdn-novel.iycdm.com/h5/activity-2019-05-30/point.png" />
|
|
<img src="https://cdn-novel.iycdm.com/h5/activity-2019-05-30/point.png" />
|
|
- <span>剩余{{$count}} 次</span>
|
|
|
|
|
|
+ <span id="left_count">剩余{{$count}} 次</span>
|
|
</div>
|
|
</div>
|
|
<div class="button">
|
|
<div class="button">
|
|
<img src="https://cdn-novel.iycdm.com/h5/activity-2019-05-30/button.png" />
|
|
<img src="https://cdn-novel.iycdm.com/h5/activity-2019-05-30/button.png" />
|
|
@if($count >0)
|
|
@if($count >0)
|
|
- <div>立即抽奖</div>
|
|
|
|
|
|
+ <div id="lottery_button">立即抽奖</div>
|
|
@else
|
|
@else
|
|
- <div>充值后才可抽奖</div>
|
|
|
|
|
|
+ <div id="lottery_button">充值后才可抽奖</div>
|
|
@endif
|
|
@endif
|
|
|
|
|
|
</div>
|
|
</div>
|
|
@@ -582,6 +582,10 @@
|
|
//旋转完毕后弹窗
|
|
//旋转完毕后弹窗
|
|
console.log('over');
|
|
console.log('over');
|
|
count--;
|
|
count--;
|
|
|
|
+ $('#left_count').innerHTML('剩余'+count+'次');
|
|
|
|
+ if(count<=0){
|
|
|
|
+ $('#lottery_button').innerHTML('充值后才可抽奖');
|
|
|
|
+ }
|
|
canClick = true;
|
|
canClick = true;
|
|
}, 5000);
|
|
}, 5000);
|
|
}
|
|
}
|