index.html 1.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. <div class="model-12">
  2. <div class="graphic-nav" style="background-color:{$config_info.back_color|default='unset'};">
  3. <div class="wrap">
  4. {if isset($config_info['nav']) && count($config_info['nav'])}
  5. {foreach name='config_info.nav' item='v'}
  6. <div class="item" {if isset($config_info['show_format'])}style="width:{if $config_info['show_format']==1}25{elseif $config_info['show_format']==2}20{/if}%"{/if}>
  7. <div>
  8. <img src="{$v.image}">
  9. </div>
  10. <span>{$v.text}</span>
  11. </div>
  12. {/foreach}
  13. {else}
  14. <div class="item" style="width:25%">
  15. <div>
  16. <img src="{:goods_thumb()}">
  17. </div>
  18. <span>菜单</span>
  19. </div>
  20. <div class="item" style="width:25%">
  21. <div>
  22. <img src="{:goods_thumb()}">
  23. </div>
  24. <span>菜单</span>
  25. </div>
  26. <div class="item" style="width:25%">
  27. <div>
  28. <img src="{:goods_thumb()}">
  29. </div>
  30. <span>菜单</span>
  31. </div>
  32. <div class="item" style="width:25%">
  33. <div>
  34. <img src="{:goods_thumb()}">
  35. </div>
  36. <span>菜单</span>
  37. </div>
  38. {/if}
  39. </div>
  40. </div>
  41. </div>