resources.hbs 2.87 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="{{image2 src w=640 h=310 q=60}}">
		                    </a>
		                </li>
		                {{^}}
		                <li class="swiper-slide">
		                    <a href="{{url}}">
		                        <img class="swiper-lazy" data-src="{{image2 src w=640 h=310 q=60}}">
		                    </a>
		                </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 src="{{image2 image.src w=750 h=364 q=60}}">
		    </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="{{image2 src w=250 h=250 q=60}}">
			    </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="{{image2 src w=375 h=375 q=60}}">
			    </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-->