resources-template.hbs 2.91 KB
<div class="resources">
	<!--banner-->
	{{#if result.focus1}}
		<div class="banner-top">
		    <div class="banner-swiper swiper-container">
		        <ul class="swiper-wrapper" data-id={{result.focus1.id}}>
		            {{#each result.focus1.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>
	{{/if}}

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

	{{#if result.focus2.data}}
	    <div class="focus-left-right speck-title-image" data-fid='{{result.focus2.id}}' data-name='焦点图'>
	        {{#each result.focus2.data}}
			    <a href="{{url}}" title="{{title}}">
			        <img src="{{image src 250 250}}">
			    </a>
	    	{{/each}}
		</div>
	{{/if}}
	<!--/focus-left-right-->

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

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

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

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

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