product.hbs 1.92 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 line-clamp-2">
			{{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>{{readableTime}}</time>开始</span></div>
			{{else}}
				<div class="item-price">
					<ins>¥{{secKillPrice}}</ins><del>¥{{marketPrice}}</del>
				</div>
			{{/if}}
			
			<div class="item-button">
				{{#if over}}
					<a href='/product/seckill/show_{{{productSkn}}}.html{{#if @root.isApp}}?openby:yohobuy={"action":"go.productDetail","params":{"product_skn":"{{productSkn}}"}}{{/if}}' class="btn btn-over">已抢光</a>
				{{else if wait}}
					{{#if @root.isApp}}
						{{#unless hideRemind}}
							<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>
						{{/unless}}
					{{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>

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