resources-template.hbs 2.45 KB
<div class="resources">
	<!--banner-->
	{{#each result.focus1}}
		<div class="banner-top">
		    <div class="banner-swiper swiper-container">
		        <ul class="swiper-wrapper">
		            {{#each data}}
		                {{#if @first}}
		                <li class="swiper-slide">
		                    <a href="{{url}}">
		                        <img src="{{image src 750 364}}">
		                    </a>
		                </li>
		                {{^}}
		                <li class="swiper-slide">
		                    <a href="{{url}}">
		                        <img class="swiper-lazy" data-src="{{image src 750 364}}">
		                    </a>
		                    <div class="swiper-lazy-preloader"></div>
		                </li>
		                {{/if}}
		            {{/each}}
		        </ul>
		    </div>
		    <div class="swiper-pagination">
		        <div class="pagination-inner">
		        </div>
		    </div>
		</div>
	{{/each}}

	{{#each result.title_image}}
    	<div class="header-title">
		    {{title}}
		    <a class="more" href="{{moreUrl}}">{{moreName}}</a>
		</div>
        <div class="title-image">
		    <a class="image" href="{{image.url}}">
		        <img class="lazy" data-original="{{image image.src 750 364}}">
		    </a>
		</div>
	{{/each}}

	{{#if result.focus2.data}}
	    <div class="focus-left-right">
	        {{#each result.focus2.data}}
			    <a href="{{url}}" title="{{title}}">
			        <img class="lazy" data-original="{{image src 250 250}}">
			    </a>
	    	{{/each}}
		</div>
	{{/if}}
	<!--/focus-left-right-->

	{{#if result.recommend.title}} 
		<div class="header-title">
		    {{result.recommend.title.name}}
		    <a class="more" href="{{result.recommend.title.moreUrl}}">
		    	{{result.recommend.title.moreName}}
	    	</a>
		</div>
	{{/if}}
	{{#if result.recommend.data}}
        <div class="recommend-content-five">
        	{{#each result.recommend.data}}
			    <a href="{{url}}" title="{{title}}">
			        <img class="lazy" data-original="{{image src 375 375}}">
			    </a>
		    {{/each}}
		</div>
	{{/if}}

	{{#if result.goods.title}}
		<div class="header-title">
		    {{result.goods.title.name}}
		    <a class="more" href="{{result.goods.title.moreUrl}}">
		    	{{result.goods.title.moreName}}
	    	</a>
	    	<input type='hidden' value='{{result.goods.productSkns}}' class='product-skns' />
		</div>

        <div class="goods clearfix">
        	<!--商品--->

	    </div><!--/goods-->
    {{/if}}

</div><!--/resources-->