events_survey.html 2.0 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970
  1. <{include file="header.html"}>
  2. <!--公用标题居中显示-->
  3. <{include file="common_header.html"}>
  4. <!---->
  5. <div class="wrapper clear">
  6. <div class="v_hd_title clear">
  7. <div class="article_title center"><{$surveyInfo.events_name}></div>
  8. <div class="article_content"><{$surveyInfo.events_tips}></div>
  9. <div class="ac_btn_box center"><a class="submit_btn_style">参与问卷</a></div>
  10. </div>
  11. <div class="v_box_w clear">
  12. <{if $surveyInfo.events_hd_tips}>
  13. <div class="h3_title"><{$surveyInfo.events_hd_tips}></div>
  14. <{/if}>
  15. <div class="pro_list_box pro_list_survey">
  16. <{foreach from=$surveyInfo.survery_prize item=data name=survery}>
  17. <dl>
  18. <dt><img src="<{$data.img_url}>"></dt>
  19. <dd>
  20. <p class="pro_name"><{$data.name}></p>
  21. <p class="pro_num"><{$data.num}><{$data.unit_name}></p>
  22. </dd>
  23. </dl>
  24. <{/foreach}>
  25. </div>
  26. <{if $surveyInfo.operationt_tips}>
  27. <div class="h3_title"><{$surveyInfo.operationt_tips}></div>
  28. <{/if}>
  29. <div class="article_content"><{$surveyInfo.events_rules}></div>
  30. </div>
  31. </div>
  32. <script type="text/javascript">
  33. KISSY.use('node, cookie', function (S, Node, Cookie) {
  34. var $ = S.all;
  35. //视频自适应
  36. var screenWidth = $(window).width();
  37. var baseWidth = 510;
  38. var video_scale = screenWidth / baseWidth;
  39. $(".video_iframe").each(function () {
  40. var new_width = $(this).width() * video_scale;
  41. $(this).width(new_width - 20);
  42. var new_height = $(this).height() * video_scale;
  43. $(this).height(new_height - 20);
  44. });
  45. $(".ac_btn_box").on('click', function () {
  46. Cookie.set('SURVEY_IS_UNDERWAY', 2, null, '<{$smarty.server.HTTP_HOST}>', '/');
  47. window.location.reload();
  48. });
  49. });
  50. //有产品列表时添加整体body背景色
  51. $(body).addClass("bg_white");
  52. </script>
  53. <{include file="bottom.html"}>