| 
									
										
										
										
											2020-11-26 10:28:53 +08:00
										 |  |  | {layout name="layout" /} | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2020-12-03 15:33:56 +08:00
										 |  |  | <!-- banner --> | 
					
						
							| 
									
										
										
										
											2020-12-04 10:11:22 +08:00
										 |  |  | <div class="page-banner w-100" style="background-image: url({:getImgSrc($topCategory, '__IMG__/page_ban3.jpg')});"> | 
					
						
							| 
									
										
										
										
											2020-12-03 15:33:56 +08:00
										 |  |  |     <div class="info"> | 
					
						
							| 
									
										
										
										
											2022-01-14 11:43:21 +08:00
										 |  |  |         <div class="w-1200 pt118" id="product"> | 
					
						
							| 
									
										
										
										
											2020-12-03 15:33:56 +08:00
										 |  |  |             <strong>{$category.title ?? ''}</strong> | 
					
						
							|  |  |  |             <p>{:nl2br($category.description ?? '')}</p> | 
					
						
							|  |  |  |         </div> | 
					
						
							|  |  |  |     </div> | 
					
						
							|  |  |  | </div> | 
					
						
							|  |  |  | <!--  --> | 
					
						
							|  |  |  | <div class="all-center-box"> | 
					
						
							|  |  |  |     <div class="product-box w-100"> | 
					
						
							| 
									
										
										
										
											2020-12-07 18:45:22 +08:00
										 |  |  |         <!--
 | 
					
						
							| 
									
										
										
										
											2020-12-04 14:41:05 +08:00
										 |  |  |         <div class="w-1200 search-form-box"> | 
					
						
							|  |  |  |             <form action="{:url('products.search')}" class="layui-form between-center w-100" method="get"> | 
					
						
							| 
									
										
										
										
											2020-12-04 10:11:22 +08:00
										 |  |  |                 <select name="category_id"> | 
					
						
							|  |  |  |                     <option value="{$topCategory.id}">产品选择</option> | 
					
						
							|  |  |  |                     {if isset($categoryChildren) && count($categoryChildren) >0} | 
					
						
							|  |  |  |                     {foreach $categoryChildren as $cate} | 
					
						
							|  |  |  |                         <option value="{$cate.id}" {if $categoryId == $cate.id}selected="selected"{/if}>{$cate.title}</option> | 
					
						
							|  |  |  |                     {/foreach} | 
					
						
							|  |  |  |                     {/if} | 
					
						
							|  |  |  |                 </select> | 
					
						
							| 
									
										
										
										
											2020-12-04 14:41:05 +08:00
										 |  |  |                 <input name="keyword" class="layui-input" placeholder="关键词查询..." value="{$keyword ?? ''}"/> | 
					
						
							| 
									
										
										
										
											2020-12-04 13:51:55 +08:00
										 |  |  |                 <button type="submit" class="layui-btn layui-btn-normal">查询</button> | 
					
						
							| 
									
										
										
										
											2020-12-04 10:11:22 +08:00
										 |  |  |             </form> | 
					
						
							|  |  |  |         </div> | 
					
						
							| 
									
										
										
										
											2020-12-07 18:45:22 +08:00
										 |  |  |         --> | 
					
						
							| 
									
										
										
										
											2020-12-17 10:14:38 +08:00
										 |  |  | 		<div class="w-1200 product-title-box"> | 
					
						
							|  |  |  | 			{if isset($categoryChildren) && count($categoryChildren) >0} | 
					
						
							|  |  |  | 			{foreach $categoryChildren as $idx => $cate} | 
					
						
							|  |  |  | 			{php} | 
					
						
							|  |  |  | 				$active = ''; | 
					
						
							|  |  |  | 				if($categoryId == $cate['id']) { | 
					
						
							|  |  |  | 					$active = 'active'; | 
					
						
							|  |  |  | 				} elseif ($categoryId == $topCategory['id'] && $idx == 0) { | 
					
						
							|  |  |  | 					$active = 'active'; | 
					
						
							|  |  |  | 				} | 
					
						
							|  |  |  | 			{/php} | 
					
						
							|  |  |  | 			<div class="product-item {$active}"> | 
					
						
							| 
									
										
										
										
											2022-01-14 11:43:21 +08:00
										 |  |  | 				<a href="{:url('article/index#product', ['category_id'=>$cate.id])}">{$cate.title}</a> | 
					
						
							| 
									
										
										
										
											2020-12-17 10:14:38 +08:00
										 |  |  | 			</div> | 
					
						
							|  |  |  | 			{/foreach} | 
					
						
							|  |  |  | 			{/if} | 
					
						
							|  |  |  | 		</div> | 
					
						
							| 
									
										
										
										
											2020-12-03 15:33:56 +08:00
										 |  |  |         <div class="w-1200"> | 
					
						
							|  |  |  |             {if isset($items)} | 
					
						
							|  |  |  |             <div class="center-block w-100"> | 
					
						
							|  |  |  |                 <ul> | 
					
						
							|  |  |  |                     {foreach $items as $item} | 
					
						
							| 
									
										
										
										
											2020-12-04 15:55:52 +08:00
										 |  |  |                     <li> | 
					
						
							| 
									
										
										
										
											2022-01-10 10:34:35 +08:00
										 |  |  |                         <a> | 
					
						
							| 
									
										
										
										
											2020-12-04 15:55:52 +08:00
										 |  |  |                             <span><img src="{:getImgSrc($item, '__IMG__/default_bg.jpg')}" ></span><p>{$item.title}</p> | 
					
						
							|  |  |  |                         </a> | 
					
						
							|  |  |  |                     </li> | 
					
						
							| 
									
										
										
										
											2020-12-03 15:33:56 +08:00
										 |  |  |                     {/foreach} | 
					
						
							|  |  |  |                 </ul> | 
					
						
							|  |  |  |             </div> | 
					
						
							| 
									
										
										
										
											2020-12-09 09:29:46 +08:00
										 |  |  |             <div class="pager w-100 div-pc"> | 
					
						
							|  |  |  |                 {$items->render()|raw} | 
					
						
							|  |  |  |             </div> | 
					
						
							|  |  |  |             <div class="pager w-100 div-phone"> | 
					
						
							| 
									
										
										
										
											2020-12-09 09:32:41 +08:00
										 |  |  |                 {$items->render(5)|raw} | 
					
						
							| 
									
										
										
										
											2020-12-03 15:33:56 +08:00
										 |  |  |             </div> | 
					
						
							|  |  |  |             {/if} | 
					
						
							|  |  |  |         </div> | 
					
						
							|  |  |  |     </div> | 
					
						
							|  |  |  | </div> |