product.hbs 2.12 KB
<div class="item" data-activity="{{activityId}}" data-skn="{{productSkn}}">
	<div class="item-img">
		<img class="lazy" data-original="{{image defaultImages 235 314}}" alt="">
	</div>
	<div class="item-info">
		<div class="item-title">
			{{productName}}
		</div>
		{{# if wait}}
			<div class="item-price">
				<ins>¥{{secKillPrice}}</ins><del>¥{{marketPrice}}</del>
			</div>
		{{/if}}
		
		<div class="item-foot">
			{{# if wait}}
				<div class="item-time" data-start="{{startTime}}"><span><i class="iconfont">&#xe603;</i><time>{{readaleTime  startTime}}</time>开始</span></div>
			{{else}}
				<div class="item-price">
					<ins>¥{{secKillPrice}}</ins><del>¥{{marketPrice}}</del>
				</div>
			{{/if}}
			
			<div class="item-button">
				{{#if over}}
					<span class="old-price">还可以原价购买</span>
					<a href='/product/show_{{{productSkn}}}{{#if @root.isApp}}?openby:yohobuy={"action":"go.productDetail","params":{"product_skn":"{{productSkn}}"}}{{/if}}' class="btn btn-over">已抢光</a>
				{{else if wait}}
					{{#if @root.isApp}}
						<button class="btn btn-remind-off" data-remind data-action="cancel" {{#unless remindFlag}}style="display: none;"{{/unless}}>取消提醒</button>
						<button class="btn btn-remind-on"  data-remind data-action="add" {{#if remindFlag}}style="display: none;"{{/if}}>提醒我</button>
					{{else}}
						<a href='/product/seckill/show_{{productSkn}}.html' class="btn btn-buy">即将开抢</a>
					{{/if}}
				{{else}}
					<a href='/product/seckill/show_{{productSkn}}.html{{#if @root.isApp}}&openby:yohobuy={"action":"go.productDetail","params":{"product_skn":"{{productSkn}}", "is_seckill":"Y"}}{{/if}}' class="btn btn-buy">去抢购</a>
				{{/if}}
			</div>
		</div>
	</div>

	{{#if isSeckill}}
	<a class="item-link" href='/product/seckill/show_{{{productSkn}}}{{#if @root.isApp}}&openby:yohobuy={"action":"go.productDetail","params":{"product_skn":"{{productSkn}}", "is_seckill": "Y"}}{{/if}}'></a>
	{{else}}
	<a class="item-link" href='/product/show_{{{productSkn}}}{{#if @root.isApp}}?openby:yohobuy={"action":"go.productDetail","params":{"product_skn":"{{productSkn}}"}}{{/if}}'></a>
	{{/if}}
</div>