<!--加入到购物车的操作--> 
<div class="Gcart"> 
	<div class="btmbuy">
		<a href="mqqwpa://im/chat?chat_type=wpa&uin=&version=1&src_type=web&web_src=site.com">
			<i class="home"></i><span>客服</span>
		</a>
	</div>
	<div class="btmbuy">
		<a href="javascript:;" class="collect_goods" data-gid="<{$row.id}>" data-status="<{$row.collect_status}>">
			<i class="<{if $row.collect_status == '0'}>love<{else}>love2<{/if}>"></i><span>关注</span>
		</a>
	</div>
	<div class="btmbuy">
		<a href="<{$__WAP__}>cart">
			<i class="cart"></i>
			<span>购物车</span>
			<em class="cart_num uq_bgcolor" id="cart_num">0</em>
		</a>
	</div>
	<div class="buy_cart"> 
		<a href="javascript:;" class="uq_buy_cart addcart <{if $row.stock == '0'}>buy_no<{else}>buy_add<{/if}>" data-type="0">加入购物车</a> 
		<a href="javascript:;" class="uq_buy_now nowbuy <{if $row.stock == '0'}>buy_no<{else}>buy_add<{/if}>" data-type="1">立即购买</a>
	</div>
</div>

<!-- 产品规格 -->
<div class="buyContainer">
	<div class="sku_show">
		<div class="img"><img src="<{$__IMG__}><{$row.images|img_size:160x160}>"/></div>
		<div class="info"> 
			<div class="pr"><em>¥ </em><span class="value_price"><{$row.price}></span></div> 
			<div class="num"><em>库存 </em><span><{$row.stock}></span></div>
			<div class="ck_val"></div>
			<div class="skuClose">×</div>
		</div>
	</div>
	<div class="buyContainerCenter"> 
		<!--SKU规格数据--> 
		<{uqcms m="goods_sku" v="sku" c="get_list:id=smarty.get.id"}>
		<{if $sku.list}>
			<div class="sku"> 
				<{foreach item=i from=$sku.list}>			
				<dl>
					<dt><span class="sku_name_key" data-value="<{$i.name}>"><{$i.name}></span></dt>
					<dd> 
						<{foreach item=v from=$i.detail}>									
							<a data-id="<{$v.id}>" title="<{if $v.img_name}><{$v.img_name}><{else}><{$v.name}><{/if}>" href="javascript:;">
								<{if $v.img_url}><img src="<{$__IMG__}><{$v.img_url|img_size:60x60}>" data-img="<{$__IMG__}><{$v.img_url|img_size:160x160}>" width="35"/><{/if}>
								<em><{if $v.img_name}><{$v.img_name}><{else}><{$v.name}><{/if}></em>
							</a>
						<{/foreach}>  
					</dd> 
				</dl>
				<{/foreach}>
			</div>
			<input type="hidden" autocomplete="off" id="sku_id" data-sku="1" value=""/> 
		<{else}>
			<input type="hidden" autocomplete="off" id="sku_id" data-sku="0" value="<{$sku.id}>"/>
		<{/if}>
		<input type="hidden" id="goods_id" 	value="<{$row.id}>"/>
		<input type="hidden" id="shop_id" 	value="<{$row.shop_id}>"/> 
		<input type="hidden" id="share_id" 	value="<{$smarty.get.share_id}>"/>
		<input type="hidden" id="limit_num" value="<{$row.limit_num}>">
		<input type="hidden" id="stock" 	value="<{$row.stock}>">
		<div class="buynum">
			<dl>
				<dt><span>数量</span></dt>
				<dd>
					<div class="Gnum"> 
						<span class="lt"><a href="javascript:;" id="minus_button">-</a></span> 
						<input type="text" value="1" id="buy_num" autocomplete="off"/>
						<span class="rt"><a href="javascript:;" id="plus_button" max-num="<{$row.stock}>" >+</a></span>
					</div>
				</dd>
			</dl>
		</div>
	</div>
	<div class="add_sure">
		<a href="javascript:;" class="sure_button uq_bgcolor" data-type="">确定</a> 
	</div>
</div>
<div class="buyContainerBg"></div> 
<script>
<{if $sku.json}> 
	var SKU_DATA = <{$sku.json}>; 
<{/if}>
</script>