Commit 480ea2e4 by doszhang

dos

parent f53f69ca
...@@ -52,6 +52,7 @@ preloadimages(preloadImageList, function () { ...@@ -52,6 +52,7 @@ preloadimages(preloadImageList, function () {
// $('input[name=customize]').attr('placeholder','输入自定义文字(仅限四个字)').attr('maxlength','4'); // $('input[name=customize]').attr('placeholder','输入自定义文字(仅限四个字)').attr('maxlength','4');
$('input[name=tel]').attr('type','tel'); $('input[name=tel]').attr('type','tel');
$('input[name=tel]').attr('maxlength',11); $('input[name=tel]').attr('maxlength',11);
$('.video-block').append('<video class="video" src="" x-webkit-airplay="allow" playsinline webkit-playsinline x-webkit-airplay="true" webkit-playsinline="true" ><video>');
$('.page1').show(); $('.page1').show();
...@@ -84,7 +85,9 @@ function backToMap () { ...@@ -84,7 +85,9 @@ function backToMap () {
function handleCityClick (event) { function handleCityClick (event) {
//播放哈尔滨视频 //播放哈尔滨视频
$('.video').attr('src', '../media/1.mp4');
$('.video')[0].play();
$('.video-block').show();
//播放结束后跳转抽奖 //播放结束后跳转抽奖
//奖品请求后跳转页面 //奖品请求后跳转页面
...@@ -110,6 +113,7 @@ function showPrize (types) { ...@@ -110,6 +113,7 @@ function showPrize (types) {
//1 视频月卡 //1 视频月卡
//2 话费 //2 话费
//3 电影票 //3 电影票
//0 未中奖
$('.prize-page .prize').hide(); $('.prize-page .prize').hide();
if (types > 0) { if (types > 0) {
$('.prize-page .prize' + types).show(); $('.prize-page .prize' + types).show();
......
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