You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
1464 lines
82 KiB
1464 lines
82 KiB
|
3 years ago
|
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
||
|
|
<html xmlns="http://www.w3.org/1999/xhtml">
|
||
|
|
<head>
|
||
|
|
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
|
||
|
|
<meta name="Keywords" content="{$keywords}" />
|
||
|
|
<meta name="Description" content="{$description}" />
|
||
|
|
<!-- TemplateBeginEditable name="doctitle" -->
|
||
|
|
<title>{$page_title}</title>
|
||
|
|
<!-- TemplateEndEditable -->
|
||
|
|
<!-- TemplateBeginEditable name="head" -->
|
||
|
|
<!-- TemplateEndEditable -->
|
||
|
|
<link rel="shortcut icon" href="favicon.ico" />
|
||
|
|
<link rel="icon" href="animated_favicon.gif" type="image/gif" />
|
||
|
|
<link rel="stylesheet" type="text/css" href="themes/<?php echo $GLOBALS['_CFG']['template']; ?>/base.css" />
|
||
|
|
<link href="{$ecs_css_path}" rel="stylesheet" type="text/css" />
|
||
|
|
<link rel="alternate" type="application/rss+xml" title="RSS|{$page_title}" href="{$feed_url}" />
|
||
|
|
<link rel="stylesheet" href="themes/<?php echo $GLOBALS['_CFG']['template']; ?>/purebox.css">
|
||
|
|
{if $step eq 'cart'}
|
||
|
|
<link href="themes/<?php echo $GLOBALS['_CFG']['template']; ?>/area_stock.css" rel="stylesheet" type="text/css" />
|
||
|
|
{/if}
|
||
|
|
{* 包含脚本文件 *}
|
||
|
|
{insert_scripts files='jquery-1.9.1.min.js,jquery.json.js,transport_jquery.js,common.js,shopping_flow.js'}
|
||
|
|
|
||
|
|
<script type="text/javascript" src="themes/<?php echo $GLOBALS['_CFG']['template']; ?>/js/jquery-migrate-1.1.0.js"></script>
|
||
|
|
<script type="text/javascript" src="themes/<?php echo $GLOBALS['_CFG']['template']; ?>/js/sc_common.js"></script>
|
||
|
|
<script type="text/javascript" src="themes/<?php echo $GLOBALS['_CFG']['template']; ?>/js/jquery.SuperSlide.2.1.1.js"></script>
|
||
|
|
<script type="text/javascript" src="themes/<?php echo $GLOBALS['_CFG']['template']; ?>/js/checkAll.js"></script>
|
||
|
|
<script type="text/javascript" src="themes/<?php echo $GLOBALS['_CFG']['template']; ?>/js/scroll_city.js"></script>
|
||
|
|
<script type="text/javascript" src="themes/<?php echo $GLOBALS['_CFG']['template']; ?>/js/notLogin.js"></script>
|
||
|
|
</head>
|
||
|
|
|
||
|
|
<body>
|
||
|
|
<!-- #BeginLibraryItem "/library/page_header_flow.lbi" --><!-- #EndLibraryItem -->
|
||
|
|
<!-- {if $step eq "cart"} -->
|
||
|
|
<script type="text/javascript">
|
||
|
|
{foreach from=$lang.password_js item=item key=key}
|
||
|
|
var {$key} = "{$item}";
|
||
|
|
{/foreach}
|
||
|
|
</script>
|
||
|
|
<div id="container" class="cart">
|
||
|
|
<div class="ecscshop-filter-bar w1200">
|
||
|
|
<div class="ecscshop-title">
|
||
|
|
<i class="ecscshop-icon cart-icon"></i><h3 class="ml15">购物车( <em class="cart_check_num"></em> )</h3>
|
||
|
|
</div>
|
||
|
|
<div style="float:right; padding-left:20px;">
|
||
|
|
{insert_scripts files='warehouse.js'}
|
||
|
|
<div class="fl" style="padding-top:5px;">配送至:</div>
|
||
|
|
<div class="store-selector fl">
|
||
|
|
<div class="text-select" id="area_address">
|
||
|
|
<div class="area_tit">
|
||
|
|
<span>{$province_row.region_name} {$city_row.region_name} {$district_row.region_name}</span><i class="sc-icon-right"></i>
|
||
|
|
</div>
|
||
|
|
<div class="area_brand"></div>
|
||
|
|
<div class="flow_area_list_style" id="area_list">
|
||
|
|
<div class="select_area_style" id="select_area">
|
||
|
|
<div class="select_area_box">
|
||
|
|
<div class="select_tab" onclick="region.selectArea(this, 1);" value="{$province_row.region_id}" id="province_li">{$province_row.region_name}<i class="sc-icon-right"></i></div>
|
||
|
|
<div class="select_tab" style="{if $district_row.region_name eq ''}background:#fff;{/if}" onclick="region.selectArea(this, 2);" value="{$city_row.region_id}" id="city_li">{$city_row.region_name}<i class="sc-icon-right"></i></div>
|
||
|
|
<div class="select_tab curr" style="{if $district_row.region_name eq ''}display:none;{/if} {if $district_row.region_name}background:#fff{/if}" onclick="region.selectArea(this, 3);" value="{$city_district.region_id}" id="district_type">{$district_row.region_name}<i class="sc-icon-right"></i></div>
|
||
|
|
</div>
|
||
|
|
</div>
|
||
|
|
<b onclick="region.closeRegion();" title="close" class="close_area_list"></b>
|
||
|
|
<div class="house_list_style" id="house_list" style="display:none;" >
|
||
|
|
<ul id="province_list">
|
||
|
|
<!-- 省、直辖市 start -->
|
||
|
|
{foreach from=$province_list item=province name=noprovince}
|
||
|
|
<li>
|
||
|
|
<a v="{$province.region_id}" title="{$province.region_name}" onclick="region.getRegion({$province.region_id}, 2, city_list, this,{$user_id});" href="javascript:void(0);">{$province.region_name}</a>
|
||
|
|
</li>
|
||
|
|
{/foreach}
|
||
|
|
<!-- 省、直辖市 start -->
|
||
|
|
</ul>
|
||
|
|
</div>
|
||
|
|
<div style="{if $district_row.region_name eq ''}display: block;{else}display: none;{/if}" class="house_list_style" id="city_list_id">
|
||
|
|
<ul id="city_list">
|
||
|
|
<!-- 市区 start -->
|
||
|
|
{foreach from=$city_list item=city name=nocity}
|
||
|
|
<li>
|
||
|
|
<a v="{$city.region_id}" title="{$city.region_name}" onclick="region.getRegion({$city.region_id}, 3, district_list, '{$city.region_name}',{$user_id});" href="javascript:void(0);">{$city.region_name}</a>
|
||
|
|
</li>
|
||
|
|
{/foreach}
|
||
|
|
<!-- 市区 end -->
|
||
|
|
</ul>
|
||
|
|
</div>
|
||
|
|
<div style="{if $district_row.region_name eq ''}display: none;{else}display: block;{/if}" class="house_list_style" id="district_list_id">
|
||
|
|
<ul id="district_list">
|
||
|
|
<!-- 县 start -->
|
||
|
|
{foreach from=$district_list item=district name=nodistrict}
|
||
|
|
<li>
|
||
|
|
<a v="{$county.region_id}" title="{$district.region_name}" onclick="region.changedDis({$district.region_id},{$user_id});" href="javascript:void(0);" id="district_{$district.region_id}">{$district.region_name}</a>
|
||
|
|
</li>
|
||
|
|
{/foreach}
|
||
|
|
<!-- 县 start -->
|
||
|
|
</ul>
|
||
|
|
</div>
|
||
|
|
<p class="mod_storage_state">商创商品暂时只支持配送至中国大陆地区</p>
|
||
|
|
</div>
|
||
|
|
</div>
|
||
|
|
</div>
|
||
|
|
<input type="hidden" value="{$province_row.region_id}" id="province_id" name="province_region_id">
|
||
|
|
<input type="hidden" value="{$city_row.region_id}" id="city_id" name="city_region_id">
|
||
|
|
<input type="hidden" value="{if $district_row.region_id}{$district_row.region_id}{else}0{/if}" id="district_id" name="district_region_id">
|
||
|
|
<input type="hidden" value="{$flow_region}" id="region_id" name="region_id">
|
||
|
|
<input type="hidden" value="" id="good_id" name="good_id">
|
||
|
|
<input type="hidden" value="{$user_id}" id="user_id" name="user_id">
|
||
|
|
<input type="hidden" value="{$area_id}" id="area_id" name="area_id">
|
||
|
|
</div>
|
||
|
|
</div>
|
||
|
|
{if $goods_list}
|
||
|
|
<div class="cart-warp w1200">
|
||
|
|
<div id="ecsc-cart" class="cart-main">
|
||
|
|
<div class="cart-thead">
|
||
|
|
<div class="column t-checkbox cart-checkbox">
|
||
|
|
<input type="checkbox" id="cart-selectall" checked="checked" class="ui-checkbox checkboxshopAll" />
|
||
|
|
<label for="cart-selectall" class="cart-select-all">全选</label>
|
||
|
|
</div>
|
||
|
|
<div class="column t-goods">商品</div>
|
||
|
|
<div class="column t-attr">属性</div>
|
||
|
|
<div class="column t-price">单价(元)</div>
|
||
|
|
<div class="column t-quantity">数量</div>
|
||
|
|
<div class="column t-sum">小计(元)</div>
|
||
|
|
<div class="column t-action">操作</div>
|
||
|
|
</div>
|
||
|
|
<div id="cart-list">
|
||
|
|
<!-- {foreach from=$goods_list item=goodsRu} -->
|
||
|
|
<div class="cart-item-list">
|
||
|
|
<div class="cart-tbody">
|
||
|
|
<div class="shop">
|
||
|
|
<div class="cart-checkbox">
|
||
|
|
<input type="checkbox" checked="checked" name="checkShop" class="ui-checkbox CheckBoxShop" id="shopid_{$goodsRu.ru_id}">
|
||
|
|
<label for="shopid_{$goodsRu.ru_id}"> </label>
|
||
|
|
</div>
|
||
|
|
<span class="shop-txt"><a href="{$goodsRu.url}" target="_blank" class="shop-name">{$goodsRu.ru_name}</a></span>
|
||
|
|
</div>
|
||
|
|
<div class="item-list">
|
||
|
|
<!-- {foreach from=$goodsRu.new_list item=activity key=key} 活动-->
|
||
|
|
|
||
|
|
<!-- {if $activity.act_id gt 0} -->
|
||
|
|
<div class="item-body item_give" id="product_promo_{$activity.act_id}" data-actid="{$activity.act_id}">
|
||
|
|
<div class="item-full minus-item">
|
||
|
|
<div class="item-header">
|
||
|
|
<!-- {if $activity.act_type eq 0} 如果是满赠 -->
|
||
|
|
<div class="f-txt">
|
||
|
|
<span class="full-icon">{$activity.act_type_txt}<b></b></span>
|
||
|
|
<!-- {if $activity.act_type_ext eq 0} -->
|
||
|
|
<!-- {if $activity.available} 满足最低消费-->
|
||
|
|
<a href="coudan.php?id={$activity.act_id}" target="_blank">
|
||
|
|
<span>活动商品已购满{$activity.min_amount}元 ,可领取赠品{if $activity.cart_favourable_gift_num gt 0},已领取{$activity.cart_favourable_gift_num}件{/if}>
|
||
|
|
</span>
|
||
|
|
</a>
|
||
|
|
<a class="trade-btn btn-1 ml10" href="javascript:void(0);" data-actid="{$activity.act_id}" id="select-gift-{$activity.act_id}">领取赠品</a>
|
||
|
|
|
||
|
|
<!-- {else} -->
|
||
|
|
<a href="coudan.php?id={$activity.act_id}" target="_blank"><span>活动商品购满{$activity.min_amount}元,即可领取赠品 > </span></a>
|
||
|
|
<a class="trade-btn btn-1 ml10" href="javascript:void(0);" data-actid="{$activity.act_id}" id="select-gift-{$activity.act_id}">查看赠品</a>
|
||
|
|
<!-- {/if} -->
|
||
|
|
<!-- {else} -->
|
||
|
|
<!-- {if $activity.available} 满足最低消费-->
|
||
|
|
<a href="coudan.php?id={$activity.act_id}" target="_blank"><span>活动商品已购满{$activity.min_amount}元 ,可领取赠品{$activity.act_type_ext}件 ,还可领取{$activity.left_gift_num}件 > </span></a>
|
||
|
|
<a class="trade-btn btn-1 ml10" href="javascript:void(0);" data-actid="{$activity.act_id}" id="select-gift-{$activity.act_id}">领取赠品</a>
|
||
|
|
<!-- {else} -->
|
||
|
|
<a href="coudan.php?id={$activity.act_id}" target="_blank"><span>活动商品购满{$activity.min_amount}元,即可领取赠品{$activity.act_type_ext}件 > </span></a>
|
||
|
|
<a class="trade-btn btn-1 ml10" href="javascript:void(0);" data-actid="{$activity.act_id}" id="select-gift-{$activity.act_id}">查看赠品</a>
|
||
|
|
<!-- {/if} -->
|
||
|
|
<!-- {/if} -->
|
||
|
|
<a href="coudan.php?id={$activity.act_id}" target="_blank" class="ftx-05"> 去凑单 ></a>
|
||
|
|
<span class="full-txt">{$goods.act_name}</span>
|
||
|
|
</div>
|
||
|
|
<div class="f-price"><span>{$activity.cart_fav_amount}</span></div>
|
||
|
|
|
||
|
|
<!-- {elseif $activity.act_type eq 1} 满减 -->
|
||
|
|
<div class="f-txt">
|
||
|
|
<span class="full-icon">{$activity.act_type_txt}<b></b></span>
|
||
|
|
<!-- {if $activity.available} 满足最低消费-->
|
||
|
|
<span>活动商品已购满{$activity.min_amount}元 (<span class="ftx-01">已减{$activity.act_type_ext_format}元</span>)</span>
|
||
|
|
<!-- {else} -->
|
||
|
|
<span>活动商品购满{$activity.min_amount}元, 即可享受满减</span>
|
||
|
|
<!-- {/if} -->
|
||
|
|
<a href="coudan.php?id={$activity.act_id}" target="_blank" class="ftx-05"> 去凑单 ></a>
|
||
|
|
<span class="full-txt">{$goods.act_name}</span>
|
||
|
|
</div>
|
||
|
|
<div class="f-price"><span>{$activity.cart_fav_amount}</span>
|
||
|
|
<!-- {if $activity.available} 满足最低消费-->
|
||
|
|
<span class="ftx-01">减:{$activity.act_type_ext_format}元</span>
|
||
|
|
<!-- {/if} -->
|
||
|
|
</div>
|
||
|
|
|
||
|
|
<!-- {elseif $activity.act_type eq 2} 折扣 -->
|
||
|
|
<div class="f-txt">
|
||
|
|
<span class="full-icon">{$activity.act_type_txt}<b></b></span>
|
||
|
|
<!-- {if $activity.available} 满足最低消费-->
|
||
|
|
<span>活动商品已购满{$activity.min_amount}元 (已享受{$activity.act_type_ext_format}折优惠)</span>
|
||
|
|
<!-- {else} -->
|
||
|
|
<span>活动商品购满{$activity.min_amount}元, 即可享受折扣</span>
|
||
|
|
<!-- {/if} -->
|
||
|
|
<a href="coudan.php?id={$activity.act_id}" target="_blank" class="ftx-05"> 去凑单 ></a>
|
||
|
|
<span class="full-txt">{$goods.act_name}</span>
|
||
|
|
</div>
|
||
|
|
<div class="f-price"><span>{$activity.cart_fav_amount}</span>
|
||
|
|
<!-- {if $activity.available} 满足最低消费-->
|
||
|
|
<span class="ftx-01">折扣:{$activity.act_type_ext_format}折</span>
|
||
|
|
<!-- {/if} -->
|
||
|
|
</div>
|
||
|
|
<!-- {/if} -->
|
||
|
|
</div>
|
||
|
|
<!-- {foreach from=$activity.act_cart_gift item=goods} 赠品开始 -->
|
||
|
|
<div class="item-item">
|
||
|
|
<div class="item-form">
|
||
|
|
<div class="cell p-checkbox hide">
|
||
|
|
<div class="cart-checkbox">
|
||
|
|
<input type="checkbox" name="checkItem" value="{$goods.rec_id}" id="checkItem_{$goods.rec_id}" checked="checked" class="ui-checkbox">
|
||
|
|
<label for="checkItem_{$goods.rec_id}"> </label>
|
||
|
|
</div>
|
||
|
|
</div>
|
||
|
|
<div class="cell p-goods">
|
||
|
|
<div class="goods-item">
|
||
|
|
<div class="p-img"><a href="{$goods.url}" target="_blank"><img src="{$goods.goods_thumb}" width="80" height="80" /></a></div>
|
||
|
|
<div class="item-msg">
|
||
|
|
<div class="p-name">
|
||
|
|
<em class="s-ico">赠品</em>
|
||
|
|
<a href="{$goods.url}" target="_blank">{$goods.goods_name}</a>
|
||
|
|
</div>
|
||
|
|
<div class="p-extend">
|
||
|
|
<span class="promise"></span>
|
||
|
|
<span class="promise"></span>
|
||
|
|
</div>
|
||
|
|
</div>
|
||
|
|
</div>
|
||
|
|
</div>
|
||
|
|
<div class="cell p-attr">
|
||
|
|
{if $goods.goods_attr}{$goods.goods_attr|nl2br}{/if}
|
||
|
|
<span class="btn-edit-sku">修改</span>
|
||
|
|
</div>
|
||
|
|
<div class="cell p-price">
|
||
|
|
<strong>{$goods.goods_price}</strong>
|
||
|
|
</div>
|
||
|
|
<div class="cell p-quantity">
|
||
|
|
<!-- {if $goods.goods_id gt 0 && $goods.is_gift eq 0 && $goods.parent_id eq 0 && $goods.extension_code neq 'package_buy'} 普通商品可修改数量 -->
|
||
|
|
<div class="quantity-form">
|
||
|
|
<a href="javascript:void(0)" onclick="changenum({$goods.rec_id}, -1, {$goods.warehouse_id}, {$goods.area_id}),{$activity.act_id}" class="decrement">-</a>
|
||
|
|
<input autocomplete="off" type="text" name="goods_number[{$goods.rec_id}]" id="goods_number_{$goods.rec_id}" value="{$goods.goods_number}" class="itxt" onchange="change_goods_number({$goods.rec_id},this.value, {$goods.warehouse_id}, {$goods.area_id}, '', {$activity.act_id})" style="text-align:center"/>
|
||
|
|
<a href="javascript:void(0)" onclick="changenum({$goods.rec_id}, 1, {$goods.warehouse_id}, {$goods.area_id}, {$activity.act_id})" class="increment">+</a>
|
||
|
|
</div>
|
||
|
|
<div class="quantity-txt">
|
||
|
|
<!-- {if $goods.attr_number} -->
|
||
|
|
有货
|
||
|
|
<!-- {else} -->
|
||
|
|
<font style="color:#e4393c">无货</font>
|
||
|
|
<!-- {/if} -->
|
||
|
|
</div>
|
||
|
|
<!-- {else} - -->
|
||
|
|
<div class="quantity-form">
|
||
|
|
<input class="itxt noeidx" id="{$goods.group_id}_{$goods.rec_id}" readonly="readonly" value="{$goods.goods_number}" />
|
||
|
|
</div>
|
||
|
|
<!-- {/if} -->
|
||
|
|
</div>
|
||
|
|
<div class="cell p-sum">
|
||
|
|
<strong id="goods_subtotal_{$goods.rec_id}">
|
||
|
|
<font id="{$goods.group_id}_{$goods.rec_id}_subtotal">{$goods.subtotal}</font>
|
||
|
|
{if $goods.dis_amount > 0}
|
||
|
|
<font style="color:#F60">(优惠:{$goods.discount_amount})</font>
|
||
|
|
{/if}
|
||
|
|
</strong>
|
||
|
|
</div>
|
||
|
|
<div class="cell p-ops">
|
||
|
|
<a id="remove_{$goods.rec_id}" class="cart-remove" href="javascript:void(0);" data-dialog="dialog" data-divid="cart_remove" data-removeurl="flow.php?step=drop_to_collect&id={$goods.rec_id}" data-collecturl="flow.php?step=drop_goods&id={$goods.rec_id}" data-recid="{$goods.rec_id}" data-title="删除">删除</a>
|
||
|
|
<a id="store_{$goods.rec_id}" class="cart-store" href="javascript:void(0);" data-dialog="dialog" data-divid="cart_collect" data-removeurl="flow.php?step=drop_to_collect&id={$goods.rec_id}" data-collecturl="flow.php?step=drop_goods&id={$goods.rec_id}" data-recid="{$goods.rec_id}" data-title="关注">移到我的收藏</a>
|
||
|
|
</div>
|
||
|
|
</div>
|
||
|
|
<div class="item-extra"></div>
|
||
|
|
</div>
|
||
|
|
<!-- {/foreach} 赠品结束-->
|
||
|
|
|
||
|
|
<!-- {foreach from=$activity.act_goods_list item=goods} 优惠活动商品 -->
|
||
|
|
<div class="item-item">
|
||
|
|
<div class="item-form">
|
||
|
|
<div class="cell p-checkbox">
|
||
|
|
<div class="cart-checkbox">
|
||
|
|
<input type="checkbox" name="checkItem" value="{$goods.rec_id}" id="checkItem_{$goods.rec_id}" checked="checked" class="ui-checkbox">
|
||
|
|
<label for="checkItem_{$goods.rec_id}"> </label>
|
||
|
|
</div>
|
||
|
|
</div>
|
||
|
|
<div class="cell p-goods">
|
||
|
|
<div class="goods-item">
|
||
|
|
<div class="p-img"><a href="{$goods.url}" target="_blank"><img src="{$goods.goods_thumb}" width="80" height="80" /></a></div>
|
||
|
|
<div class="item-msg">
|
||
|
|
<div class="p-name">
|
||
|
|
<a href="{$goods.url}" target="_blank">{$goods.goods_name}</a>
|
||
|
|
</div>
|
||
|
|
<div class="p-extend">
|
||
|
|
<span class="promise"></span>
|
||
|
|
<span class="promise"></span>
|
||
|
|
</div>
|
||
|
|
</div>
|
||
|
|
</div>
|
||
|
|
</div>
|
||
|
|
<div class="cell p-attr">
|
||
|
|
{if $goods.goods_attr}{$goods.goods_attr|nl2br}{/if}
|
||
|
|
<span class="btn-edit-sku">修改</span>
|
||
|
|
</div>
|
||
|
|
<div class="cell p-price">
|
||
|
|
<strong>{$goods.goods_price}</strong>
|
||
|
|
</div>
|
||
|
|
<div class="cell p-quantity">
|
||
|
|
<!-- {if $goods.goods_id gt 0 && $goods.is_gift eq 0 && $goods.parent_id eq 0 && $goods.extension_code neq 'package_buy'} 普通商品可修改数量 -->
|
||
|
|
<div class="quantity-form">
|
||
|
|
<a href="javascript:void(0)" onclick="changenum({$goods.rec_id}, -1, {$goods.warehouse_id}, {$goods.area_id}, {$activity.act_id})" class="decrement">-</a>
|
||
|
|
<input autocomplete="off" type="text" name="goods_number[{$goods.rec_id}]" id="goods_number_{$goods.rec_id}" value="{$goods.goods_number}" class="itxt" onchange="change_goods_number({$goods.rec_id},this.value, {$goods.warehouse_id}, {$goods.area_id}, '', {$activity.act_id})" style="text-align:center"/>
|
||
|
|
<a href="javascript:void(0)" onclick="changenum({$goods.rec_id}, 1, {$goods.warehouse_id}, {$goods.area_id}, {$activity.act_id})" class="increment">+</a>
|
||
|
|
</div>
|
||
|
|
<div class="quantity-txt">
|
||
|
|
<!-- {if $goods.attr_number} -->
|
||
|
|
有货
|
||
|
|
<!-- {else} -->
|
||
|
|
<font style="color:#e4393c">无货</font>
|
||
|
|
<!-- {/if} -->
|
||
|
|
</div>
|
||
|
|
<!-- {else} - -->
|
||
|
|
<font style="color:#666; font-size:12px;" id="{$goods.group_id}_{$goods.rec_id}">{$goods.goods_number}</font>
|
||
|
|
<!-- {/if} -->
|
||
|
|
</div>
|
||
|
|
<div class="cell p-sum">
|
||
|
|
<strong id="goods_subtotal_{$goods.rec_id}">
|
||
|
|
<font id="{$goods.group_id}_{$goods.rec_id}_subtotal">{$goods.subtotal}</font>
|
||
|
|
{if $goods.dis_amount > 0}
|
||
|
|
<font style="color:#F60">(优惠:{$goods.discount_amount})</font>
|
||
|
|
{/if}
|
||
|
|
</strong>
|
||
|
|
</div>
|
||
|
|
<div class="cell p-ops">
|
||
|
|
<a id="remove_{$goods.rec_id}" class="cart-remove" href="javascript:void(0);" data-dialog="dialog" data-divid="cart_remove" data-removeurl="flow.php?step=drop_to_collect&id={$goods.rec_id}" data-collecturl="flow.php?step=drop_goods&id={$goods.rec_id}" data-recid="{$goods.rec_id}" data-title="删除">删除</a>
|
||
|
|
<a id="store_{$goods.rec_id}" class="cart-store" href="javascript:void(0);" data-dialog="dialog" data-divid="cart_collect" data-removeurl="flow.php?step=drop_to_collect&id={$goods.rec_id}" data-collecturl="flow.php?step=drop_goods&id={$goods.rec_id}" data-recid="{$goods.rec_id}" data-title="关注">移到我的收藏</a>
|
||
|
|
</div>
|
||
|
|
</div>
|
||
|
|
<div class="item-extra"></div>
|
||
|
|
</div>
|
||
|
|
<!-- {/foreach} 活动商品结束-->
|
||
|
|
|
||
|
|
<!-- {if $activity.act_gift_list} 如果活动存在赠品 -->
|
||
|
|
<div class="gift-box" id="gift_box_list{$activity.act_id}" style="display:none;">
|
||
|
|
<!-- #BeginLibraryItem "/library/cart_gift_box.lbi" --><!-- #EndLibraryItem -->
|
||
|
|
</div>
|
||
|
|
<!-- {/if} -->
|
||
|
|
</div>
|
||
|
|
</div>
|
||
|
|
<!-- {else} -->
|
||
|
|
<!-- {foreach from=$activity.act_goods_list item=goods} 普通商品开始 -->
|
||
|
|
<div class="item-body item_single" id="product_{$goods.goods_id}">
|
||
|
|
<div class="item-full minus-item">
|
||
|
|
<div class="item-item">
|
||
|
|
<div class="item-form">
|
||
|
|
<div class="cell p-checkbox">
|
||
|
|
<div class="cart-checkbox">
|
||
|
|
<input type="checkbox" name="checkItem" value="{$goods.rec_id}" id="checkItem_{$goods.rec_id}" checked="checked" class="ui-checkbox">
|
||
|
|
<label for="checkItem_{$goods.rec_id}"> </label>
|
||
|
|
</div>
|
||
|
|
</div>
|
||
|
|
<div class="cell p-goods">
|
||
|
|
<div class="goods-item">
|
||
|
|
<!-- {if $goods.goods_id gt 0 && $goods.extension_code neq 'package_buy'} -->
|
||
|
|
<div class="p-img">
|
||
|
|
<a href="{$goods.url}" target="_blank"><img src="{$goods.goods_thumb}" width="80" height="80" /></a>
|
||
|
|
</div>
|
||
|
|
<!-- {/if} -->
|
||
|
|
<div class="item-msg">
|
||
|
|
<div class="p-name">
|
||
|
|
<!-- {if $goods.goods_id gt 0 && $goods.extension_code eq 'package_buy'} -->
|
||
|
|
<a href="javascript:void(0);" onclick="setSuitShow({$goods.goods_id})">{$goods.goods_name}</a>
|
||
|
|
<span style="color:#FF0000">({$lang.remark_package})</span>
|
||
|
|
|
||
|
|
<div id="suit_{$goods.goods_id}" class="package_goods">
|
||
|
|
<!-- {foreach from=$goods.package_goods_list item=package_goods_list name=nopackage} -->
|
||
|
|
<!-- {if !$smarty.foreach.nopackage.first} -->
|
||
|
|
<a href="goods.php?id={$package_goods_list.goods_id}" target="_blank" class="f6">
|
||
|
|
<img src="{$package_goods_list.goods_thumb}" width="40" height="40" />
|
||
|
|
</a>
|
||
|
|
<!-- {/if} -->
|
||
|
|
<!-- {/foreach} -->
|
||
|
|
</div>
|
||
|
|
|
||
|
|
<!-- {else} -->
|
||
|
|
<a href="{$goods.url}" target="_blank">{$goods.goods_name}</a>
|
||
|
|
<!-- {/if} -->
|
||
|
|
</div>
|
||
|
|
</div>
|
||
|
|
</div>
|
||
|
|
</div>
|
||
|
|
<div class="cell p-attr">
|
||
|
|
{if $goods.goods_attr}{$goods.goods_attr|nl2br}{/if}
|
||
|
|
<span class="btn-edit-sku">修改</span>
|
||
|
|
</div>
|
||
|
|
<div class="cell p-price">
|
||
|
|
<strong>{$goods.goods_price}</strong>
|
||
|
|
</div>
|
||
|
|
<div class="cell p-quantity">
|
||
|
|
<!-- {if $goods.goods_id gt 0 && $goods.is_gift eq 0 && $goods.parent_id eq 0 && $goods.extension_code neq 'package_buy'} 普通商品可修改数量 -->
|
||
|
|
<div class="quantity-form">
|
||
|
|
<a href="javascript:void(0)" onclick="changenum({$goods.rec_id}, -1, {$goods.warehouse_id}, {$goods.area_id})" class="decrement">-</a>
|
||
|
|
<input autocomplete="off" type="text" name="goods_number[{$goods.rec_id}]" id="goods_number_{$goods.rec_id}" value="{$goods.goods_number}" class="itxt" onchange="change_goods_number({$goods.rec_id},this.value, {$goods.warehouse_id}, {$goods.area_id})" style="text-align:center"/>
|
||
|
|
<a href="javascript:void(0)" onclick="changenum({$goods.rec_id}, 1, {$goods.warehouse_id}, {$goods.area_id})" class="increment">+</a>
|
||
|
|
</div>
|
||
|
|
<div class="quantity-txt">
|
||
|
|
<!-- {if $goods.attr_number} -->
|
||
|
|
有货
|
||
|
|
<!-- {else} -->
|
||
|
|
<font style="color:#e4393c">无货</font>
|
||
|
|
<!-- {/if} -->
|
||
|
|
</div>
|
||
|
|
<!-- {else} - -->
|
||
|
|
<font style="color:#666; font-size:12px;" id="{$goods.group_id}_{$goods.rec_id}">{$goods.goods_number}</font>
|
||
|
|
<!-- {/if} -->
|
||
|
|
</div>
|
||
|
|
<div class="cell p-sum">
|
||
|
|
<strong id="goods_subtotal_{$goods.rec_id}">
|
||
|
|
<font id="{$goods.group_id}_{$goods.rec_id}_subtotal">{$goods.subtotal}</font>
|
||
|
|
{if $goods.dis_amount > 0}
|
||
|
|
<font style="color:#F60">(优惠:{$goods.discount_amount})</font>
|
||
|
|
{/if}
|
||
|
|
</strong>
|
||
|
|
</div>
|
||
|
|
<div class="cell p-ops">
|
||
|
|
<a id="remove_{$goods.rec_id}" class="cart-remove" href="javascript:void(0);" data-dialog="dialog" data-divid="cart_remove" data-removeurl="flow.php?step=drop_to_collect&id={$goods.rec_id}" data-collecturl="flow.php?step=drop_goods&id={$goods.rec_id}" data-recid="{$goods.rec_id}" data-title="删除">删除</a>
|
||
|
|
<a id="store_{$goods.rec_id}" class="cart-store" href="javascript:void(0);" data-dialog="dialog" data-divid="cart_collect" data-removeurl="flow.php?step=drop_to_collect&id={$goods.rec_id}" data-collecturl="flow.php?step=drop_goods&id={$goods.rec_id}" data-recid="{$goods.rec_id}" data-title="关注">移到我的收藏</a>
|
||
|
|
</div>
|
||
|
|
</div>
|
||
|
|
<div class="item-extra"></div>
|
||
|
|
</div>
|
||
|
|
</div>
|
||
|
|
</div>
|
||
|
|
<!-- {/foreach} 普通商品结束-->
|
||
|
|
<!-- {/if} -->
|
||
|
|
<!-- {/foreach} 活动结束-->
|
||
|
|
</div>
|
||
|
|
</div>
|
||
|
|
</div>
|
||
|
|
<!-- {/foreach} 店铺结束-->
|
||
|
|
<script type="text/javascript">
|
||
|
|
// 添加赠品到购物车
|
||
|
|
function add_gift_cart(act_id)
|
||
|
|
{
|
||
|
|
var arr ="";
|
||
|
|
var gift = $("#product_promo_"+act_id);
|
||
|
|
gift.find(".cart-gift-checkbox input").each(function(){
|
||
|
|
if($(this).prop("checked")==true){
|
||
|
|
var val = $(this).val();
|
||
|
|
arr += val+',';
|
||
|
|
}
|
||
|
|
});
|
||
|
|
|
||
|
|
select_gift = arr.substring(0,arr.length-1);
|
||
|
|
Ajax.call('flow.php?step=add_favourable', 'act_id=' + act_id + '&select_gift=' + select_gift, add_gift_cart_response, 'POST', 'JSON');
|
||
|
|
}
|
||
|
|
function add_gift_cart_response(result)
|
||
|
|
{
|
||
|
|
if (result.error)
|
||
|
|
{
|
||
|
|
alert(result.message);
|
||
|
|
return false;
|
||
|
|
}
|
||
|
|
else
|
||
|
|
{
|
||
|
|
var cart_favourable_box = document.getElementById('product_promo_'+result.act_id);
|
||
|
|
if (cart_favourable_box)
|
||
|
|
{
|
||
|
|
$("#product_promo_" + result.act_id).parent().parent('.cart-tbody').addClass('all-select');
|
||
|
|
cart_favourable_box.innerHTML = result.content;
|
||
|
|
}
|
||
|
|
}
|
||
|
|
|
||
|
|
// 更新价格
|
||
|
|
var cart_check_num = get_checkItem_num();
|
||
|
|
var all_cart_value = get_cart_value();
|
||
|
|
sfAll(all_cart_value, cart_check_num);
|
||
|
|
}
|
||
|
|
|
||
|
|
//获取购物车已选商品数量
|
||
|
|
function get_checkItem_num(){
|
||
|
|
|
||
|
|
var num = 0;
|
||
|
|
|
||
|
|
$("input[name='checkItem']").each(function(index, element) {
|
||
|
|
if($(element).is(":checked")){
|
||
|
|
var selectNum = Number($(this).parents('.item-form').find(".itxt").val());
|
||
|
|
num += selectNum;
|
||
|
|
}
|
||
|
|
});
|
||
|
|
|
||
|
|
return num;
|
||
|
|
}
|
||
|
|
|
||
|
|
//获取购物车已选ID
|
||
|
|
function get_cart_value(){
|
||
|
|
var cart_value = '';
|
||
|
|
$("input[name='checkItem']").each(function(index, element) {
|
||
|
|
if($(element).is(':checked')){
|
||
|
|
cart_value += $(element).val() + ",";
|
||
|
|
}
|
||
|
|
});
|
||
|
|
|
||
|
|
cart_value = cart_value.substring(0,cart_value.length-1)
|
||
|
|
|
||
|
|
return cart_value;
|
||
|
|
}
|
||
|
|
//判断是否全选了
|
||
|
|
function sfAll(all_cart_value, cart_check_num){
|
||
|
|
var orderLength = $("#cart-list .item-item input[type='checkbox']:checked").length;
|
||
|
|
var orderCheckbox = $("#cart-list .item-item input[type='checkbox']");
|
||
|
|
var checkboxshop = $(".checkboxshopAll");
|
||
|
|
var cartValue = $("input[name='cart_value']");
|
||
|
|
|
||
|
|
if( orderLength == orderCheckbox.length){
|
||
|
|
checkboxshop.prop("checked",true);
|
||
|
|
checkboxshop.parent().addClass("cart-checkbox-checked");
|
||
|
|
}else{
|
||
|
|
checkboxshop.prop("checked",false);
|
||
|
|
checkboxshop.parent().removeClass("cart-checkbox-checked");
|
||
|
|
}
|
||
|
|
|
||
|
|
$('.cart_check_num').html(cart_check_num);
|
||
|
|
cartValue.val(all_cart_value);
|
||
|
|
|
||
|
|
//获取选择的购物车ID的商品信息
|
||
|
|
change_cart_goods_number(all_cart_value);
|
||
|
|
}
|
||
|
|
function change_cart_goods_number(rec_id, favourable_id, recid)
|
||
|
|
{
|
||
|
|
var ajax_where = '';
|
||
|
|
if(typeof(favourable_id) != 'undefined'){
|
||
|
|
ajax_where = '&favourable_id=' + favourable_id+'&recid=' + recid;
|
||
|
|
}
|
||
|
|
|
||
|
|
Ajax.call('flow.php?step=ajax_cart_goods_amount', 'rec_id=' + rec_id + ajax_where, change_cart_goods_response, 'POST','JSON');
|
||
|
|
}
|
||
|
|
function change_cart_goods_response(result)
|
||
|
|
{
|
||
|
|
$('#cart_goods_amount').html(result.goods_amount); //商品总金额
|
||
|
|
$('#save_total_amount').html(result.save_total_amount); //优惠节省总金额
|
||
|
|
$('.cart_check_num').html(result.subtotal_number); //商品总数
|
||
|
|
|
||
|
|
if(result.act_id > 0 && result.is_gift == 1){
|
||
|
|
$("#product_promo_"+result.act_id).html(result.favourable_box_content);
|
||
|
|
$("#checkItem_" + result.recid).prop("checked",false);
|
||
|
|
$(".item-full").removeClass("minus-item");
|
||
|
|
$("#checkItem_" + result.recid).parent().removeClass("cart-checkbox-checked");
|
||
|
|
}
|
||
|
|
}
|
||
|
|
|
||
|
|
|
||
|
|
|
||
|
|
$(function(){
|
||
|
|
//购物车换购效果
|
||
|
|
$(".trade-btn").live('click',function(){
|
||
|
|
var itemFull = $(this).parents(".item-full");
|
||
|
|
var winWidth = ($(window).width()-1200)/2;
|
||
|
|
var winHeight = itemFull.offset().top-30;
|
||
|
|
var left = $(this).offset().left-winWidth;
|
||
|
|
var top = $(this).offset().top-winHeight;
|
||
|
|
|
||
|
|
itemFull.find(".gift-box").show();
|
||
|
|
itemFull.find(".gift-box").css({"left":left,"top":top});
|
||
|
|
itemFull.css("z-index","100");
|
||
|
|
|
||
|
|
var favourable_id = $(this).data("actid");
|
||
|
|
Ajax.call('flow.php?step=show_gift_div', 'favourable_id=' + favourable_id, show_gift_div_response, 'POST', 'JSON');
|
||
|
|
});
|
||
|
|
|
||
|
|
$(".gift-box .close").live('click',function(){
|
||
|
|
var itemFull = $(this).parents(".item-full");
|
||
|
|
$(this).parents(".gift-box").hide();
|
||
|
|
itemFull.css("z-index","initial");
|
||
|
|
});
|
||
|
|
|
||
|
|
function show_gift_div_response(result)
|
||
|
|
{
|
||
|
|
var giftInfo = document.getElementById('gift_box_list'+result.act_id);
|
||
|
|
if (giftInfo)
|
||
|
|
{
|
||
|
|
giftInfo.innerHTML = result.content;
|
||
|
|
}
|
||
|
|
}
|
||
|
|
});
|
||
|
|
</script>
|
||
|
|
</div>
|
||
|
|
</div>
|
||
|
|
|
||
|
|
<div id="cart-floatbar">
|
||
|
|
<div class="cart-toolbar">
|
||
|
|
<div class="toolbar-wrap">
|
||
|
|
<div class="options-box">
|
||
|
|
<div class="select-all">
|
||
|
|
<div class="cart-checkbox">
|
||
|
|
<input type="checkbox" checked="checked" id="toggle-checkboxes_down" class="ui-checkbox checkboxshopAll" />
|
||
|
|
<label for="toggle-checkboxes_down">全选</label>
|
||
|
|
</div>
|
||
|
|
</div>
|
||
|
|
<div class="operation">
|
||
|
|
<a href="javascript:void(0);" class="cart-remove-batch" data-dialog="remove_collect_dialog" data-divid="cart-remove-batch" data-removeurl="ajax_dialog.php?act=delete_cart_goods" data-collecturl="ajax_dialog.php?act=drop_to_collect" data-title="删除">删除选中的商品</a>
|
||
|
|
<a href="javascript:void(0);" class="cart-follow-batch" data-dialog="remove_collect_dialog" data-divid="cart-collect-batch" data-removeurl="ajax_dialog.php?act=delete_cart_goods" data-collecturl="ajax_dialog.php?act=drop_to_collect" data-title="关注">移到我的收藏</a>
|
||
|
|
</div>
|
||
|
|
<div class="toolbar-right">
|
||
|
|
<div class="comm-right">
|
||
|
|
<div class="btn-area">
|
||
|
|
<form name="formCart" method="post" action="flow.php" onsubmit="return get_toCart();">
|
||
|
|
<input name="goPay" type="submit" class="submit-btn" value="去结算" {if !$user_id} id="go_pay" data-url="flow.php"{/if}/>
|
||
|
|
<input name="step" value="checkout" type="hidden" />
|
||
|
|
<input name="cart_value" id="cart_value" value="" type="hidden" />
|
||
|
|
</form>
|
||
|
|
</div>
|
||
|
|
<div class="price-sum" id="total_desc">
|
||
|
|
<span class="txt">总价(不含运费):</span>
|
||
|
|
<span class="price sumPrice"><em id="cart_goods_amount"></em></span>
|
||
|
|
</div>
|
||
|
|
<div class="reduce-sum">
|
||
|
|
<span class="txt">已节省:</span>
|
||
|
|
<span class="price totalRePrice" id="save_total_amount"></span>
|
||
|
|
</div>
|
||
|
|
<div class="amount-sum">
|
||
|
|
已选择<em class="cart_check_num"></em>件商品
|
||
|
|
</div>
|
||
|
|
</div>
|
||
|
|
</div>
|
||
|
|
</div>
|
||
|
|
</div>
|
||
|
|
</div>
|
||
|
|
</div>
|
||
|
|
</div>
|
||
|
|
|
||
|
|
<script type="text/javascript">
|
||
|
|
$(function(){
|
||
|
|
$("*[data-dialog='remove_collect_dialog']").click(function(){
|
||
|
|
|
||
|
|
var remove_url = $(this).data('removeurl');
|
||
|
|
var collect_url = $(this).data('collecturl');
|
||
|
|
var divId = $(this).data('divid');
|
||
|
|
var title = $(this).data('title');
|
||
|
|
var url;
|
||
|
|
|
||
|
|
var cart_value = $('#cart_value').val();
|
||
|
|
|
||
|
|
var ok_title = "确定";
|
||
|
|
var cl_title = "取消";
|
||
|
|
|
||
|
|
if(divId == 'cart-remove-batch'){
|
||
|
|
var content = $('#delete_cart_goods').html();
|
||
|
|
url = remove_url;
|
||
|
|
}else if(divId == 'cart-collect-batch'){
|
||
|
|
var content = $('#cart_collect_batch').html();
|
||
|
|
url = collect_url;
|
||
|
|
}
|
||
|
|
|
||
|
|
pb({
|
||
|
|
id:divId,
|
||
|
|
title:title,
|
||
|
|
width:450,
|
||
|
|
height:50,
|
||
|
|
ok_title:ok_title, //按钮名称
|
||
|
|
cl_title:cl_title, //按钮名称
|
||
|
|
content:content, //调取内容
|
||
|
|
drag:false,
|
||
|
|
foot:true,
|
||
|
|
onOk:function(){
|
||
|
|
Ajax.call(url, 'cart_value=' + cart_value, function(data){
|
||
|
|
location.href = "flow.php";
|
||
|
|
}, 'POST','JSON');
|
||
|
|
}
|
||
|
|
});
|
||
|
|
|
||
|
|
$('#' + divId + ' .ftx-04').css({'padding': '11px 0px 0px 10px'});
|
||
|
|
$('#' + divId + ' .tip-box').css({
|
||
|
|
'width': '330px',
|
||
|
|
'height': '50px',
|
||
|
|
'padding': '0px 0px 10px 0px'
|
||
|
|
});
|
||
|
|
$('#' + divId + ' .item-fore').css({
|
||
|
|
'margin': '0px 0px 0px 47px'
|
||
|
|
});
|
||
|
|
|
||
|
|
$('#' + divId + ' .pb-bd').css({
|
||
|
|
'padding-left': '65px'
|
||
|
|
});
|
||
|
|
|
||
|
|
$('#' + divId + ' .pb-ft .pb-ok').addClass('color_df3134');
|
||
|
|
});
|
||
|
|
});
|
||
|
|
</script>
|
||
|
|
{else}
|
||
|
|
<div class="w1200">
|
||
|
|
<div class="cart-empty">
|
||
|
|
<div class="message">
|
||
|
|
<ul>
|
||
|
|
<li class="txt">购物车内暂时没有商品,登录后将显示您之前加入的商品</li>
|
||
|
|
<li>
|
||
|
|
{if !$user_id}<a href="javascript:void(0);" id="go_pay" data-url="flow.php" class="btn-1 mr10">登录</a>{/if}
|
||
|
|
<a href="./index.php" class="ftx-05">去购物></a>
|
||
|
|
</li>
|
||
|
|
</ul>
|
||
|
|
</div>
|
||
|
|
</div>
|
||
|
|
</div>
|
||
|
|
{/if}
|
||
|
|
<div id="c-tabs" class="w1200">
|
||
|
|
<div class="tab-nav">
|
||
|
|
<ul>
|
||
|
|
<li class="on">最近浏览</li>
|
||
|
|
<li>猜你喜欢</li>
|
||
|
|
<li>掌柜推荐</li>
|
||
|
|
</ul>
|
||
|
|
</div>
|
||
|
|
<div class="tab-con">
|
||
|
|
<div class="tab-con-time" id="tab-time1">
|
||
|
|
<div class="p-list">
|
||
|
|
<div class="p-list-cont{if $historyGoods_count < 5} bRightNone{/if}">
|
||
|
|
<ul class="ui-switchable-panel-main">
|
||
|
|
{foreach from=$history_goods item=goods}
|
||
|
|
<li>
|
||
|
|
<div class="p-item">
|
||
|
|
<div class="p-img"><a href="{$goods.url}" target="_blank"><img src="{$goods.goods_thumb}" width="169" height="169" /></a></div>
|
||
|
|
<div class="p-price">
|
||
|
|
{if $goods.promote_price}
|
||
|
|
{$goods.promote_price}
|
||
|
|
{else}
|
||
|
|
{$goods.shop_price}
|
||
|
|
{/if}
|
||
|
|
</div>
|
||
|
|
<div class="p-name overflow"><a href="{$goods.url}" target="_blank">{$goods.short_name}</a></div>
|
||
|
|
<div class="p-seller"><a href="{$goods.shopUrl}" target="_blank" class="ftx-05">{$goods.shop_name}</a></div>
|
||
|
|
<div class="p-num">销量:{$goods.sales_volume}</div>
|
||
|
|
</div>
|
||
|
|
</li>
|
||
|
|
{/foreach}
|
||
|
|
</ul>
|
||
|
|
</div>
|
||
|
|
<span class="pageState"></span>
|
||
|
|
<a href="javascript:void(0);" class="tab-prev"></a>
|
||
|
|
<a href="javascript:void(0);" class="tab-next"></a>
|
||
|
|
</div>
|
||
|
|
</div>
|
||
|
|
<div class="tab-con-time" id="tab-time2" style="display:none;">
|
||
|
|
<div class="p-list">
|
||
|
|
<div class="p-list-cont{if $guessGoods_count < 5} bRightNone{/if}">
|
||
|
|
<ul class="ui-switchable-panel-main">
|
||
|
|
{foreach from=$guess_goods item=goods}
|
||
|
|
<li>
|
||
|
|
<div class="p-item">
|
||
|
|
<div class="p-img"><a href="{$goods.url}" target="_blank"><img src="{$goods.goods_thumb}" width="169" height="169" /></a></div>
|
||
|
|
<div class="p-price">{$goods.shop_price}</div>
|
||
|
|
<div class="p-name"><a href="{$goods.url}" target="_blank">{$goods.short_name}</a></div>
|
||
|
|
<div class="p-seller"><a href="{$goods.shopUrl}" target="_blank" class="ftx-05">{$goods.shop_name}</a></div>
|
||
|
|
<div class="p-num">销量:{$goods.sales_volume}</div>
|
||
|
|
</div>
|
||
|
|
</li>
|
||
|
|
{/foreach}
|
||
|
|
</ul>
|
||
|
|
</div>
|
||
|
|
<span class="pageState"></span>
|
||
|
|
<a href="javascript:void(0);" class="tab-prev"></a>
|
||
|
|
<a href="javascript:void(0);" class="tab-next"></a>
|
||
|
|
</div>
|
||
|
|
</div>
|
||
|
|
<div class="tab-con-time" id="tab-time3" style="display:none;">
|
||
|
|
<div class="p-list">
|
||
|
|
<div class="p-list-cont{if $bestGoods_count < 5} bRightNone{/if}">
|
||
|
|
<ul class="ui-switchable-panel-main">
|
||
|
|
{foreach from=$best_goods item=goods}
|
||
|
|
<li>
|
||
|
|
<div class="p-item">
|
||
|
|
<div class="p-img"><a href="{$goods.url}" target="_blank"><img src="{$goods.thumb}" width="169" height="169" /></a></div>
|
||
|
|
<div class="p-price">
|
||
|
|
{if $goods.promote_price}
|
||
|
|
{$goods.promote_price}
|
||
|
|
{else}
|
||
|
|
{$goods.shop_price}
|
||
|
|
{/if}
|
||
|
|
</div>
|
||
|
|
<div class="p-name"><a href="{$goods.url}" target="_blank">{$goods.short_name}</a></div>
|
||
|
|
<div class="p-seller"><a href="{$goods.shopUrl}" target="_blank" class="ftx-05">{$goods.shop_name}</a></div>
|
||
|
|
<div class="p-num">销量:{$goods.sales_volume}</div>
|
||
|
|
</div>
|
||
|
|
</li>
|
||
|
|
{/foreach}
|
||
|
|
</ul>
|
||
|
|
</div>
|
||
|
|
<span class="pageState"></span>
|
||
|
|
<a href="javascript:void(0);" class="tab-prev"></a>
|
||
|
|
<a href="javascript:void(0);" class="tab-next"></a>
|
||
|
|
</div>
|
||
|
|
</div>
|
||
|
|
</div>
|
||
|
|
</div>
|
||
|
|
</div>
|
||
|
|
|
||
|
|
<script type="text/javascript">
|
||
|
|
function changenum(rec_id, diff, warehouse_id, area_id, favourable_id)
|
||
|
|
{
|
||
|
|
var cValue = $('#cart_value')
|
||
|
|
var goods_number =Number($('#goods_number_' + rec_id).val()) + Number(diff);
|
||
|
|
if(goods_number < 1)
|
||
|
|
{
|
||
|
|
alert("购买数量不能少于1件");
|
||
|
|
}
|
||
|
|
else
|
||
|
|
{
|
||
|
|
change_goods_number(rec_id,goods_number, warehouse_id, area_id, cValue, favourable_id);
|
||
|
|
}
|
||
|
|
}
|
||
|
|
function change_goods_number(rec_id, goods_number, warehouse_id, area_id, cValue, favourable_id)
|
||
|
|
{
|
||
|
|
if(cValue != '' || cValue == 'undefined'){
|
||
|
|
var cValue = $('#cart_value').val();
|
||
|
|
}
|
||
|
|
|
||
|
|
Ajax.call('flow.php?step=ajax_update_cart', 'rec_id=' + rec_id +'&goods_number=' + goods_number +'&cValue=' + cValue +'&warehouse_id=' + warehouse_id +'&area_id=' + area_id +'&favourable_id=' + favourable_id, change_goods_number_response, 'POST','JSON');
|
||
|
|
}
|
||
|
|
function change_goods_number_response(result)
|
||
|
|
{
|
||
|
|
var rec_id = result.rec_id;
|
||
|
|
if (result.error == 0)
|
||
|
|
{
|
||
|
|
$('#goods_number_' +rec_id).val(result.goods_number);//更新数量
|
||
|
|
$('#goods_subtotal_' +rec_id).html(result.goods_subtotal);//更新小计
|
||
|
|
if (result.goods_number <= 0)
|
||
|
|
{// 数量为零则隐藏所在行
|
||
|
|
$('#tr_goods_' +rec_id).style.display = 'none';
|
||
|
|
$('#tr_goods_' +rec_id).innerHTML = '';
|
||
|
|
}
|
||
|
|
$('#total_desc').html(result.flow_info);//更新合计
|
||
|
|
if ($('ECS_CARTINFO'))
|
||
|
|
{//更新购物车数量
|
||
|
|
$('#ECS_CARTINFO').html(result.cart_info);
|
||
|
|
}
|
||
|
|
|
||
|
|
if(result.group.length > 0){
|
||
|
|
for(var i=0; i<result.group.length; i++){
|
||
|
|
$("#" + result.group[i].rec_group).html(result.group[i].rec_group_number);//配件商品数量
|
||
|
|
$("#" + result.group[i].rec_group_talId).html(result.group[i].rec_group_subtotal);//配件商品金额
|
||
|
|
}
|
||
|
|
}
|
||
|
|
|
||
|
|
$("#goods_price_" + rec_id).html(result.goods_price);
|
||
|
|
$('#save_total_amount').html(result.save_total_amount); //优惠节省总金额
|
||
|
|
$('.cart_check_num').html(result.subtotal_number); //商品总数
|
||
|
|
|
||
|
|
// 如果是优惠活动内的商品,更新优惠活动局部 qin
|
||
|
|
if (result.act_id)
|
||
|
|
{
|
||
|
|
// alert("product_promo_"+result.act_id);
|
||
|
|
$("#product_promo_"+result.act_id).html(result.favourable_box_content);
|
||
|
|
}
|
||
|
|
}
|
||
|
|
else if (result.message != '')
|
||
|
|
{
|
||
|
|
$('#goods_number_' +rec_id).val(result.cart_Num);//更新数量
|
||
|
|
|
||
|
|
var add_cart_divId = 'flow_add_cart';
|
||
|
|
var content = '<div id="flow_add_cart">' +
|
||
|
|
'<div class="tip-box icon-box">' +
|
||
|
|
'<span class="warn-icon m-icon"></span>' +
|
||
|
|
'<div class="item-fore">' +
|
||
|
|
'<h3 class="rem ftx-04">' + result.message + '</h3>' +
|
||
|
|
'</div>' +
|
||
|
|
'</div>';
|
||
|
|
pb({
|
||
|
|
id:add_cart_divId,
|
||
|
|
title:'标题',
|
||
|
|
width:455,
|
||
|
|
height:88,
|
||
|
|
content:content, //调取内容
|
||
|
|
drag:false,
|
||
|
|
foot:false
|
||
|
|
});
|
||
|
|
|
||
|
|
$('#' + add_cart_divId + ' .tip-box h3').css({
|
||
|
|
'line-height' : '20px',
|
||
|
|
'padding-top' : '5px',
|
||
|
|
'font-size' : '14px'
|
||
|
|
});
|
||
|
|
|
||
|
|
$('#' + add_cart_divId + ' .item-fore').css({
|
||
|
|
'height' : '88px'
|
||
|
|
});
|
||
|
|
}
|
||
|
|
}
|
||
|
|
|
||
|
|
//zhuo start
|
||
|
|
function get_toCart(){
|
||
|
|
|
||
|
|
var num = 0;
|
||
|
|
|
||
|
|
$("input[name='checkItem']").each(function(index, element) {
|
||
|
|
if($(element).is(":checked")){
|
||
|
|
num ++;
|
||
|
|
}
|
||
|
|
});
|
||
|
|
|
||
|
|
if(num == 0){
|
||
|
|
var add_cart_divId = 'flow_add_cart';
|
||
|
|
var content = '<div id="flow_add_cart">' +
|
||
|
|
'<div class="tip-box icon-box">' +
|
||
|
|
'<span class="warn-icon m-icon"></span>' +
|
||
|
|
'<div class="item-fore">' +
|
||
|
|
'<h3 class="rem ftx-04">请选择最少一个商品购买</h3>' +
|
||
|
|
'</div>' +
|
||
|
|
'</div>' +
|
||
|
|
'</div>';
|
||
|
|
pb({
|
||
|
|
id:add_cart_divId,
|
||
|
|
title:'标题',
|
||
|
|
width:455,
|
||
|
|
height:58,
|
||
|
|
content:content, //调取内容
|
||
|
|
drag:false,
|
||
|
|
foot:false
|
||
|
|
});
|
||
|
|
return false;
|
||
|
|
}
|
||
|
|
}
|
||
|
|
//zhuo end
|
||
|
|
</script>
|
||
|
|
<!-- {if $smarty.session.user_id gt 0} -->
|
||
|
|
<script type="text/javascript" charset="utf-8">
|
||
|
|
function collect_to_flow(goodsId)
|
||
|
|
{
|
||
|
|
var goods = new Object();
|
||
|
|
var spec_arr = new Array();
|
||
|
|
var fittings_arr = new Array();
|
||
|
|
var number = 1;
|
||
|
|
var quick = 0;
|
||
|
|
|
||
|
|
goods.spec = spec_arr;
|
||
|
|
goods.goods_id = goodsId;
|
||
|
|
goods.number = number;
|
||
|
|
goods.parent = 0;
|
||
|
|
Ajax.call('flow.php?step=add_to_cart', 'goods=' + $.toJSON(goods), collect_to_flow_response, 'POST', 'JSON');
|
||
|
|
}
|
||
|
|
function collect_to_flow_response(result)
|
||
|
|
{
|
||
|
|
if (result.error > 0)
|
||
|
|
{
|
||
|
|
// 如果需要缺货登记,跳转
|
||
|
|
if (result.error == 2)
|
||
|
|
{
|
||
|
|
if (confirm(result.message))
|
||
|
|
{
|
||
|
|
location.href = 'user.php?act=add_booking&id=' + result.goods_id;
|
||
|
|
}
|
||
|
|
}
|
||
|
|
else if (result.error == 6)
|
||
|
|
{
|
||
|
|
openSpeDiv(result.message, result.goods_id);
|
||
|
|
}
|
||
|
|
else
|
||
|
|
{
|
||
|
|
alert(result.message);
|
||
|
|
}
|
||
|
|
}
|
||
|
|
else
|
||
|
|
{
|
||
|
|
location.href = 'flow.php';
|
||
|
|
}
|
||
|
|
}
|
||
|
|
</script>
|
||
|
|
<!-- {/if} -->
|
||
|
|
<!-- {/if} -->
|
||
|
|
|
||
|
|
<!-- {if $step eq "checkout"} -->
|
||
|
|
|
||
|
|
{insert_scripts files='region.js,utils.js'}
|
||
|
|
<script type="text/javascript">
|
||
|
|
var flow_no_payment = "{$lang.flow_no_payment}";
|
||
|
|
var flow_no_shipping = "{$lang.flow_no_shipping}";
|
||
|
|
</script>
|
||
|
|
|
||
|
|
<link rel="stylesheet" href="themes/<?php echo $GLOBALS['_CFG']['template']; ?>/take_their.css">
|
||
|
|
|
||
|
|
<div class="checkout" id="container">
|
||
|
|
<div class="ecscshop-filter-bar w1200">
|
||
|
|
<div class="ecscshop-title"><i class="ecscshop-icon orderInfo-icon"></i><h3>填写并核对订单信息</h3></div>
|
||
|
|
<div class="stepflex">
|
||
|
|
<dl class="doing done">
|
||
|
|
<dt class="s-num">1</dt>
|
||
|
|
<dd class="s-text">我的购物车<s></s></dd>
|
||
|
|
</dl>
|
||
|
|
<dl class="doing">
|
||
|
|
<dt class="s-num">2</dt>
|
||
|
|
<dd class="s-text">填写核对订单信息<s></s></dd>
|
||
|
|
</dl>
|
||
|
|
<dl>
|
||
|
|
<dt class="s-num">3</dt>
|
||
|
|
<dd class="s-text">成功提交订单</dd>
|
||
|
|
</dl>
|
||
|
|
</div>
|
||
|
|
</div>
|
||
|
|
<div class="checkout-warp w1200">
|
||
|
|
<div class="checkout-steps">
|
||
|
|
<div class="step-complete" id="consignee_list" name="consignee-list">
|
||
|
|
<div class="step-tit">
|
||
|
|
<h3>收货人信息</h3>
|
||
|
|
<!-- {if $user_address} -->
|
||
|
|
<div class="extra-r"><a href="#none" class="ftx-05 dialog_checkout" data-dialog="dialog_checkout" data-divid="new_address" data-id="0" data-url="flow.php?step=edit_Consignee" class="ftx-05 setdefault-consignee" data-width="670" data-height="338" data-title="新增收货人地址">新增收货人地址</a></div>
|
||
|
|
<!-- {else} -->
|
||
|
|
<div class="extra-r"><a href="#none" class="dialog_checkout"> </a></div>
|
||
|
|
<!-- {/if} -->
|
||
|
|
</div>
|
||
|
|
<div class="step-cont" id="consignee_new" {if !$user_address}style=" overflow:inherit;"{/if}>
|
||
|
|
<!-- {if $user_address} -->
|
||
|
|
<div id="consignee-addr" class="consignee-addr">
|
||
|
|
<div class="consignee-cont">
|
||
|
|
<ul class="ui-switchable-panel-main">
|
||
|
|
<!-- {foreach from=$user_address item=address} -->
|
||
|
|
<li {if $consignee.address_id eq $address.address_id}class="item-selected"{/if} data-addressid="{$address.address_id}">
|
||
|
|
<input type="radio" {if $consignee.address_id eq $address.address_id}checked="checked"{/if} class="ui-radio" name="consignee_radio" value="{$address.address_id}" id="radio_{$address.address_id}" class="hookbox" />
|
||
|
|
<label class="ui-radio-label">
|
||
|
|
<div class="name">{$address.consignee}</div>
|
||
|
|
<div class="tel">{$address.mobile}</div>
|
||
|
|
<div class="address"> {$address.region} {$address.address}</div>
|
||
|
|
</label>
|
||
|
|
<div class="op-btns">
|
||
|
|
{if $user_id > 0}
|
||
|
|
<a href="javascript:void(0);" class="ftx-05 del-consignee" data-dialog="dialog_checkout" data-divid="edit_address" data-id="{$address.address_id}" data-url="flow.php?step=edit_Consignee" class="ftx-05 edit-consignee" data-width="670" data-height="338" data-title="编辑收货人信息">编辑</a>
|
||
|
|
<a href="javascript:void(0);" class="ftx-05 del-consignee" data-dialog="dialog_checkout" data-divid="del_address" data-id="{$address.address_id}" data-url="flow.php?step=delete_Consignee" class="ftx-05 del-consignee" data-width="450" data-height="50" data-title="删除收货人信息">删除</a>
|
||
|
|
{else}
|
||
|
|
<a href="javascript:void(0);" class="ftx-05 del-consignee" data-dialog="dialog_checkout" data-divid="direct_shopping" data-url="flow.php?step=consignee&direct_shopping=1" class="ftx-05 del-consignee" data-title="编辑收货人信息">编辑</a>
|
||
|
|
{/if}
|
||
|
|
</div>
|
||
|
|
</li>
|
||
|
|
<!-- {/foreach} -->
|
||
|
|
</ul>
|
||
|
|
</div>
|
||
|
|
</div>
|
||
|
|
<!-- {else} -->
|
||
|
|
<!-- #BeginLibraryItem "/library/consignee_new.lbi" --><!-- #EndLibraryItem -->
|
||
|
|
<!-- {/if} -->
|
||
|
|
</div>
|
||
|
|
</div>
|
||
|
|
</div>
|
||
|
|
<form action="flow.php" method="post" name="doneTheForm" class="validator" id="theForm" onsubmit="return checkOrderForm(this)">
|
||
|
|
<div class="checkout-steps">
|
||
|
|
<!--{if $is_exchange_goods neq 1 || $total.real_goods_count neq 0}-->
|
||
|
|
<div class="step-complete">
|
||
|
|
<div class="step-tit">
|
||
|
|
<h3>{$lang.payment_method}</h3>
|
||
|
|
</div>
|
||
|
|
<div class="step-cont">
|
||
|
|
<div class="payment-list radio-list">
|
||
|
|
<ul class="ul-payment-list">
|
||
|
|
<!-- {foreach from=$payment_list item=payment} 循环支付方式 -->
|
||
|
|
<li onclick="selectPayment({$payment.pay_id})" {if $order.pay_id eq $payment.pay_id}class="item-selected {if $cod_disabled and $payment.is_cod eq 1}hide{/if}"{else}class="{if $cod_disabled and $payment.is_cod eq 1}hide{/if}"{/if}>
|
||
|
|
<div class="payment-item">
|
||
|
|
<input type="radio" {if $order.pay_id eq $payment.pay_id}checked{/if} isCod="{$payment.is_cod}" name="payment" class="ui-radio" value="{$payment.pay_id}" />
|
||
|
|
{$payment.pay_name}
|
||
|
|
</div>
|
||
|
|
</li>
|
||
|
|
<!-- {/foreach} 循环支付方式 -->
|
||
|
|
</ul>
|
||
|
|
</div>
|
||
|
|
</div>
|
||
|
|
</div>
|
||
|
|
<!--{else}-->
|
||
|
|
<input name = "payment" type="radio" value = "-1" checked="checked" style="display:none"/>
|
||
|
|
<!--{/if}-->
|
||
|
|
<!--- 送货清单start ---->
|
||
|
|
<div class="step-complete" id="goods_inventory">
|
||
|
|
<!-- #BeginLibraryItem "/library/flow_cart_goods.lbi" --><!-- #EndLibraryItem -->
|
||
|
|
</div>
|
||
|
|
<!--- 送货清单end ---->
|
||
|
|
<!--- 其他信息start ---->
|
||
|
|
{if $smarty.session.flow_type != 5}
|
||
|
|
<div class="step-complete">
|
||
|
|
<div class="step-tit">
|
||
|
|
<h3>其他信息</h3>
|
||
|
|
</div>
|
||
|
|
<div class="step-cont">
|
||
|
|
<!-- {if $allow_use_surplus} 是否使用余额 -->
|
||
|
|
<div class="qt_item">
|
||
|
|
<div class="item_label">{$lang.use_surplus}:</div>
|
||
|
|
<div class="item_value">
|
||
|
|
<input type="text" class="qt_text" name="surplus" id="ECS_SURPLUS" size="10" value="{$order.surplus|default:0}" onblur="changeSurplus(this.value)" {if $disable_surplus}disabled="disabled"{/if} />
|
||
|
|
{$lang.your_surplus} {$your_surplus|default:0} <span id="ECS_SURPLUS_NOTICE"></span>
|
||
|
|
</div>
|
||
|
|
</div>
|
||
|
|
<!-- {/if} 是否使用余额 -->
|
||
|
|
|
||
|
|
<!-- {if $allow_use_integral} 是否使用积分 -->
|
||
|
|
<div class="qt_item">
|
||
|
|
<div class="item_label">{$lang.use_integral}:</div>
|
||
|
|
<div class="item_value">
|
||
|
|
<input type="text" class="qt_text" name="integral" id="ECS_INTEGRAL" onblur="changeIntegral(this.value)" value="{$order.integral|default:0}" size="10"/>
|
||
|
|
{$lang.can_use_integral}:{$your_integral|default:0} {$points_name},{$lang.noworder_can_integral}{$order_max_integral} {$points_name}. <span id="ECS_INTEGRAL_NOTICE"></span>
|
||
|
|
</div>
|
||
|
|
</div>
|
||
|
|
<!-- {/if} 是否使用积分 -->
|
||
|
|
|
||
|
|
<!-- {if $how_oos_list} 是否使用缺货处理 -->
|
||
|
|
<div class="qt_item">
|
||
|
|
<div class="item_label">{$lang.booking_process}:</div>
|
||
|
|
<div class="item_value">
|
||
|
|
<!-- {foreach from=$how_oos_list key=how_oos_id item=how_oos_name} -->
|
||
|
|
<div class="label">
|
||
|
|
<label><input name="how_oos" type="radio" value="{$how_oos_id}" {if $order.how_oos eq $how_oos_id}checked{/if} onclick="changeOOS(this)" />{$how_oos_name}</label>
|
||
|
|
</div>
|
||
|
|
<!-- {/foreach} -->
|
||
|
|
</div>
|
||
|
|
</div>
|
||
|
|
<!-- {/if} 缺货处理结束 -->
|
||
|
|
|
||
|
|
<!-- {if $allow_use_bonus} 是否使用红包 -->
|
||
|
|
<div class="qt_item">
|
||
|
|
<div class="item_label">{$lang.use_bonus}:</div>
|
||
|
|
<div class="item_value">
|
||
|
|
<span>{$lang.select_bonus}</span>
|
||
|
|
<select name="bonus" onchange="changeBonus(this.value)" id="ECS_BONUS" style="border:1px solid #ccc;">
|
||
|
|
<option value="0" {if $order.bonus_id eq 0}selected{/if}>{$lang.please_select}</option>
|
||
|
|
<!-- {foreach from=$bonus_list item=bonus} -->
|
||
|
|
<option value="{$bonus.bonus_id}" {if $order.bonus_id eq $bonus.bonus_id}selected{/if}>{$bonus.type_name}[{$bonus.bonus_money_formated}]</option>
|
||
|
|
<!-- {/foreach} -->
|
||
|
|
</select>
|
||
|
|
|
||
|
|
<span>{$lang.input_bonus_no}</span>
|
||
|
|
<input name="bonus_sn" type="text" class="qt_text2 order_bonus_sn" size="15" value="{$order.bonus_sn}" />
|
||
|
|
<input name="validate_bonus" type="button" id="bnt_bonus_sn" value="{$lang.validate_bonus}" onclick="validateBonus($('.order_bonus_sn').val())" />
|
||
|
|
</div>
|
||
|
|
</div>
|
||
|
|
<!-- {/if} 是否使用红包 -->
|
||
|
|
</div>
|
||
|
|
</div>
|
||
|
|
{/if}
|
||
|
|
<!--- 其他信息end ---->
|
||
|
|
<!-- {if $inv_content} 能否开发票 -->
|
||
|
|
<div class="step-complete" id="inv_content">
|
||
|
|
<div class="step-tit">
|
||
|
|
<h3>发票信息</h3>
|
||
|
|
</div>
|
||
|
|
<div class="step-cont">
|
||
|
|
<h3 class="invoice-title">普通发票(纸质)</h3>
|
||
|
|
<h3 class="invoice-title inv_payee">个人</h3>
|
||
|
|
<h3 class="invoice-title inv_content">{$inv_content}</h3>
|
||
|
|
<h3 class="invoice-title"><a href="javascript:void(0);" class="ftx-05" data-dialog="editInvoice_dialog" data-divid="edit_invoice" data-id="0" data-url="ajax_dialog.php?act=edit_invoice" data-title="发票信息">修改</a></h3>
|
||
|
|
</div>
|
||
|
|
<input type="hidden" name="inv_payee" value="个人">
|
||
|
|
<input type="hidden" name="inv_content" value="{$inv_content}">
|
||
|
|
</div>
|
||
|
|
<!-- {/if} -->
|
||
|
|
</div>
|
||
|
|
<!-- #BeginLibraryItem "/library/order_total.lbi" --><!-- #EndLibraryItem -->
|
||
|
|
<input type="hidden" name="user_id" value="{$user_id}" />
|
||
|
|
<input type="hidden" name="done_cart_value" value="{$cart_value}" />
|
||
|
|
<input type="hidden" name="step" value="done" />
|
||
|
|
</form>
|
||
|
|
</div>
|
||
|
|
</div>
|
||
|
|
<!-- {/if} -->
|
||
|
|
|
||
|
|
<!-- {if $step eq "done"} -->
|
||
|
|
<div id="container">
|
||
|
|
<div class="ecscshop-bg">
|
||
|
|
<div class="ecscshop-filter-bar w1200">
|
||
|
|
<div class="ecscshop-title"><i class="ecscshop-icon single-icon"></i><h3>下单成功</h3></div>
|
||
|
|
<div class="stepflex">
|
||
|
|
<dl class="doing done">
|
||
|
|
<dt class="s-num">1</dt>
|
||
|
|
<dd class="s-text">我的购物车<s></s></dd>
|
||
|
|
</dl>
|
||
|
|
<dl class="doing done">
|
||
|
|
<dt class="s-num">2</dt>
|
||
|
|
<dd class="s-text">填写核对订单信息<s></s></dd>
|
||
|
|
</dl>
|
||
|
|
<dl class="doing">
|
||
|
|
<dt class="s-num">3</dt>
|
||
|
|
<dd class="s-text">成功提交订单</dd>
|
||
|
|
</dl>
|
||
|
|
</div>
|
||
|
|
</div>
|
||
|
|
</div>
|
||
|
|
<div class="checkout-warp w1200">
|
||
|
|
<div class="single-title">
|
||
|
|
<h3><i class="icon"></i>恭喜您,订单提交成功</h3>
|
||
|
|
</div>
|
||
|
|
{if $child_order > 1}
|
||
|
|
<div class="single-content">
|
||
|
|
<span class="txt">亲爱的用户由于商家原因,此订单将分为 <em>{$child_order}</em> 个不同的子订单配送:</span>
|
||
|
|
<div class="single-list">
|
||
|
|
{foreach from=$child_order_info item=order}
|
||
|
|
<div class="list-item">
|
||
|
|
<div class="order-number"><span class="tit">订单编号:</span><strong>{$order.order_sn}</strong></div>
|
||
|
|
<div class="order-total"><span class="tit">应付总金额:</span><strong>{$order.amount_formated}</strong></div>
|
||
|
|
<div class="order-freight"><span class="tit">配送方式:</span><strong>{$order.shipping_name}</strong></div>
|
||
|
|
<div class="order-freight"><span class="tit">运费:</span><strong>{$order.shipping_fee_formated}</strong></div>
|
||
|
|
<a href="flow.php?step=pdf&order={$order.order_id}" target="_blank" class="ftx-05">保存订单并打印</a>
|
||
|
|
</div>
|
||
|
|
{/foreach}
|
||
|
|
</div>
|
||
|
|
<div class="ts">{$lang.select_payment}:<em>{$order.pay_name}</em>。{$lang.order_amount}:<em class="price">{$total.amount_formated}元</em></div>
|
||
|
|
{if $order.pay_name eq '银行汇款/转帐'}
|
||
|
|
<div class="ts" style="color:#666">{$order.pay_desc}</div>
|
||
|
|
{/if}
|
||
|
|
<div class="single-btn">
|
||
|
|
<!-- {if $pay_online} -->
|
||
|
|
<!-- 如果是线上支付则显示支付按钮 -->
|
||
|
|
{$pay_online}
|
||
|
|
<!-- {/if} -->
|
||
|
|
</div>
|
||
|
|
</div>
|
||
|
|
{else}
|
||
|
|
<div class="single-content">
|
||
|
|
<span class="txt">感谢您在本店购物!您的订单已提交,请记住您的订单号:</span>
|
||
|
|
<div class="single-list">
|
||
|
|
<div class="list-item">
|
||
|
|
<div class="order-number"><span class="tit">订单编号:</span><strong>{$order.order_sn}</strong></div>
|
||
|
|
<div class="order-total"><span class="tit">应付总金额:</span><strong>{$order.order_amount}元</strong></div>
|
||
|
|
<div class="order-freight"><span class="tit">运费:</span><strong>{$order.shipping_fee}元</strong></div>
|
||
|
|
<a href="flow.php?step=pdf&order={$order.order_id}" target="_blank" class="ftx-05">保存订单并打印</a>
|
||
|
|
</div>
|
||
|
|
</div>
|
||
|
|
<div class="ts"><!--{if $order.shipping_name}-->{$lang.select_shipping}: <em>{$order.shipping_name}</em>,<!--{/if}-->{$lang.select_payment}:<em>{$order.pay_name}</em>。{$lang.order_amount}:<em class="price">{$order.order_amount}元</em></div>
|
||
|
|
{if $order.pay_name eq '银行汇款/转帐'}
|
||
|
|
<div class="ts" style="color:#666">{$order.pay_desc}</div>
|
||
|
|
{/if}
|
||
|
|
<div class="single-btn">
|
||
|
|
<!-- {if $pay_online} -->
|
||
|
|
<!-- 如果是线上支付则显示支付按钮 -->
|
||
|
|
{$pay_online}
|
||
|
|
<!-- {/if} -->
|
||
|
|
</div>
|
||
|
|
</div>
|
||
|
|
{/if}
|
||
|
|
</div>
|
||
|
|
{if $goods_buy_list}
|
||
|
|
<div id="c-mlym" class="w1200">
|
||
|
|
<div class="tab-nav">
|
||
|
|
<div class="ec-title">买了又买</div>
|
||
|
|
</div>
|
||
|
|
<div class="tab-con">
|
||
|
|
<div class="tab-con-time" id="tab-time1">
|
||
|
|
<div class="p-list">
|
||
|
|
<div class="p-list-cont">
|
||
|
|
<ul class="ui-switchable-panel-main">
|
||
|
|
{foreach from=$goods_buy_list item=goods}
|
||
|
|
<li>
|
||
|
|
<div class="p-item">
|
||
|
|
<div class="p-img"><a href="{$goods.url}" target="_blank"><img src="{$goods.goods_thumb}" width="155" height="155" /></a></div>
|
||
|
|
<div class="p-price">
|
||
|
|
{if $goods.promote_price eq ''}
|
||
|
|
{$goods.shop_price}
|
||
|
|
{else}
|
||
|
|
{$goods.promote_price}
|
||
|
|
{/if}
|
||
|
|
</div>
|
||
|
|
<div class="p-name"><a href="{$goods.url}" target="_blank">{$goods.goods_name}</a></div>
|
||
|
|
<div class="p-seller"><a href="{$goods.store_url}" target="_blank" class="ftx-05">{$goods.shop_name}</a></div>
|
||
|
|
<div class="p-num">销量:{$goods.sales_volume}</div>
|
||
|
|
</div>
|
||
|
|
</li>
|
||
|
|
{/foreach}
|
||
|
|
</ul>
|
||
|
|
</div>
|
||
|
|
<span class="pageState"></span>
|
||
|
|
<a href="javascript:void(0);" class="tab-prev"></a>
|
||
|
|
<a href="javascript:void(0);" class="tab-next"></a>
|
||
|
|
</div>
|
||
|
|
</div>
|
||
|
|
</div>
|
||
|
|
</div>
|
||
|
|
{/if}
|
||
|
|
</div>
|
||
|
|
<!-- {/if} -->
|
||
|
|
|
||
|
|
<!-- #BeginLibraryItem "/library/cart_html.lbi" --><!-- #EndLibraryItem -->
|
||
|
|
|
||
|
|
<!-- #BeginLibraryItem "/library/page_footer_flow.lbi" --><!-- #EndLibraryItem -->
|
||
|
|
|
||
|
|
<script type="text/javascript">
|
||
|
|
var process_request = "{$lang.process_request}";
|
||
|
|
{foreach from=$lang.passport_js item=item key=key}
|
||
|
|
var {$key} = "{$item}";
|
||
|
|
{/foreach}
|
||
|
|
var username_exist = "{$lang.username_exist}";
|
||
|
|
var compare_no_goods = "{$lang.compare_no_goods}";
|
||
|
|
var btn_buy = "{$lang.btn_buy}";
|
||
|
|
var is_cancel = "{$lang.is_cancel}";
|
||
|
|
var select_spe = "{$lang.select_spe}";
|
||
|
|
</script>
|
||
|
|
|
||
|
|
<script type="text/javascript" src="themes/<?php echo $GLOBALS['_CFG']['template']; ?>/js/jquery.purebox.js"></script>
|
||
|
|
<script type="text/javascript">
|
||
|
|
|
||
|
|
$(function(){
|
||
|
|
$('.shop_search2').hide();
|
||
|
|
$('.shop_search1').click(function(ev){
|
||
|
|
var e=ev || window.event;
|
||
|
|
e.stopPropagation();
|
||
|
|
$('.shop_search2').show();
|
||
|
|
});
|
||
|
|
|
||
|
|
$('.shop_search2').find('li').each(function(index, element){
|
||
|
|
$(element).click(function(){
|
||
|
|
var html_1 = $(this).html();
|
||
|
|
var attr_1 = $(this).attr('rev');
|
||
|
|
$('.shop_search1').find('li').html(html_1);
|
||
|
|
$('.shop_search2').hide();
|
||
|
|
|
||
|
|
if(index == 0){
|
||
|
|
$(this).html($(this).next().html());
|
||
|
|
$(this).next().html(html_1);
|
||
|
|
|
||
|
|
var nextAttr = $(this).next().attr("rev");
|
||
|
|
$(this).attr({rev : "" +nextAttr+ ""});
|
||
|
|
$(this).next().attr({rev : "" +attr_1+ ""});
|
||
|
|
}else if(index == 1){
|
||
|
|
$(this).html($(this).prev().html());
|
||
|
|
$(this).prev().html(html_1);
|
||
|
|
|
||
|
|
var prevAttr = $(this).prev().attr("rev");
|
||
|
|
$(this).attr({rev : "" +prevAttr+ ""});
|
||
|
|
$(this).prev().attr({rev : "" +attr_1+ ""});
|
||
|
|
}
|
||
|
|
|
||
|
|
$("input[name='store_search_cmt']").val(attr_1);
|
||
|
|
});
|
||
|
|
});
|
||
|
|
|
||
|
|
$(document).click(function(){
|
||
|
|
$('.shop_search2').hide();
|
||
|
|
});
|
||
|
|
});
|
||
|
|
|
||
|
|
//最近浏览、猜你喜欢、掌柜推荐tab切换
|
||
|
|
$("#c-tabs").slide({titCell:".tab-nav li",mainCell:".tab-con",pageStateCell:""});
|
||
|
|
$("#tab-time1").slide({mainCell:".p-list-cont ul",effect:"left",pnLoop:false,autoPlay:false,autoPage:true,scroll:1,vis:6,prevCell:".tab-prev",nextCell:".tab-next",pageStateCell:".pageState"});
|
||
|
|
$("#tab-time2").slide({mainCell:".p-list-cont ul",effect:"left",pnLoop:false,autoPlay:false,autoPage:true,scroll:1,vis:6,prevCell:".tab-prev",nextCell:".tab-next",pageStateCell:".pageState"});
|
||
|
|
$("#tab-time3").slide({mainCell:".p-list-cont ul",effect:"left",pnLoop:false,autoPlay:false,autoPage:true,scroll:1,vis:6,prevCell:".tab-prev",nextCell:".tab-next",pageStateCell:".pageState"});
|
||
|
|
|
||
|
|
//购物车弹出框效果
|
||
|
|
$("*[data-dialog='dialog']").live('click',function(){
|
||
|
|
var ok_title,cl_title;
|
||
|
|
var remove_url = $(this).data('removeurl'); //删除连接地址
|
||
|
|
var collect_url = $(this).data('collecturl'); //关注地址
|
||
|
|
var title = $(this).data('title');
|
||
|
|
var width = 455;
|
||
|
|
var height = 58;
|
||
|
|
var divId = $(this).data('divid');
|
||
|
|
|
||
|
|
if(divId == 'cart_remove'){
|
||
|
|
ok_title = "删除";
|
||
|
|
cl_title = "移到我的收藏";
|
||
|
|
var content = $("#dialog_remove").html();
|
||
|
|
}else if(divId == 'cart_collect'){
|
||
|
|
ok_title = "确定";
|
||
|
|
cl_title = "取消";
|
||
|
|
var content = $("#dialog_collect").html();
|
||
|
|
}
|
||
|
|
|
||
|
|
pb({
|
||
|
|
id:divId,
|
||
|
|
title:title,
|
||
|
|
width:width,
|
||
|
|
height:height,
|
||
|
|
ok_title:ok_title, //按钮名称
|
||
|
|
cl_title:cl_title, //按钮名称
|
||
|
|
content:content, //调取内容
|
||
|
|
drag:false,
|
||
|
|
foot:true,
|
||
|
|
onOk:function(){
|
||
|
|
if(divId == 'cart_remove'){
|
||
|
|
location.href = remove_url;
|
||
|
|
}else if(divId == 'cart_collect'){
|
||
|
|
location.href = collect_url;
|
||
|
|
}
|
||
|
|
},
|
||
|
|
onCancel:function(){
|
||
|
|
if(divId == 'cart_remove'){
|
||
|
|
location.href = collect_url;
|
||
|
|
}
|
||
|
|
}
|
||
|
|
});
|
||
|
|
|
||
|
|
if(divId == 'cart_remove'){
|
||
|
|
$('.pb-cl').addClass('color_df3134');
|
||
|
|
}else if(divId == 'cart_collect'){
|
||
|
|
$('.pb-ok').addClass('color_df3134');
|
||
|
|
}
|
||
|
|
});
|
||
|
|
|
||
|
|
//购物车和结算页面 结算按钮悬浮显示start
|
||
|
|
function cartScroll(){
|
||
|
|
var winHeight = $(window).height();
|
||
|
|
var toolbar = $(".cart-toolbar");
|
||
|
|
var toolbarTop = toolbar.offset().top;
|
||
|
|
$(window).resize(function(){
|
||
|
|
winHeight = $(window).height();
|
||
|
|
});
|
||
|
|
|
||
|
|
if(toolbarTop>winHeight){
|
||
|
|
toolbar.addClass("fixed-bottom");
|
||
|
|
}
|
||
|
|
$(window).scroll(function(){
|
||
|
|
var scrollTop = $(document).scrollTop();
|
||
|
|
if(scrollTop+winHeight>toolbarTop){
|
||
|
|
toolbar.removeClass("fixed-bottom");
|
||
|
|
}else{
|
||
|
|
toolbar.addClass("fixed-bottom");
|
||
|
|
}
|
||
|
|
});
|
||
|
|
}
|
||
|
|
function checkScroll(){
|
||
|
|
var winHeight = $(window).height();
|
||
|
|
var checkout = $(".checkout-buttons");
|
||
|
|
var checkoutTop = checkout.offset().top;
|
||
|
|
$(window).resize(function(){
|
||
|
|
winHeight = $(window).height();
|
||
|
|
});
|
||
|
|
|
||
|
|
if(checkoutTop>winHeight){
|
||
|
|
checkout.addClass("ui-ceilinglamp-current");
|
||
|
|
}
|
||
|
|
$(window).scroll(function(){
|
||
|
|
var scrollTop = $(document).scrollTop();
|
||
|
|
if(scrollTop+winHeight>checkoutTop){
|
||
|
|
checkout.removeClass("ui-ceilinglamp-current");
|
||
|
|
}else{
|
||
|
|
checkout.addClass("ui-ceilinglamp-current");
|
||
|
|
}
|
||
|
|
});
|
||
|
|
}
|
||
|
|
//购物车和结算页面 结算按钮悬浮显示end
|
||
|
|
<!-- {if $step eq "cart"} -->
|
||
|
|
cartScroll();
|
||
|
|
<!-- {/if} -->
|
||
|
|
|
||
|
|
<!-- {if $step eq "checkout"} -->
|
||
|
|
checkScroll();
|
||
|
|
$(".no_goods").live("click", function(){
|
||
|
|
var rec_number = $("input[name='rec_number_str']").val();
|
||
|
|
var url = $(this).data('url');
|
||
|
|
|
||
|
|
if(rec_number != ''){
|
||
|
|
url = url + "&rec_number=" + rec_number;
|
||
|
|
}
|
||
|
|
|
||
|
|
Ajax.call(url,'',noGoods, 'POST', 'JSON');
|
||
|
|
function noGoods(result){
|
||
|
|
pb({
|
||
|
|
id:'noGoods',
|
||
|
|
title:'很抱歉,无货啦',
|
||
|
|
width:670,
|
||
|
|
ok_title:'继续', //按钮名称
|
||
|
|
cl_title:'返回购物车', //按钮名称
|
||
|
|
content:result.content, //调取内容
|
||
|
|
drag:false,
|
||
|
|
foot:true,
|
||
|
|
onOk:function(){
|
||
|
|
$("form[name='stockFormCart']").submit();
|
||
|
|
},
|
||
|
|
onCancel:function(){
|
||
|
|
location.href = "flow.php";
|
||
|
|
}
|
||
|
|
});
|
||
|
|
$('.pb-ok').addClass('color_df3134');
|
||
|
|
}
|
||
|
|
});
|
||
|
|
<!-- {/if} -->
|
||
|
|
</script>
|
||
|
|
</body>
|
||
|
|
</html>
|