activity_show.html 2.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  1. {extend name="default/base/base_home" /}
  2. {block name="mall_main"}
  3. {notpresent name='editable_page'}
  4. <link rel="stylesheet" href="{$Think.HOME_SITE_ROOT}/css/home_activity.css">
  5. <div class="dsh-activity">
  6. <div class="activity_detail" style="background-image: url({:ds_get_pic(ATTACH_ACTIVITY,$activity.activity_banner)})">
  7. <div class="p_info">
  8. <p class="p_name">{$activity.activity_title}</p>
  9. <p class="p_time">{$activity.activity_startdate|date='Y-m-d'} {$Think.lang.activity_to} {$activity.activity_enddate|date='Y-m-d'}</p>
  10. <p class="p_desc">{$activity.activity_desc}</p>
  11. </div>
  12. </div>
  13. <div class="activity_show" id="sale">
  14. {notempty name="activitydetail_list"}
  15. <ul class="list_pic">
  16. {foreach name="activitydetail_list" item="v"}
  17. <li>
  18. <dl>
  19. <dt><a href="{:url('Goods/index',['goods_id'=>$v.goods_id])}" target="_blank"><img src="{:goods_thumb($v, 240);}"/></a></dt>
  20. <dd class="p_name"><a href="{:url('Goods/index',['goods_id'=>$v.goods_id])}" target="_blank" title="{$v.goods_name}">{$v.goods_name}</a></dd>
  21. <dd class="p_info">
  22. <span class="p_price">{:ds_price_format_forlist($v['goods_price'])}</span>
  23. <a class="p_buy" href="{:url('Goods/index',['goods_id'=>$v.goods_id])}" target="_blank">{$Think.lang.activity_buy_now}</a>
  24. </dd>
  25. </dl>
  26. </li>
  27. {/foreach}
  28. </ul>
  29. {$show_page|raw}
  30. {/notempty}
  31. </div>
  32. </div>
  33. {else}
  34. <script src="{$Think.PLUGINS_SITE_ROOT}/jquery.SuperSlide.2.1.1.js"></script>
  35. <link rel="stylesheet" href="{$Think.HOME_SITE_ROOT}/css/editable_page.css">
  36. {foreach name='config_list' item='item' key='key'}
  37. <div data-type="html" data-id="{$key+1}">{$item.html|raw}</div>
  38. {/foreach}
  39. <script>
  40. {foreach name='config_list' item='item' key='key'}
  41. if(typeof(window['loadHtml{$item.val.editable_page_model_id}'])!='undefined'){
  42. window['loadHtml{$item.val.editable_page_model_id}']($('*[data-type="html"][data-id={$key+1}]'))
  43. }
  44. {/foreach}
  45. </script>
  46. {/notpresent}
  47. {/block}