index.html 15 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222
  1. <div class="editable-page-model editable-page-model-9" style="background-color:{$config_info.back_color|default=''};">
  2. <div class="editable-page-content" style="padding-top:{$config_info.padding_top|default=''};padding-bottom:{$config_info.padding_bottom|default=''};">
  3. <div class="fresh_category_body">
  4. <div class="fresh_category_acts">
  5. {if isset($config_info.back_image) && $config_info.back_image != ''}
  6. <div class="fresh_category_act1" style="position:relative" style="background: url({$config_info.back_image|default=''}) 0 0 no-repeat;">
  7. {else}
  8. <div class="fresh_category_act1" style="position:relative"><div style="background:#e1e1e1;color:#fff;position:absolute;top:0;bottom:0;left:0;right:0;font-size: 30px;font-weight: bold;text-align: center;padding-top: 100px;">200×300</div>
  9. {/if}
  10. <h4 class="fresh_category_title">{$config_info.title_big|default='大标题'}</h4>
  11. <p class="fresh_category_subtitle">{$config_info.title_small|default='小标题'}</p>
  12. <div class="fresh_category_keys" style="position: relative;">
  13. {if isset($config_info.gc_list_l[0])}
  14. <a class="fresh_category_keys_item" href="{:url('Search/index',['cate_id'=>$config_info.gc_list.0.gc_id])}" target="_blank">{$config_info.gc_list.0.gc_name}</a>
  15. {else}
  16. <a class="fresh_category_keys_item">商品分类</a>
  17. {/if}
  18. {if isset($config_info.gc_list_l[1])}
  19. <a class="fresh_category_keys_item" href="{:url('Search/index',['cate_id'=>$config_info.gc_list.1.gc_id])}" target="_blank">{$config_info.gc_list.1.gc_name}</a>
  20. {else}
  21. <a class="fresh_category_keys_item">商品分类</a>
  22. {/if}
  23. {if isset($config_info.gc_list_l[2])}
  24. <a class="fresh_category_keys_item" href="{:url('Search/index',['cate_id'=>$config_info.gc_list.2.gc_id])}" target="_blank">{$config_info.gc_list.2.gc_name}</a>
  25. {else}
  26. <a class="fresh_category_keys_item">商品分类</a>
  27. {/if}
  28. {if isset($config_info.gc_list_l[3])}
  29. <a class="fresh_category_keys_item" href="{:url('Search/index',['cate_id'=>$config_info.gc_list.3.gc_id])}" target="_blank">{$config_info.gc_list.3.gc_name}</a>
  30. {else}
  31. <a class="fresh_category_keys_item">商品分类</a>
  32. {/if}
  33. {if isset($config_info.gc_list_l[4])}
  34. <a class="fresh_category_keys_item" href="{:url('Search/index',['cate_id'=>$config_info.gc_list.4.gc_id])}" target="_blank">{$config_info.gc_list.4.gc_name}</a>
  35. {else}
  36. <a class="fresh_category_keys_item">商品分类</a>
  37. {/if}
  38. </div>
  39. </div>
  40. {if $config_info['adv_center']['image'] != '' && isset($config_info['adv_center']['image'])}
  41. <div class="fresh_category_act2">
  42. <div>
  43. <a href="{$config_info['adv_center']['link']|default=''}" target="_blank"><img class="fresh_category_act2_img lazyload" data-original="{$config_info['adv_center']['image']|default=''}" alt="" title="" /></a>
  44. </div>
  45. </div>
  46. {else}
  47. <div class="fresh_category_act2">
  48. <div class="fresh_category_act2_img lazyload" style="background:#e1e1e1;color:#fff;font-size: 30px;font-weight: bold;text-align: center;padding-top: 100px;height: 100%;box-sizing: border-box;">600×300</div>
  49. </div>
  50. {/if}
  51. {if $config_info['adv_right']['image'] != '' && isset($config_info['adv_right']['image'])}
  52. <a class="fresh_category_act3" href="{$config_info['adv_right']['link']|default=''}" target="_blank"><img class="fresh_category_act3_img lazyload" alt="" title="" data-original="{$config_info['adv_right']['image']|default=''}" /></a>
  53. {else}
  54. <a class="fresh_category_act3"><div style="background:#e1e1e1;color:#fff;font-size: 30px;font-weight: bold;text-align: center;padding-top: 100px;height: 100%;box-sizing: border-box;">400×300</div></a>
  55. {/if}
  56. </div>
  57. <div class="fresh_category_goods goods">
  58. {if isset($config_info.gc_list[0])}
  59. <div class="goods_item">
  60. <a class="goods_item_link" href="{:url('goods/index',['goods_id'=>$config_info.gc_list[0]['goods_id']])}" target="_blank"><img class="goods_item_img lazyload" width="150" height="150" data-original="{:goods_thumb($config_info.gc_list[0], 240)}" /><p class="goods_item_name">{$config_info.gc_list.0.goods_name}</p></a>
  61. <p class="goods_item_price">¥{$config_info.gc_list[0].goods_price}</p>
  62. </div>
  63. {else}
  64. <div class="goods_item">
  65. <a class="goods_item_link"><img class="goods_item_img lazyload" width="150" height="150" data-original="{:goods_thumb()}" /><p class="goods_item_name">商品名称</p></a>
  66. <p class="goods_item_price">¥100</p>
  67. </div>
  68. {/if}
  69. {if isset($config_info.gc_list[1])}
  70. <div class="goods_item">
  71. <a class="goods_item_link" href="{:url('goods/index',['goods_id'=>$config_info.gc_list[1]['goods_id']])}" target="_blank"><img class="goods_item_img lazyload" width="150" height="150" data-original="{:goods_thumb($config_info.gc_list[1], 240)}" /><p class="goods_item_name">{$config_info.gc_list.1.goods_name}</p></a>
  72. <p class="goods_item_price">¥{$config_info.gc_list[1].goods_price}</p>
  73. </div>
  74. {else}
  75. <div class="goods_item">
  76. <a class="goods_item_link"><img class="goods_item_img lazyload" width="150" height="150" data-original="{:goods_thumb()}" /><p class="goods_item_name">商品名称</p></a>
  77. <p class="goods_item_price">¥100</p>
  78. </div>
  79. {/if}
  80. {if isset($config_info.gc_list[2])}
  81. <div class="goods_item">
  82. <a class="goods_item_link" href="{:url('goods/index',['goods_id'=>$config_info.gc_list[2]['goods_id']])}" target="_blank"><img class="goods_item_img lazyload" width="150" height="150" data-original="{:goods_thumb($config_info.gc_list[2], 240)}" /><p class="goods_item_name">{$config_info.gc_list.2.goods_name}</p></a>
  83. <p class="goods_item_price">¥{$config_info.gc_list[2].goods_price}</p>
  84. </div>
  85. {else}
  86. <div class="goods_item">
  87. <a class="goods_item_link"><img class="goods_item_img lazyload" width="150" height="150" data-original="{:goods_thumb()}" /><p class="goods_item_name">商品名称</p></a>
  88. <p class="goods_item_price">¥100</p>
  89. </div>
  90. {/if}
  91. {if isset($config_info.gc_list[3])}
  92. <div class="goods_item">
  93. <a class="goods_item_link" href="{:url('goods/index',['goods_id'=>$config_info.gc_list[3]['goods_id']])}" target="_blank"><img class="goods_item_img lazyload" width="150" height="150" data-original="{:goods_thumb($config_info.gc_list[3], 240)}" /><p class="goods_item_name">{$config_info.gc_list.3.goods_name}</p></a>
  94. <p class="goods_item_price">¥{$config_info.gc_list[3].goods_price}</p>
  95. </div>
  96. {else}
  97. <div class="goods_item">
  98. <a class="goods_item_link"><img class="goods_item_img lazyload" width="150" height="150" data-original="{:goods_thumb()}" /><p class="goods_item_name">商品名称</p></a>
  99. <p class="goods_item_price">¥100</p>
  100. </div>
  101. {/if}
  102. {if isset($config_info.gc_list[4])}
  103. <div class="goods_item">
  104. <a class="goods_item_link" href="{:url('goods/index',['goods_id'=>$config_info.gc_list[4]['goods_id']])}" target="_blank"><img class="goods_item_img lazyload" width="150" height="150" data-original="{:goods_thumb($config_info.gc_list[4], 240)}" /><p class="goods_item_name">{$config_info.gc_list.4.goods_name}</p></a>
  105. <p class="goods_item_price">¥{$config_info.gc_list[4].goods_price}</p>
  106. </div>
  107. {else}
  108. <div class="goods_item">
  109. <a class="goods_item_link"><img class="goods_item_img lazyload" width="150" height="150" data-original="{:goods_thumb()}" /><p class="goods_item_name">商品名称</p></a>
  110. <p class="goods_item_price">¥100</p>
  111. </div>
  112. {/if}
  113. {if isset($config_info.gc_list[5])}
  114. <div class="goods_item">
  115. <a class="goods_item_link" href="{:url('goods/index',['goods_id'=>$config_info.gc_list[5]['goods_id']])}" target="_blank"><img class="goods_item_img lazyload" width="150" height="150" data-original="{:goods_thumb($config_info.gc_list[5], 240)}" /><p class="goods_item_name">{$config_info.gc_list.5.goods_name}</p></a>
  116. <p class="goods_item_price">¥{$config_info.gc_list[5].goods_price}</p>
  117. </div>
  118. {else}
  119. <div class="goods_item">
  120. <a class="goods_item_link"><img class="goods_item_img lazyload" width="150" height="150" data-original="{:goods_thumb()}" /><p class="goods_item_name">商品名称</p></a>
  121. <p class="goods_item_price">¥100</p>
  122. </div>
  123. {/if}
  124. </div>
  125. <div class="fresh_category_brands brands">
  126. {if isset($config_info.brand_list[0])}
  127. <a class="brands_item" href="{:url('Brand/brand_goods',array('brand_id'=>$config_info.brand_list[0].brand_id))}" target="_blank">
  128. <img class="brands_item_img lazyload" data-original="{:brand_image($config_info.brand_list[0].brand_pic)}" />
  129. </a>
  130. {else}
  131. <a class="brands_item">
  132. <img class="brands_item_img lazyload" data-original="{:goods_thumb()}" />
  133. </a>
  134. {/if}
  135. {if isset($config_info.brand_list[1])}
  136. <a class="brands_item" href="{:url('Brand/brand_goods',array('brand_id'=>$config_info.brand_list[1].brand_id))}" target="_blank">
  137. <img class="brands_item_img lazyload" data-original="{:brand_image($config_info.brand_list[1].brand_pic)}" />
  138. </a>
  139. {else}
  140. <a class="brands_item">
  141. <img class="brands_item_img lazyload" data-original="{:goods_thumb()}" />
  142. </a>
  143. {/if}
  144. {if isset($config_info.brand_list[2])}
  145. <a class="brands_item" href="{:url('Brand/brand_goods',array('brand_id'=>$config_info.brand_list[2].brand_id))}" target="_blank">
  146. <img class="brands_item_img lazyload" data-original="{:brand_image($config_info.brand_list[2].brand_pic)}" />
  147. </a>
  148. {else}
  149. <a class="brands_item">
  150. <img class="brands_item_img lazyload" data-original="{:goods_thumb()}" />
  151. </a>
  152. {/if}
  153. {if isset($config_info.brand_list[3])}
  154. <a class="brands_item" href="{:url('Brand/brand_goods',array('brand_id'=>$config_info.brand_list[3].brand_id))}" target="_blank">
  155. <img class="brands_item_img lazyload" data-original="{:brand_image($config_info.brand_list[3].brand_pic)}" />
  156. </a>
  157. {else}
  158. <a class="brands_item">
  159. <img class="brands_item_img lazyload" data-original="{:goods_thumb()}" />
  160. </a>
  161. {/if}
  162. {if isset($config_info.brand_list[4])}
  163. <a class="brands_item" href="{:url('Brand/brand_goods',array('brand_id'=>$config_info.brand_list[4].brand_id))}" target="_blank">
  164. <img class="brands_item_img lazyload" data-original="{:brand_image($config_info.brand_list[4].brand_pic)}" />
  165. </a>
  166. {else}
  167. <a class="brands_item">
  168. <img class="brands_item_img lazyload" data-original="{:goods_thumb()}" />
  169. </a>
  170. {/if}
  171. {if isset($config_info.brand_list[5])}
  172. <a class="brands_item" href="{:url('Brand/brand_goods',array('brand_id'=>$config_info.brand_list[5].brand_id))}" target="_blank">
  173. <img class="brands_item_img lazyload" data-original="{:brand_image($config_info.brand_list[5].brand_pic)}" />
  174. </a>
  175. {else}
  176. <a class="brands_item">
  177. <img class="brands_item_img lazyload" data-original="{:goods_thumb()}" />
  178. </a>
  179. {/if}
  180. {if isset($config_info.brand_list[6])}
  181. <a class="brands_item" href="{:url('Brand/brand_goods',array('brand_id'=>$config_info.brand_list[6].brand_id))}" target="_blank">
  182. <img class="brands_item_img lazyload" data-original="{:brand_image($config_info.brand_list[6].brand_pic)}" />
  183. </a>
  184. {else}
  185. <a class="brands_item">
  186. <img class="brands_item_img lazyload" data-original="{:goods_thumb()}" />
  187. </a>
  188. {/if}
  189. {if isset($config_info.brand_list[7])}
  190. <a class="brands_item" href="{:url('Brand/brand_goods',array('brand_id'=>$config_info.brand_list[7].brand_id))}" target="_blank">
  191. <img class="brands_item_img lazyload" data-original="{:brand_image($config_info.brand_list[7].brand_pic)}" />
  192. </a>
  193. {else}
  194. <a class="brands_item">
  195. <img class="brands_item_img lazyload" data-original="{:goods_thumb()}" />
  196. </a>
  197. {/if}
  198. {if isset($config_info.brand_list[8])}
  199. <a class="brands_item" href="{:url('Brand/brand_goods',array('brand_id'=>$config_info.brand_list[8].brand_id))}" target="_blank">
  200. <img class="brands_item_img lazyload" data-original="{:brand_image($config_info.brand_list[8].brand_pic)}" />
  201. </a>
  202. {else}
  203. <a class="brands_item">
  204. <img class="brands_item_img lazyload" data-original="{:goods_thumb()}" />
  205. </a>
  206. {/if}
  207. {if isset($config_info.brand_list[9])}
  208. <a class="brands_item" href="{:url('Brand/brand_goods',array('brand_id'=>$config_info.brand_list[9].brand_id))}" target="_blank">
  209. <img class="brands_item_img lazyload" data-original="{:brand_image($config_info.brand_list[9].brand_pic)}" />
  210. </a>
  211. {else}
  212. <a class="brands_item">
  213. <img class="brands_item_img lazyload" data-original="{:goods_thumb()}" />
  214. </a>
  215. {/if}
  216. </div>
  217. </div>
  218. </div>
  219. </div>