events_survey.html 2.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374
  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.share_button == 2}>
  27. <{include file="share_button.html"}>
  28. <{/if}>
  29. <{if $surveyInfo.operationt_tips}>
  30. <div class="h3_title"><{$surveyInfo.operationt_tips}></div>
  31. <{/if}>
  32. <div class="article_content"><{$surveyInfo.events_rules}></div>
  33. </div>
  34. </div>
  35. <script type="text/javascript">
  36. KISSY.use('node, cookie', function (S, Node, Cookie) {
  37. var $ = S.all;
  38. //视频自适应
  39. var screenWidth = $(window).width();
  40. var baseWidth = 510;
  41. var video_scale = screenWidth / baseWidth;
  42. $(".video_iframe").each(function () {
  43. var new_width = $(this).width() * video_scale;
  44. $(this).width(new_width - 20);
  45. var new_height = $(this).height() * video_scale;
  46. $(this).height(new_height - 20);
  47. });
  48. $(".ac_btn_box").on('click', function () {
  49. Cookie.set('SURVEY_IS_UNDERWAY', 2, null, '<{$smarty.server.HTTP_HOST}>', '/');
  50. window.location.reload();
  51. });
  52. });
  53. //有产品列表时添加整体body背景色
  54. $(body).addClass("bg_white");
  55. </script>
  56. <{include file="bottom.html"}>