Commit 8ea41328 by doszhang

dos

parent 67cc9f3e
...@@ -99,7 +99,7 @@ $(document).ready(function () { ...@@ -99,7 +99,7 @@ $(document).ready(function () {
//提交手机号 //提交手机号
$('.prize-page .btn-submit').on('click',submitTel); $('.prize-page .btn-submit').on('click',submitTel);
//点击视频跳转抽奖 //点击视频跳转抽奖
$('.video-block').on('click',tryPrize); $('.bj-img').on('click',tryPrize);
}); });
function submitTel () { function submitTel () {
...@@ -145,6 +145,8 @@ function backToMap () { ...@@ -145,6 +145,8 @@ function backToMap () {
} }
function videoEnd () { function videoEnd () {
$('.video-block').hide();
$('.bj-img').show();
allowPrize = true; allowPrize = true;
video.removeEventListener('ended', videoEnd); video.removeEventListener('ended', videoEnd);
} }
...@@ -153,7 +155,6 @@ function tryPrize () { ...@@ -153,7 +155,6 @@ function tryPrize () {
if(allowPrize) if(allowPrize)
{ {
allowPrize = false; allowPrize = false;
//$('.video-block').hide();
if(window.type == 0) if(window.type == 0)
{ {
$.ajax({ $.ajax({
......
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