Blame view

apps/mip/views/action/guang/detail.hbs 4.39 KB
李靖 authored
1
<div class="guang-detail-c">
李靖 authored
2 3 4
	{{# guang}}
	{{# author}}
	<div class="editor-info" data-id={{id}}>
李靖 authored
5
		<mip-link href="{{url}}">
李靖 authored
6
			<mip-img class="pic" width="45" height="45" src={{image2 avatar mode=2 q=60}}>
李靖 authored
7 8 9
			</mip-img>
			<div class="name">{{name}}</div>
			<div class="intro">{{intro}}</div>
李靖 authored
10
		</mip-link>
李靖 authored
11
	</div>
李靖 authored
12 13
	{{/ author}}
	{{# detail}}
李靖 authored
14
	<div class="article-info">
李靖 authored
15
		<p class="name">{{title}}</p>
李靖 authored
16
		<div class="view-c">
李靖 authored
17
			<span>日期:{{publishTime}}</span>
李靖 authored
18 19
		</div>
	</div>
李靖 authored
20 21 22 23 24 25 26
	<div class="guang-content clearfix">
	{{# content}}
        {{#if text}}
			{{{text}}}
		{{/if}}
		{{#if bigImage}}
		<div class="big-pic">
毕凯 authored
27
            {{#if isGif}}
李靖 authored
28
            <mip-anim class="pic" width="{{width}}" height="{{height}}" src="{{image2 bigImage q=60}}"></mip-anim>
毕凯 authored
29
            {{else}}
李靖 authored
30
            <mip-img class="pic" width="{{width}}" height="{{height}}" src="{{image2 bigImage q=60}}"></mip-img>
毕凯 authored
31
            {{/if}}
李靖 authored
32 33 34 35 36
			{{#if tagList}}
            <div class="tag-list-box">
                {{#each tagList}}
                    {{#unless isApp}}
					<div class="label-box" data-skn="{{product_skn}}">
李靖 authored
37 38 39 40 41
						<div class="lable-focus">
                            <div class="focus-big">
                                <div class="focus-small"></div>
                            </div>
                        </div>
李靖 authored
42
					    <div class="lable-info-box{{#if isApp}} lable-infobox-borderadius{{/if}}"><mip-link href="{{href}}">{{tagName}}</mip-link></div>
李靖 authored
43 44 45 46 47 48 49 50 51 52 53 54
					    <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}}
毕凯 authored
55
                    {{#if isGif}}
李靖 authored
56
                    <mip-anim class="pic" width="160" height="160" src="{{image2 src q=60}}"></mip-anim>
毕凯 authored
57
                    {{else}}
李靖 authored
58
                    <mip-img class="pic" width="160" height="160" src="{{image2 src q=60}}"></mip-img>
毕凯 authored
59
                    {{/if}}
李靖 authored
60 61 62 63 64 65
                {{/ smallImage}}
            </div>
        {{/if}}
        {{#if relatedReco}}
        <div class="related-goods clearfix">
        	{{#each relatedReco.goods}}
李靖 authored
66
        	{{#if url}}
李靖 authored
67
			<div class="good-item">
李靖 authored
68
				<mip-link href="{{url}}">
李靖 authored
69
					{{#if default_images}}
李靖 authored
70 71 72 73
					<div class="pic">
						<mip-img class="pic-mip" width="76" height="102" src="{{image2 default_images w=152 h=204}}">
						</mip-img>
					</div>
李靖 authored
74 75 76 77 78 79 80
					{{/if}}
					<div class="info">
						<p class="name">{{product_name}}</p>
						{{#if sales_price}}
						<p class="price">&yen;{{sales_price}}</p>
						{{/if}}
					</div>
李靖 authored
81
				</mip-link>
李靖 authored
82
			</div>
李靖 authored
83
			{{/if}}
李靖 authored
84
			{{/each}}
李靖 authored
85
		</div>
李靖 authored
86 87 88 89 90 91
		{{/if}}
	{{/ content}}
	</div>
	{{/ detail}}
	{{#detail.content}}
		{{#if moreLink}}
李靖 authored
92
		<mip-link class="more-goods" href="{{moreLink}}">更多商品</mip-link>
李靖 authored
93
		{{/if}}
毕凯 authored
94
        {{#if recommendProducts}}
李靖 authored
95 96 97 98
        <div class="recommend-goods">
			<div class="good-scroll">
                {{#each recommendProducts}}
                    <div class="good-item">
李靖 authored
99
                    	<mip-link href="{{href}}">
李靖 authored
100
							<mip-img class="pic" width="100" height="134" src="{{image2 pic_url w=152 h=204}}">
李靖 authored
101
							</mip-img>
李靖 authored
102
						</mip-link>
李靖 authored
103 104 105 106 107 108 109 110 111 112 113 114 115
						<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">
李靖 authored
116 117 118 119 120
				<mip-link href="{{url}}">
					<div class="pic">
						<mip-img class="pic-mip" width="75" height="75" src="{{thumb}}">
						</mip-img>
					</div>
李靖 authored
121
					<p>{{name}}</p>
李靖 authored
122
				</mip-link>
李靖 authored
123
			</div>
李靖 authored
124
			{{/ relatedBrand}}
李靖 authored
125 126
		</div>
	</div>
李靖 authored
127 128 129 130 131
	{{/if}}
	{{#if relatedInfo}}
	<div class="related-info">
		{{# relatedInfo}}
		<div class="info-item">
李靖 authored
132 133 134 135 136
			<mip-link href="{{url}}">
				<div class="pic">
					<mip-img class="pic-mip" width="117" height="73" src="{{thumb}}">
					</mip-img>
				</div>
李靖 authored
137 138 139 140
				<div class="info">
					<p class="title">{{title}}</p>
					<p class="time">{{publishTime}}</p>
				</div>
李靖 authored
141
			</mip-link>
李靖 authored
142
		</div>
李靖 authored
143 144 145 146 147 148
		{{/ relatedInfo}}
	</div>
	{{/if}}
	{{#if relatedTag}}
	<div class="brand-tag">
		{{# relatedTag}}
李靖 authored
149
		<mip-link href="//guang.m.yohobuy.com/tags/index?query={{name}}" class="tag">{{name}}</mip-link>
李靖 authored
150
		{{/ relatedTag}}
李靖 authored
151
	</div>
李靖 authored
152 153
	{{/if}}
	{{/ guang}}
李靖 authored
154
</div>