Commit dcc7a93b by doszhang

Merge branch 'master' into release

parents 478a92ad cfe921c3
...@@ -20,15 +20,20 @@ class IndexController extends Controller ...@@ -20,15 +20,20 @@ class IndexController extends Controller
public function index() public function index()
{ {
session_start(); session_start();
$_SESSION['joinTime'] = time(); $_SESSION['joinTime'] = time();
$num = M('num')->where('id=1')->select(); $num = M('num')->where('id=1')->select();
$num = $num[0]['num']; $num = $num[0]['num'];
$this->assign('num',$num); $this->assign('num',$num);
$this->display(); $this->display();
} }
public function addNum(){ public function addNum(){
if(time() > 1584720000)
{
header("HTTP/1.0 404 Not Found");
exit;
}
$referer = $_SERVER['HTTP_REFERER']; $referer = $_SERVER['HTTP_REFERER'];
$refererInfo = parse_url( $referer ); $refererInfo = parse_url( $referer );
if( $refererInfo['host'] != $_SERVER['HTTP_HOST'] ) if( $refererInfo['host'] != $_SERVER['HTTP_HOST'] )
......
...@@ -12,7 +12,7 @@ ...@@ -12,7 +12,7 @@
// body 主题部分 // body 主题部分
{:block name="body"} {:block name="body"}
<div class="page-22 page1 page animated"><div class="res-248 bg"></div><div class="res-286 input-wrapper"><div class="res-353"></div><div class="res-354 business"><input name="business" type="text" /></div><div class="res-355"></div><div class="res-356 name"><input name="name" type="text" /></div><div class="res-357 ID"></div><div class="res-358 btn-upload"><input name="btn-upload" type="file" accept="image/*" /></div><div class="res-268 music play"></div><div class="res-269 hide music stop"></div></div><div class="res-255 bottom"></div><div class="res-256 btn-go"></div><div class="res-257"></div><div class="res-263 hide regulate-block"><div class="res-264 hd"></div><div class="res-258"></div><div class="res-259"></div><div class="res-266 upload-canvas-block"></div><div class="res-265 black"></div><div class="res-260 btn-retry"></div><div class="res-261 btn-ok"></div><div class="res-361"></div></div><div class="res-262 logo"></div><div class="res-267 num"></div></div><div class="page-23 poster-page page animated"><div class="res-270 bg"></div><div class="res-359"></div><div class="res-274 poster-canvas"></div><div class="res-275 hide music stop"></div><div class="res-276 music play"></div><div class="res-360"><div class="res-272 btn-backtohome"></div><div class="res-271 btn-change"></div></div></div><div class="page-25 loading-page page animated"><div class="res-290 bg"></div><div class="res-291 progress"><div class="res-288"></div></div><div class="res-289 plant"></div><div class="res-292 loading-text"></div></div> <div class="page-22 page1 page animated"><div class="res-248 bg"></div><div class="res-286 input-wrapper"><div class="res-353"></div><div class="res-354 business"><input name="business" type="text" /></div><div class="res-355"></div><div class="res-356 name"><input name="name" type="text" /></div><div class="res-357 ID"></div><div class="res-358 btn-upload"><input name="btn-upload" type="file" accept="image/*" /></div><div class="res-268 music play"></div><div class="res-269 hide music stop"></div></div><div class="res-255 bottom"></div><div class="res-256 btn-go"></div><div class="res-257"></div><div class="res-263 hide regulate-block"><div class="res-264 hd"></div><div class="res-258"></div><div class="res-259"></div><div class="res-266 upload-canvas-block"></div><div class="res-265 black"></div><div class="res-260 btn-retry"></div><div class="res-261 btn-ok"></div><div class="res-361"></div></div><div class="res-262 logo"></div><div class="res-267 num"></div></div><div class="page-23 poster-page page animated"><div class="res-270 bg"></div><div class="res-359"></div><div class="res-274 poster-canvas"></div><div class="res-275 hide music stop"></div><div class="res-276 music play"></div><div class="res-360"><div class="res-272 btn-backtohome"></div><div class="res-271 btn-change"></div></div></div><div class="page-25 loading-page page animated"><div class="res-290 bg"></div><div class="res-291 progress"><div class="res-288"></div></div><div class="res-289 plant"></div><div class="res-292 loading-text"></div></div><div class="page-30 end-page page animated"><div class="res-366 hd"></div><div class="res-367"></div></div>
{:/block} {:/block}
......
...@@ -71,7 +71,7 @@ ...@@ -71,7 +71,7 @@
} }
</script> </script>
<title>{:block name='title'}责任使命,我愿许下承诺{:/block}</title> <title>{:block name='title'}责任使命,我愿许下承诺{:/block}</title>
{:if $projectId && strpos( $smarty.server.HTTP_HOST , 'dev.izhida.cn') !== false} {:if false && $projectId && strpos( $smarty.server.HTTP_HOST , 'dev.izhida.cn') !== false}
<link rel="stylesheet" type="text/css" href="http://projectx.weitoy.com/api/css/rem/{:$rem}/id/{:$projectId}?version=1.0.1" <link rel="stylesheet" type="text/css" href="http://projectx.weitoy.com/api/css/rem/{:$rem}/id/{:$projectId}?version=1.0.1"
media="all" /> media="all" />
{:else} {:else}
...@@ -88,7 +88,7 @@ ...@@ -88,7 +88,7 @@
<audio src="__CDN__/media/2.mp3" preload="auto" loop="loop" id="music" style="display:none"></audio> <audio src="__CDN__/media/2.mp3" preload="auto" loop="loop" id="music" style="display:none"></audio>
<div class="wrap"> <div class="wrap">
<div class="wrap-inner"> <div class="wrap-inner">
{:if $projectId && strpos( $smarty.server.HTTP_HOST , 'dev.izhida.cn') !== false} {:if false && $projectId && strpos( $smarty.server.HTTP_HOST , 'dev.izhida.cn') !== false}
{:"http://projectx.weitoy.com/api/html/id/`$projectId`"|file_get_contents} {:"http://projectx.weitoy.com/api/html/id/`$projectId`"|file_get_contents}
{:else} {:else}
{:block name='body'}{:/block} {:block name='body'}{:/block}
......
...@@ -142,7 +142,7 @@ input[name=business] { ...@@ -142,7 +142,7 @@ input[name=business] {
} }
.page1 .regulate-block { .page1 .regulate-block {
z-index: 1; z-index: 12;
} }
.poster-canvas { .poster-canvas {
...@@ -158,4 +158,14 @@ input[name=business] { ...@@ -158,4 +158,14 @@ input[name=business] {
width: 100%; width: 100%;
height: 100%; height: 100%;
z-index: 1; z-index: 1;
}
.logo {
z-index: 11;
}
.end-page {
position: absolute;
top: 0;
z-index: 10;
} }
\ No newline at end of file
body{margin:0;padding:0;-webkit-text-size-adjust:none;}.hide{display:none;}.page{width:640px;height:1238px;position:relative;display:none;overflow:hidden;margin:0 auto;}.page-22{display:block}input,textarea,img{border:0;top:0;left:0;width:100%;height:100%;margin:0;padding:0;}input,textarea{background:transparent;}input[type=file]{opacity:0;}.res-248{position:absolute;opacity:1;width:640px;height:1238px;background: url(../images/999_1583913010.jpg)left top no-repeat;}.res-263{position:absolute;width:640px;height:1238px;}.res-353{position:absolute;opacity:1;left:23px;top:4px;width:365px;height:49px;background: url(../images/4782_1583994647.png)left top no-repeat;}.res-354{position:absolute;opacity:1;left:307px;top:57px;width:178px;height:38px;background: url(../images/1067_1583994644.png)left top no-repeat;}.res-355{position:absolute;opacity:1;left:251px;top:63px;width:46px;height:23px;background: url(../images/7182_1583994644.png)left top no-repeat;}.res-356{position:absolute;opacity:1;left:59px;top:57px;width:179px;height:38px;background: url(../images/1067_1583994644.png)left top no-repeat;}.res-357{position:absolute;opacity:1;left:23px;top:63px;width:28px;height:26px;background: url(../images/8733_1583994643.png)left top no-repeat;}.res-358{position:absolute;opacity:1;left:498px;top:1px;width:94px;height:95px;background: url(../images/6962_1583994643.png)left top no-repeat;}.res-255{position:absolute;opacity:1;left:113px;top:954px;width:412px;height:135px;background: url(../images/601_1583913017.png)left top no-repeat;}.res-256{position:absolute;opacity:1;left:205px;top:878px;width:226px;height:58px;background: url(../images/9225_1583913017.png)left top no-repeat;}.res-257{position:absolute;opacity:1;left:433px;top:349px;width:134px;height:134px;background: url(../images/7169_1583913018.png)left top no-repeat;}.res-258{position:absolute;opacity:1;left:79px;top:345px;width:487px;height:485px;background: url(../images/4642_1583913022.png)left top no-repeat;}.res-259{position:absolute;opacity:1;left:190px;top:454px;width:259px;height:259px;background: url(../images/3272_1583913023.png)left top no-repeat;}.res-260{position:absolute;opacity:1;left:120px;top:808px;width:194px;height:51px;background: url(../images/6301_1583913024.png)left top no-repeat;}.res-261{position:absolute;opacity:1;left:322px;top:808px;width:194px;height:51px;background: url(../images/4553_1583913024.png)left top no-repeat;}.res-262{position:absolute;opacity:1;left:18px;top:148px;width:599px;height:36px;background: url(../images/7295_1583913025.png)left top no-repeat;}.res-264{position:absolute;width:640px;height:1238px;}.res-265{position:absolute;left:190px;top:455px;width:259px;height:258px;background: url(../images/7700_1583913432.png)left top no-repeat;}.res-266{position:absolute;left:190px;top:454px;width:259px;height:259px;}.res-267{position:absolute;top:821px;width:640px;height:40px;}.res-268{position:absolute;left:594px;top:-23px;width:41px;height:41px;background: url(../images/9939_1583913431.png)left top no-repeat;}.res-269{position:absolute;left:594px;top:-23px;width:41px;height:41px;background: url(../images/4395_1583913430.png)left top no-repeat;}.res-270{position:absolute;opacity:1;width:640px;height:1238px;background: url(../images/9470_1583913460.jpg)left top no-repeat;}.res-271{position:absolute;opacity:1;left:44px;top:7px;width:181px;height:51px;background: url(../images/7536_1583913461.png)left top no-repeat;}.res-272{position:absolute;opacity:1;left:262px;top:7px;width:181px;height:51px;background: url(../images/7785_1583913463.png)left top no-repeat;}.res-359{position:absolute;opacity:1;left:66px;top:995px;width:514px;height:26px;background: url(../images/6143_1583995174.png)left top no-repeat;}.animated .res-359{-webkit-animation-name:fadeInUp;-webkit-animation-duration:1.5s;-webkit-animation-delay:0s;-webkit-animation-timing-function:ease-out;-webkit-animation-iteration-count:infinite;-webkit-animation-fill-mode:backwards;}.res-274{position:absolute;left:107px;top:152px;width:426px;height:820px;}.res-275{position:absolute;left:569px;top:110px;width:41px;height:41px;background: url(../images/4395_1583913430.png)left top no-repeat;}.res-276{position:absolute;left:569px;top:110px;width:41px;height:41px;background: url(../images/9939_1583913431.png)left top no-repeat;}.res-286{position:absolute;left:NaNpx;top:209px;width:641px;height:97px;}.res-288{position:absolute;opacity:1;width:410px;height:83px;background: url(../images/4772_1583929624.png)left top no-repeat;}.res-289{position:absolute;opacity:1;left:418px;top:533px;width:115px;height:89px;background: url(../images/5142_1583929625.png)left top no-repeat;}.res-290{position:absolute;width:640px;height:1238px;}.res-291{position:absolute;left:109px;top:557px;width:368px;height:80px;}.res-292{position:absolute;top:652px;width:640px;height:20px;}.res-360{position:absolute;left:78px;top:1038px;width:486px;height:88px;}.res-361{position:absolute;left:91px;top:915px;width:486px;height:55px;background: url(../images/1427_1584072728.png)left top no-repeat;}.animated .res-361{-webkit-animation-name:fadeInUp;-webkit-animation-duration:3s;-webkit-animation-delay:0s;-webkit-animation-timing-function:ease-out;-webkit-animation-iteration-count:infinite;-webkit-animation-fill-mode:backwards;}@-webkit-keyframes fadeInUp{from{opacity:0;-webkit-transform:translate3d(0,100%,0);transform:translate3d(0,100%,0)}100%{opacity:1;-webkit-transform:none;transform:none}}@keyframes fadeInUp{from{opacity:0;-webkit-transform:translate3d(0,100%,0);transform:translate3d(0,100%,0)}100%{opacity:1;-webkit-transform:none;transform:none}} body{margin:0;padding:0;-webkit-text-size-adjust:none;}.hide{display:none;}.page{width:640px;height:1238px;position:relative;display:none;overflow:hidden;margin:0 auto;}.page-22{display:block}input,textarea,img{border:0;top:0;left:0;width:100%;height:100%;margin:0;padding:0;}input,textarea{background:transparent;}input[type=file]{opacity:0;}.res-248{position:absolute;opacity:1;width:640px;height:1238px;background: url(../images/999_1583913010.jpg)left top no-repeat;}.res-263{position:absolute;width:640px;height:1238px;}.res-353{position:absolute;opacity:1;left:23px;top:4px;width:365px;height:49px;background: url(../images/4782_1583994647.png)left top no-repeat;}.res-354{position:absolute;opacity:1;left:307px;top:57px;width:178px;height:38px;background: url(../images/1067_1583994644.png)left top no-repeat;}.res-355{position:absolute;opacity:1;left:251px;top:63px;width:46px;height:23px;background: url(../images/7182_1583994644.png)left top no-repeat;}.res-356{position:absolute;opacity:1;left:59px;top:57px;width:179px;height:38px;background: url(../images/1067_1583994644.png)left top no-repeat;}.res-357{position:absolute;opacity:1;left:23px;top:63px;width:28px;height:26px;background: url(../images/8733_1583994643.png)left top no-repeat;}.res-358{position:absolute;opacity:1;left:498px;top:1px;width:94px;height:95px;background: url(../images/6962_1583994643.png)left top no-repeat;}.res-255{position:absolute;opacity:1;left:113px;top:954px;width:412px;height:135px;background: url(../images/601_1583913017.png)left top no-repeat;}.res-256{position:absolute;opacity:1;left:205px;top:878px;width:226px;height:58px;background: url(../images/9225_1583913017.png)left top no-repeat;}.res-257{position:absolute;opacity:1;left:433px;top:349px;width:134px;height:134px;background: url(../images/7169_1583913018.png)left top no-repeat;}.res-258{position:absolute;opacity:1;left:79px;top:345px;width:487px;height:485px;background: url(../images/4642_1583913022.png)left top no-repeat;}.res-259{position:absolute;opacity:1;left:190px;top:454px;width:259px;height:259px;background: url(../images/3272_1583913023.png)left top no-repeat;}.res-260{position:absolute;opacity:1;left:120px;top:808px;width:194px;height:51px;background: url(../images/6301_1583913024.png)left top no-repeat;}.res-261{position:absolute;opacity:1;left:322px;top:808px;width:194px;height:51px;background: url(../images/4553_1583913024.png)left top no-repeat;}.res-262{position:absolute;opacity:1;left:18px;top:148px;width:599px;height:36px;background: url(../images/7295_1583913025.png)left top no-repeat;}.res-264{position:absolute;width:640px;height:1238px;}.res-265{position:absolute;left:190px;top:455px;width:259px;height:258px;background: url(../images/7700_1583913432.png)left top no-repeat;}.res-266{position:absolute;left:190px;top:454px;width:259px;height:259px;}.res-267{position:absolute;top:821px;width:640px;height:40px;}.res-268{position:absolute;left:594px;top:-23px;width:41px;height:41px;background: url(../images/9939_1583913431.png)left top no-repeat;}.res-269{position:absolute;left:594px;top:-23px;width:41px;height:41px;background: url(../images/4395_1583913430.png)left top no-repeat;}.res-270{position:absolute;opacity:1;width:640px;height:1238px;background: url(../images/9470_1583913460.jpg)left top no-repeat;}.res-271{position:absolute;opacity:1;left:44px;top:7px;width:181px;height:51px;background: url(../images/7536_1583913461.png)left top no-repeat;}.res-272{position:absolute;opacity:1;left:262px;top:7px;width:181px;height:51px;background: url(../images/7785_1583913463.png)left top no-repeat;}.res-359{position:absolute;opacity:1;left:66px;top:995px;width:514px;height:26px;background: url(../images/6143_1583995174.png)left top no-repeat;}.animated .res-359{-webkit-animation-name:fadeInUp;-webkit-animation-duration:1.5s;-webkit-animation-delay:0s;-webkit-animation-timing-function:ease-out;-webkit-animation-iteration-count:infinite;-webkit-animation-fill-mode:backwards;}.res-274{position:absolute;left:107px;top:152px;width:426px;height:820px;}.res-275{position:absolute;left:569px;top:110px;width:41px;height:41px;background: url(../images/4395_1583913430.png)left top no-repeat;}.res-276{position:absolute;left:569px;top:110px;width:41px;height:41px;background: url(../images/9939_1583913431.png)left top no-repeat;}.res-286{position:absolute;left:NaNpx;top:209px;width:641px;height:97px;}.res-288{position:absolute;opacity:1;width:410px;height:83px;background: url(../images/4772_1583929624.png)left top no-repeat;}.res-289{position:absolute;opacity:1;left:418px;top:533px;width:115px;height:89px;background: url(../images/5142_1583929625.png)left top no-repeat;}.res-290{position:absolute;width:640px;height:1238px;}.res-291{position:absolute;left:109px;top:557px;width:368px;height:80px;}.res-292{position:absolute;top:652px;width:640px;height:20px;}.res-360{position:absolute;left:78px;top:1038px;width:486px;height:88px;}.res-361{position:absolute;left:91px;top:915px;width:486px;height:55px;background: url(../images/1427_1584072728.png)left top no-repeat;}.animated .res-361{-webkit-animation-name:fadeInUp;-webkit-animation-duration:3s;-webkit-animation-delay:0s;-webkit-animation-timing-function:ease-out;-webkit-animation-iteration-count:infinite;-webkit-animation-fill-mode:backwards;}.res-366{position:absolute;width:640px;height:1238px;}.res-367{position:absolute;left:79px;top:344px;width:489px;height:485px;background: url(../images/724_1584670876.png)left top no-repeat;}@-webkit-keyframes fadeInUp{from{opacity:0;-webkit-transform:translate3d(0,100%,0);transform:translate3d(0,100%,0)}100%{opacity:1;-webkit-transform:none;transform:none}}@keyframes fadeInUp{from{opacity:0;-webkit-transform:translate3d(0,100%,0);transform:translate3d(0,100%,0)}100%{opacity:1;-webkit-transform:none;transform:none}}
\ No newline at end of file \ No newline at end of file
...@@ -69,6 +69,7 @@ let noInfo = { ...@@ -69,6 +69,7 @@ let noInfo = {
let createPosterLock = false; let createPosterLock = false;
$('.loading-page').show(); $('.loading-page').show();
preloadimages(preloadImageList, function () { preloadimages(preloadImageList, function () {
let progress = 0.3; let progress = 0.3;
let timer = setInterval(function () { let timer = setInterval(function () {
if (progress < 1) { if (progress < 1) {
...@@ -77,13 +78,20 @@ preloadimages(preloadImageList, function () { ...@@ -77,13 +78,20 @@ preloadimages(preloadImageList, function () {
$('.loading-page .progress').css('width', 368 * progress + 'px'); $('.loading-page .progress').css('width', 368 * progress + 'px');
$('.loading-page .plant').css('transform', 'translateX(' + (-368 + (368 * progress)) + 'px)'); $('.loading-page .plant').css('transform', 'translateX(' + (-368 + (368 * progress)) + 'px)');
} else { } else {
clearInterval(timer); clearInterval(timer);
const timestamp = timest();
if (browser.versions.weixin) { if (browser.versions.weixin) {
let musicTime = setInterval(function () { let musicTime = setInterval(function () {
if ($('#music')[0].currentTime > 0) { if ($('#music')[0].currentTime > 0) {
initPage(); initPage();
$('.loading-page').hide(); $('.loading-page').hide();
$('.page1').show(); $('.page1').show();
if (timestamp > 1584720000) {
$('.end-page').show();
}
clearInterval(musicTime); clearInterval(musicTime);
} }
}, 100); }, 100);
...@@ -91,6 +99,9 @@ preloadimages(preloadImageList, function () { ...@@ -91,6 +99,9 @@ preloadimages(preloadImageList, function () {
initPage(); initPage();
$('.loading-page').hide(); $('.loading-page').hide();
$('.page1').show(); $('.page1').show();
if (timestamp > 1584720000) {
$('.end-page').show();
}
} }
} }
}, 60); }, 60);
...@@ -566,4 +577,10 @@ function checkIt(bind, maxNum) { ...@@ -566,4 +577,10 @@ function checkIt(bind, maxNum) {
} }
} }
return true; return true;
}
function timest() {
var tmp = Date.parse(new Date()).toString();
tmp = tmp.substr(0, 10);
return tmp;
} }
\ No newline at end of file
...@@ -8,7 +8,7 @@ ...@@ -8,7 +8,7 @@
// +---------------------------------------------------------------------- // +----------------------------------------------------------------------
// | Author: liu21st <liu21st@gmail.com> // | Author: liu21st <liu21st@gmail.com>
// +---------------------------------------------------------------------- // +----------------------------------------------------------------------
// die();
if(version_compare(PHP_VERSION,'5.3.0','<')) die('require PHP > 5.3.0 !'); if(version_compare(PHP_VERSION,'5.3.0','<')) die('require PHP > 5.3.0 !');
define('WEB_ROOT_PATH', realpath(dirname(__FILE__))); define('WEB_ROOT_PATH', realpath(dirname(__FILE__)));
......
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