detail.hbs 3.55 KB
<div class="guang-detail-c">
	{{# guang}}
	{{# author}}
	<div class="editor-info" data-id={{id}}>
		<mip-link href={{url}}>
			<mip-img class="pic" src={{image2 avatar mode=2 q=60}}>
			</mip-img>
			<div class="name">{{name}}</div>
			<div class="intro">{{intro}}</div>
		</mip-link>
	</div>
	{{/ author}}
	{{# detail}}
	<div class="article-info">
		<p class="name">{{title}}</p>
		<div class="view-c">
			<span class="iconfont">&#xe603;{{publishTime}}</span>
			<span class="iconfont">&#xe603;{{pageView}}</span>
		</div>
	</div>
	<div class="guang-content clearfix">
	{{# content}}
        {{#if text}}
			{{{text}}}
		{{/if}}
		{{#if bigImage}}
		<div class="big-pic">
            <mip-img class="pic" src="{{image2 bigImage q=60}}">
			</mip-img>
			{{#if tagList}}
            <div class="tag-list-box">
                {{#each tagList}}
                    {{#unless isApp}}
					<div class="label-box" data-skn="{{product_skn}}">
					    <div class="lable-info-box{{#if isApp}} lable-infobox-borderadius{{/if}}"><mip-link href="{{href}}">{{tagName}}</mip-link></div>
					    <div class="lable-btn add-to-cart" data-skn="{{product_skn}}">
					    </div>
					</div>
					{{/unless}}
                {{/each}}
            </div>
            {{/if}}
        </div>
        {{/if}}
        {{#if smallImage}}
            <div class="small-pic">
                {{# smallImage}}
                	<mip-img class="pic" src="{{image2 src q=60}}">
					</mip-img>
                {{/ smallImage}}
            </div>
        {{/if}}
        {{#if relatedReco}}
        <div class="related-goods clearfix">
        	{{#each relatedReco.goods}}
			<div class="good-item">
				<mip-link href="{{url}}">
					{{#if default_images}}
					<mip-img class="pic" src="{{image2 default_images w=152 h=204}}">
					</mip-img>
					{{/if}}
					<div class="info">
						<p class="name">{{product_name}}</p>
						{{#if sales_price}}
						<p class="price">&yen;{{sales_price}}</p>
						{{/if}}
					</div>
				</mip-link>
			</div>
			{{/each}}
		</div>
		{{/if}}
	{{/ content}}
	</div>
	{{/ detail}}
	{{#detail.content}}
		{{#if moreLink}}
		<mip-link class="more-goods" href="{{moreLink}}">更多商品</mip-link>
		{{/if}}
        {{#if recommendProducts}}    
        <div class="recommend-goods">
			<div class="good-scroll">
                {{#each recommendProducts}}
                    <div class="good-item">
                    	<mip-link href="{{href}}">
							<mip-img class="pic" src="{{image2 pic_url w=152 h=204}}">
							</mip-img>
						</mip-link>
						<p class="price">&yen;{{price}}</p>
					</div>
                {{/each}}
            </div>
        </div>
        {{/if}}
    {{/detail.content}}
	{{#if relatedBrand}}
	<div class="related-brand clearfix">
		<div class="title">相关品牌</div>
		<div class="brand-c">
			{{# relatedBrand}}
			<div class="brand-item">
				<mip-link href={{url}}>
					<mip-img class="pic" src="{{thumb}}">
					</mip-img>
					<p>{{name}}</p>
				</mip-link>
			</div>
			{{/ relatedBrand}}
		</div>
	</div>
	{{/if}}
	{{#if relatedInfo}}
	<div class="related-info">
		{{# relatedInfo}}
		<div class="info-item">
			<mip-link href={{url}}>
				<mip-img class="pic" src="{{thumb}}">
				</mip-img>
				<div class="info">
					<p class="title">{{title}}</p>
					<p class="time">{{publishTime}}</p>
				</div>
			</mip-link>
		</div>
		{{/ relatedInfo}}
	</div>
	{{/if}}
	{{#if relatedTag}}
	<div class="brand-tag">
		{{# relatedTag}}
		<mip-link href="//guang.m.yohobuy.com/tags/index?query={{name}}" class="tag">{{name}}</mip-link>
		{{/ relatedTag}}
	</div>
	{{/if}}
	{{/ guang}}
</div>