index.html 1.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940
  1. <div class="editable-page-model editable-page-model-1" style="background-color:{$config_info.back_color|default=''};">
  2. <div class="editable-page-content" style="width:{$config_info.image_width|default=''};height:{$config_info.image_height|default=''};padding-top:{$config_info.padding_top|default=''};padding-bottom:{$config_info.padding_bottom|default=''};">
  3. <div class="content-wrapper">
  4. {if isset($config_info['adv']) && !empty($config_info['adv'])}
  5. <div class="bd">
  6. <ul>
  7. {foreach name="config_info.adv" item="v"}
  8. <li style="background-image: url({$v.image})" >
  9. <a href="{$v.link}">&nbsp;</a>
  10. </li>
  11. {/foreach}
  12. </ul>
  13. </div>
  14. {if count($config_info['adv'])>1}
  15. <div class="hd">
  16. <ul>
  17. {foreach name="config_info.adv" item="v"}
  18. <li class=""></li>
  19. {/foreach}
  20. </ul>
  21. </div>
  22. <a class="ctrl prev" href="javascript:void(0)">&lt;</a>
  23. <a class="ctrl next" href="javascript:void(0)">&gt;</a>
  24. {/if}
  25. {else}
  26. <div style="text-align:center"><img style="width:750px;height:376px;" src="{:goods_thumb()}" /></div>
  27. {/if}
  28. </div>
  29. </div>
  30. </div>
  31. <script>
  32. if(typeof(loadHtml1)=='undefined'){
  33. function loadHtml1(obj){
  34. if(obj.find('.bd li').length>1){
  35. obj.find('.editable-page-content').slide({mainCell: ".bd ul", autoPlay: true, delayTime: 500, interTime: 5000})
  36. }
  37. }
  38. }
  39. </script>