%%F1^F1B^F1BAA341%%events_invitation.html.php 4.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147
  1. <?php /* Smarty version 2.6.17, created on 2018-05-28 13:08:47
  2. compiled from events_invitation.html */ ?>
  3. <?php $_smarty_tpl_vars = $this->_tpl_vars;
  4. $this->_smarty_include(array('smarty_include_tpl_file' => "header.html", 'smarty_include_vars' => array()));
  5. $this->_tpl_vars = $_smarty_tpl_vars;
  6. unset($_smarty_tpl_vars);
  7. ?>
  8. <!--公用标题居中显示-->
  9. <?php $_smarty_tpl_vars = $this->_tpl_vars;
  10. $this->_smarty_include(array('smarty_include_tpl_file' => "common_header.html", 'smarty_include_vars' => array()));
  11. $this->_tpl_vars = $_smarty_tpl_vars;
  12. unset($_smarty_tpl_vars);
  13. ?>
  14. <?php $_smarty_tpl_vars = $this->_tpl_vars;
  15. $this->_smarty_include(array('smarty_include_tpl_file' => "events_top.html", 'smarty_include_vars' => array()));
  16. $this->_tpl_vars = $_smarty_tpl_vars;
  17. unset($_smarty_tpl_vars);
  18. ?>
  19. <?php $_smarty_tpl_vars = $this->_tpl_vars;
  20. $this->_smarty_include(array('smarty_include_tpl_file' => "events_infos.html", 'smarty_include_vars' => array()));
  21. $this->_tpl_vars = $_smarty_tpl_vars;
  22. unset($_smarty_tpl_vars);
  23. ?>
  24. <!---->
  25. <!--公用提示背景遮罩层-->
  26. <div class="a_cover"></div>
  27. <div class="v_tips_box v_tips_box2" id="error_tips_box">
  28. <div class="v_close_btn" id="tips_close_btn"></div>
  29. <p class="tips_msg" id="error_msg">错误信息</p>
  30. </div>
  31. <!--公用提示样式二 begin-->
  32. <!--<div class="v_tips_box2" style="display:none">
  33. <p class="tips_img"><img src="<?php echo $this->_tpl_vars['codeInfo']['code_img_url']; ?>
  34. "></p>
  35. <p class="tips_txt_show">恭喜您获得<br><?php echo $this->_tpl_vars['codeInfo']['code_name']; ?>
  36. </p>
  37. <p class="go_tips_txt">请到"我的奖品"中查看</p>
  38. <p class="go_tips_btn">
  39. <a href="<?php echo $this->_tpl_vars['giftsUrl']; ?>
  40. " class="submit_btn_style">查看奖品</a>
  41. </p>
  42. </div>-->
  43. <!--公用提示样式二 end-->
  44. <script>
  45. var seconds = 2000;
  46. function showNewTipsBox(msg){
  47. $('.a_cover').fadeOut(200);
  48. $(".v_tips_box").fadeOut(200);
  49. $(".tips_msg").html(msg);
  50. $(".v_tips_box").fadeIn(200);
  51. $('.a_cover').fadeIn(200);
  52. if(goUrl){
  53. setInterval("go_page();",seconds+100);
  54. }
  55. }
  56. $("#tips_close_btn").on('click', function(){
  57. $(".v_tips_box,.a_cover").hide();
  58. });
  59. var goUrl = '';
  60. function go_page(){
  61. location.href = goUrl;
  62. }
  63. KISSY.use('node, io', function (S, Node, IO) {
  64. //视频自适应
  65. var screenWidth = $(window).width();
  66. var baseWidth = 510;
  67. var video_scale = screenWidth / baseWidth;
  68. $(".video_iframe").each(function () {
  69. var new_width = $(this).width() * video_scale;
  70. $(this).width(new_width - 20);
  71. var new_height = $(this).height() * video_scale;
  72. $(this).height(new_height - 20);
  73. });
  74. IO.on("send",function(){
  75. //$(".a_cover").css("opacity", 0);
  76. //showTipsBox('<i class="fa fa-spinner fa-pulse"></i>', true);
  77. });
  78. IO.on("complete",function(){
  79. //$(".v_tips_box").hide();
  80. });
  81. $('#common_submit_btn').on('click', function () {
  82. goUrl = '';
  83. var formData = IO.serialize('#ff');
  84. IO.post('<?php echo $this->_tpl_vars['web_cfg']['domain']; ?>
  85. /?c=EventsInvitation&a=sub&events_id=<?php echo $this->_tpl_vars['info']['id']; ?>
  86. '
  87. , formData
  88. , function (data) {
  89. if (data.ok) {
  90. toast('提交成功,请等待管理员审核', 1);
  91. return;
  92. var formsId = data.msg;
  93. location.href = "<?php echo $this->_tpl_vars['web_cfg']['domain']; ?>
  94. /?c=EventsInvitation&a=Qrcode&events_id=<?php echo $this->_tpl_vars['info']['id']; ?>
  95. &formsId="+formsId;
  96. } else {
  97. if(data.msg.url){
  98. goUrl = '<?php echo $this->_tpl_vars['loginUrl']; ?>
  99. ';
  100. //showTipsBox('本活需登录后才可以参与');
  101. toast('本活动需登录后才可以参与', 1);
  102. return false;
  103. }
  104. //showTipsBox(data.msg);
  105. toast(data.msg, 1)
  106. }
  107. }
  108. , 'json'
  109. );
  110. return false;
  111. });
  112. // 提示
  113. function showTipsBox(msg, isSend){
  114. $(".tips_msg").html(msg);
  115. if (isSend) {
  116. $("#tips_close_btn").hide();
  117. $("#error_tips_box").fadeIn();
  118. } else {
  119. $("#tips_close_btn").show();
  120. $("#error_tips_box").delay(2000).fadeOut();
  121. }
  122. }
  123. });
  124. </script>
  125. <?php $_smarty_tpl_vars = $this->_tpl_vars;
  126. $this->_smarty_include(array('smarty_include_tpl_file' => "bottom.html", 'smarty_include_vars' => array()));
  127. $this->_tpl_vars = $_smarty_tpl_vars;
  128. unset($_smarty_tpl_vars);
  129. ?>