123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147 |
- <?php /* Smarty version 2.6.17, created on 2018-05-28 13:08:47
- compiled from events_invitation.html */ ?>
- <?php $_smarty_tpl_vars = $this->_tpl_vars;
- $this->_smarty_include(array('smarty_include_tpl_file' => "header.html", 'smarty_include_vars' => array()));
- $this->_tpl_vars = $_smarty_tpl_vars;
- unset($_smarty_tpl_vars);
- ?>
- <!--公用标题居中显示-->
- <?php $_smarty_tpl_vars = $this->_tpl_vars;
- $this->_smarty_include(array('smarty_include_tpl_file' => "common_header.html", 'smarty_include_vars' => array()));
- $this->_tpl_vars = $_smarty_tpl_vars;
- unset($_smarty_tpl_vars);
- ?>
- <?php $_smarty_tpl_vars = $this->_tpl_vars;
- $this->_smarty_include(array('smarty_include_tpl_file' => "events_top.html", 'smarty_include_vars' => array()));
- $this->_tpl_vars = $_smarty_tpl_vars;
- unset($_smarty_tpl_vars);
- ?>
- <?php $_smarty_tpl_vars = $this->_tpl_vars;
- $this->_smarty_include(array('smarty_include_tpl_file' => "events_infos.html", 'smarty_include_vars' => array()));
- $this->_tpl_vars = $_smarty_tpl_vars;
- unset($_smarty_tpl_vars);
- ?>
- <!---->
- <!--公用提示背景遮罩层-->
- <div class="a_cover"></div>
- <div class="v_tips_box v_tips_box2" id="error_tips_box">
- <div class="v_close_btn" id="tips_close_btn"></div>
- <p class="tips_msg" id="error_msg">错误信息</p>
- </div>
- <!--公用提示样式二 begin-->
- <!--<div class="v_tips_box2" style="display:none">
- <p class="tips_img"><img src="<?php echo $this->_tpl_vars['codeInfo']['code_img_url']; ?>
- "></p>
- <p class="tips_txt_show">恭喜您获得<br><?php echo $this->_tpl_vars['codeInfo']['code_name']; ?>
- </p>
- <p class="go_tips_txt">请到"我的奖品"中查看</p>
- <p class="go_tips_btn">
- <a href="<?php echo $this->_tpl_vars['giftsUrl']; ?>
- " class="submit_btn_style">查看奖品</a>
- </p>
- </div>-->
- <!--公用提示样式二 end-->
- <script>
- var seconds = 2000;
- function showNewTipsBox(msg){
- $('.a_cover').fadeOut(200);
- $(".v_tips_box").fadeOut(200);
- $(".tips_msg").html(msg);
- $(".v_tips_box").fadeIn(200);
- $('.a_cover').fadeIn(200);
- if(goUrl){
- setInterval("go_page();",seconds+100);
- }
- }
- $("#tips_close_btn").on('click', function(){
- $(".v_tips_box,.a_cover").hide();
- });
- var goUrl = '';
- function go_page(){
- location.href = goUrl;
- }
- KISSY.use('node, io', function (S, Node, IO) {
-
- //视频自适应
- var screenWidth = $(window).width();
- var baseWidth = 510;
- var video_scale = screenWidth / baseWidth;
- $(".video_iframe").each(function () {
- var new_width = $(this).width() * video_scale;
- $(this).width(new_width - 20);
- var new_height = $(this).height() * video_scale;
- $(this).height(new_height - 20);
- });
-
- IO.on("send",function(){
- //$(".a_cover").css("opacity", 0);
- //showTipsBox('<i class="fa fa-spinner fa-pulse"></i>', true);
- });
-
-
- IO.on("complete",function(){
- //$(".v_tips_box").hide();
- });
-
- $('#common_submit_btn').on('click', function () {
- goUrl = '';
- var formData = IO.serialize('#ff');
- IO.post('<?php echo $this->_tpl_vars['web_cfg']['domain']; ?>
- /?c=EventsInvitation&a=sub&events_id=<?php echo $this->_tpl_vars['info']['id']; ?>
- '
- , formData
- , function (data) {
- if (data.ok) {
- toast('提交成功,请等待管理员审核', 1);
- return;
- var formsId = data.msg;
- location.href = "<?php echo $this->_tpl_vars['web_cfg']['domain']; ?>
- /?c=EventsInvitation&a=Qrcode&events_id=<?php echo $this->_tpl_vars['info']['id']; ?>
- &formsId="+formsId;
- } else {
- if(data.msg.url){
- goUrl = '<?php echo $this->_tpl_vars['loginUrl']; ?>
- ';
- //showTipsBox('本活需登录后才可以参与');
- toast('本活动需登录后才可以参与', 1);
- return false;
- }
- //showTipsBox(data.msg);
- toast(data.msg, 1)
- }
- }
- , 'json'
- );
- return false;
- });
-
- // 提示
- function showTipsBox(msg, isSend){
- $(".tips_msg").html(msg);
- if (isSend) {
- $("#tips_close_btn").hide();
- $("#error_tips_box").fadeIn();
- } else {
- $("#tips_close_btn").show();
- $("#error_tips_box").delay(2000).fadeOut();
- }
- }
- });
- </script>
- <?php $_smarty_tpl_vars = $this->_tpl_vars;
- $this->_smarty_include(array('smarty_include_tpl_file' => "bottom.html", 'smarty_include_vars' => array()));
- $this->_tpl_vars = $_smarty_tpl_vars;
- unset($_smarty_tpl_vars);
- ?>
|