<?xml version="1.0"?>
<labeltemplate>
   <label>
    <![CDATA[
	<div class='ShoppingCart'>
		 <div class='Thead' style="display:none;">
			<span style="height:40px">商品名称</span>
			<span>市场价</span>
			<span>{$GetSalesPriceName}</span>
			<script>if ("{=getshopcommonconfig(43)}"=="1") document.write('<td>参与优惠活动</td>'); </script>
			<span>发货方式</span>
			<span>商品数量</span>
			<span>小计</span>
			<span>赠送积分</span>
		 </div>
		 <ul class="shop-list">
		 [recordloop]
		 <li>
		     <div class="pro-top clearfix">
			    <div class="fr">{KS:Attribute}</div>
			    <div class="proname"><a target='_blank' href='{KS:LinkUrl}' onclick='this.blur();'>{KS:Title}</a></div>
			 </div>
			 <div class='proBox clearfix'>
				<div class="fl proimg"><img src='{KS:DefaultPic}' onerror="replaceDefaultImg(this)" /></div>
				<div class="pro-info">
					<div class='proinfo pricemarket'>
						 <label>市场价：</label>
						 <span class="p-market">
							 {$GetCurrencySymbol}
							 <span id="{KS:CartID}">{KS:Price_Market}</span>
							 {$GetCurrencyUnit}
						 </span>
					</div>
					<div class='proinfo price2'><label>一口价：</label><span class="p-price">{KS:Price}</span></div>
					<div class="proinfo"><label>参与优惠活动：</label><script>if ("{=getshopcommonconfig(43)}"=="1") document.write("<td>{KS:IsPromotions}</td>"); </script></div>
					<div><label>发货方式：</label>{KS:ProductType}</div>
				</div>
			 </div>
			 <div class="pro-tottom">
				 <span>
					 共
					 <input type='hidden' id='num_{KS:CartID}' name='num_{KS:CartID}'  value='{KS:Num}'/>{KS:Num}
					 <input type="hidden" name="proid_{KS:CartID}" id="proid_{KS:CartID}" value="{KS:ProID}"/>件商品
				 </span>
				 <span>合计：<i class="totalp">{KS:SubTotal}</i></span>
				 <span id="subscore_{KS:CartID}" style="color: #777;">（赠送{KS:SubScore}积分）</span>
			 </div>
		 </li>
		 [/recordloop]
         </ul>
	</div>   
	<!--支付方式开始-->
	<div id="part_invoice">
	  <div class="h1">支付方式</div>
	  <div class='middle' id="ShowPaymentType">
		  {$KS:Field:ShowPayment}
	  </div>
	</div>
  	<div class='ShoppingCart' style=" background:#fff; margin-top:0.5rem;">
		<div>
			<div class="coutit">使用红包或者优惠券</div>
			<div class="coutip">
				<div class="coupon">
					 <div class='middle tip1'>
						<div class="showbox clearfix" id="showlist"> {$KS:Field:ShowCoupon}</div>
						<div class="showbox clearfix">
							<b id="text"><i onclick="SetCoupon()" style="cursor:pointer">或者输入券号</i></b>
							<span id="showcoupon"> 
							   <input type="text" class="coupontxt" id="couponnum" name="couponnum" size="15"/><input type="button" value="验证" onclick="validateCoupon(3,2)" class="btn"/>
							</span>
						</div>
					 </div>
				</div> 
				<div id="redpacket" class="tip2">
					 <div class='middle'>
						<div class="showbox clearfix">{$KS:Field:Showredpacket}</div>
					 </div>
				</div> 
			</div>
		</div>
		<div class="moneybox">
			 <table width="100%">
				  <tr>
					   <td id="showscore">
						  完成本次交易您可以得到<span class='price' style='color:green'> {KS:OrderScore}分 </span>的积分
					   </td>
					   <td>
						  商品总金额：
						  <span class="price" style="color:#ed7c40;">
							  {$GetCurrencySymbol}
							  <span id="goodsMoney">{KS:GoodsMoney}</span>
							  {$GetCurrencyUnit}
						  </span>
						  
						  <span class="yunfei">
						  （含运费：
							  {$GetCurrencySymbol}
							  <span id="orderFreight">0</span>
							  {$GetCurrencyUnit}）
						  </span>
						  <label id="showTaxes" style="display:none">
							  <br />
							  税金：
							  <span class="price" style="color:#ed7c40;">
								  {$GetCurrencySymbol}
								  <span id="Taxes">{KS:Taxes}</span>
								  {$GetCurrencyUnit}
							  </span>
						  </label>
						  <br>
						  <input type="hidden" name="as" id="tl_money" value="{KS:GoodsMoney}">
						  <span style='font-size:0.7rem'>支付总金额：<span style="color:#ed7c40;">{KS:OrderTotalPrice}</span></span>
						  <span id="showsave" style="font-size:0.7rem;display:None">
							 商场活动优惠：
							 <span class='saveMoney'>
								 {$GetCurrencySymbol}
								 <span id="SaveMoney">0</span>
								 {$GetCurrencyUnit}
							 </span>
						  </span>
						  <span id="ORDER_COSTS" style="font-size:0.7rem;"></span>
						  <span id="ORDER_COSTS1" style="font-size:0.7rem;"></span>
						  <span id="showFrontPrice" style='font-size:0.7rem'></span>
						  <span id="showMustPayPrice" style='font-size:0.7rem'></span>
					   </td>
				  </tr>
			 </table>
		</div>
    </div>
    <script>
	 $(document).ready(function(){
	   if ({KS:OrderScore}==0){
	    $("#showscore").hide();
	   }
     
	 });
	</script>


	]]>
   </label>
  <CouponList>
    <![CDATA[
      <li>	
			<a href="JavaScript:;" onclick="getcoupon('{KS:Field:CouponID}')" title="{KS:Field:CouponName}">	
				<p class="pro_name" title="{KS:Field:CouponName}">{KS:Field:CouponName}<span id="coupon_isHave{KS:Field:CouponID}">{KS:IsHave}</span></p>
			</a>		
      </li>
	 
    ]]>
  </CouponList>
</labeltemplate>