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.
 
 
 
 

414 lines
32 KiB

<div class="step-tit">
<h3>送货清单</h3>
<a href="flow.php" class="returnCart">返回购物车</a>
</div>
<div class="step-cont">
<?php $_from = $this->_var['goods_list']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }; $this->push_vars('', 'goodsRu');if (count($_from)):
foreach ($_from AS $this->_var['goodsRu']):
?>
<div class="shopping-list">
<div class="cart-tbody">
<div class="shopping-seller">
<div class="item-seller-l">
<div class="shop">
<div class="shop-txt"><h3>商家:<?php echo $this->_var['goodsRu']['ru_name']; ?></h3></div>
</div>
<?php $_from = $this->_var['goodsRu']['new_list']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }; $this->push_vars('key', 'activity');$this->_foreach['nogoods'] = array('total' => count($_from), 'iteration' => 0);
if ($this->_foreach['nogoods']['total'] > 0):
foreach ($_from AS $this->_var['key'] => $this->_var['activity']):
$this->_foreach['nogoods']['iteration']++;
?>
<?php if ($this->_var['activity']['act_id'] > 0): ?>
<div class="item-list">
<div class="item-goods-list">
<div class="goods-suit-tit">
<div class="f-txt">
<span class="full-icon"><?php echo $this->_var['activity']['act_type_txt']; ?><b></b></span>
<?php if ($this->_var['activity']['act_type'] == 0): ?>
<?php if ($this->_var['activity']['act_type_ext'] == 0): ?>
<?php if ($this->_var['activity']['available']): ?>
<a href="javascript:;">
<span>活动商品已购满<?php echo $this->_var['activity']['min_amount']; ?>元 ,可领取赠品<?php if ($this->_var['activity']['cart_favourable_gift_num'] > 0): ?>,已领取<?php echo $this->_var['activity']['cart_favourable_gift_num']; ?>件<?php endif; ?>
</span>
</a>
<?php else: ?>
<a href="javascript:;"><span>活动商品购满<?php echo $this->_var['activity']['min_amount']; ?>元即可领取赠品,先到先得 </span></a>
<?php endif; ?>
<?php else: ?>
<?php if ($this->_var['activity']['available']): ?>
<a href="javascript:;"><span>活动商品已购满<?php echo $this->_var['activity']['min_amount']; ?>元 ,
<?php if ($this->_var['activity']['cart_favourable_gift_num'] > 0): ?>您已经领取了赠品<?php else: ?>您可以返回购物车领取赠品<?php endif; ?></span></a>
<?php else: ?>
<a href="javascript:;"><span>活动商品购满<?php echo $this->_var['activity']['min_amount']; ?>元即可领取赠品,先到先得</span></a>
<?php endif; ?>
<?php endif; ?>
<?php elseif ($this->_var['activity']['act_type'] == 1): ?>
<?php if ($this->_var['activity']['available']): ?>
<a href="javascript:;"><span>活动商品已购满<?php echo $this->_var['activity']['min_amount']; ?>元 ,已减<?php echo $this->_var['activity']['act_type_ext_format']; ?>元现金</span></a>
<?php else: ?>
<a href="javascript:;"><span>活动商品购满<?php echo $this->_var['activity']['min_amount']; ?>元, 即可享受满减优惠</span></a>
<?php endif; ?>
<?php elseif ($this->_var['activity']['act_type'] == 2): ?>
<?php if ($this->_var['activity']['available']): ?>
<a href="javascript:;"><span>活动商品已购满<?php echo $this->_var['activity']['min_amount']; ?>元 ,已享受<?php echo $this->_var['activity']['act_type_ext_format']; ?>折优惠</span></a>
<?php else: ?>
<a href="javascript:;"><span>活动商品购满<?php echo $this->_var['activity']['min_amount']; ?>元, 即可享受折扣</span></a>
<?php endif; ?>
<?php endif; ?>
</div>
</div>
<?php $_from = $this->_var['activity']['act_cart_gift']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }; $this->push_vars('', 'goods');if (count($_from)):
foreach ($_from AS $this->_var['goods']):
?>
<div class="item-item">
<div class="item-form">
<div class="cell p-goods">
<div class="goods-item">
<div class="p-img"><a href="<?php echo $this->_var['goods']['url']; ?>" target="_blank"><img src="<?php echo $this->_var['goods']['goods_thumb']; ?>" width="80" height="80"></a></div>
<div class="item-msg">
<div class="p-name">
<em class="s-ico">赠品</em>
<a href="<?php echo $this->_var['goods']['url']; ?>" target="_blank"><?php echo $this->_var['goods']['goods_name']; ?></a>
</div>
</div>
</div>
</div>
<div class="cell p-attr">
<?php echo nl2br($this->_var['goods']['goods_attr']); ?>
</div>
<div class="cell p-price">
<strong><?php if ($this->_var['goods']['rec_type'] == 5): ?>定金:<?php echo $this->_var['goods']['formated_presale_deposit']; ?><?php else: ?><?php echo $this->_var['goods']['formated_goods_price']; ?><?php endif; ?></strong>
<?php if ($this->_var['goods']['dis_amount'] > 0): ?>
<font style="text-decoration:line-through; color:#999;">原价:¥<?php echo $this->_var['goods']['original_price']; ?></font>
<font style="color:#F60">(优惠:<?php echo $this->_var['goods']['discount_amount']; ?>)</font>
<?php endif; ?>
<span class="num">x<?php echo $this->_var['goods']['goods_number']; ?></span>
</div>
<div class="cell p-number">
<?php if ($this->_var['goods']['attr_number']): ?>
有货
<input name="rec_number" type="hidden" id="<?php echo $this->_var['goods']['rec_id']; ?>" value="0">
<?php else: ?>
<font style="color:#e4393c">无货</font>
<input name="rec_number" type="hidden" id="<?php echo $this->_var['goods']['rec_id']; ?>" value="1">
<?php endif; ?>
</div>
</div>
</div>
<?php endforeach; endif; unset($_from); ?><?php $this->pop_vars();; ?>
<?php $_from = $this->_var['activity']['act_goods_list']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }; $this->push_vars('', 'goods');if (count($_from)):
foreach ($_from AS $this->_var['goods']):
?>
<div class="item-item">
<div class="item-form">
<div class="cell p-goods">
<div class="goods-item">
<div class="p-img"><a href="<?php echo $this->_var['goods']['url']; ?>" target="_blank"><img src="<?php echo $this->_var['goods']['goods_thumb']; ?>" width="80" height="80"></a></div>
<div class="item-msg">
<div class="p-name">
<a href="<?php echo $this->_var['goods']['url']; ?>" target="_blank"><?php echo $this->_var['goods']['goods_name']; ?></a>
</div>
</div>
</div>
</div>
<div class="cell p-attr">
<?php echo nl2br($this->_var['goods']['goods_attr']); ?>
</div>
<div class="cell p-price">
<strong><?php if ($this->_var['goods']['rec_type'] == 5): ?>定金:<?php echo $this->_var['goods']['formated_presale_deposit']; ?><?php else: ?><?php echo $this->_var['goods']['formated_goods_price']; ?><?php endif; ?></strong>
<?php if ($this->_var['goods']['dis_amount'] > 0): ?>
<font style="text-decoration:line-through; color:#999;">原价:¥<?php echo $this->_var['goods']['original_price']; ?></font>
<font style="color:#F60">(优惠:<?php echo $this->_var['goods']['discount_amount']; ?>)</font>
<?php endif; ?>
<span class="num">x<?php echo $this->_var['goods']['goods_number']; ?></span>
</div>
<div class="cell p-number">
<?php if ($this->_var['goods']['attr_number']): ?>
有货
<input name="rec_number" type="hidden" id="<?php echo $this->_var['goods']['rec_id']; ?>" value="0">
<?php else: ?>
<font style="color:#e4393c">无货</font>
<input name="rec_number" type="hidden" id="<?php echo $this->_var['goods']['rec_id']; ?>" value="1">
<?php endif; ?>
</div>
</div>
</div>
<?php endforeach; endif; unset($_from); ?><?php $this->pop_vars();; ?>
</div>
</div>
<?php else: ?>
<?php $_from = $this->_var['activity']['act_goods_list']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }; $this->push_vars('', 'goods');if (count($_from)):
foreach ($_from AS $this->_var['goods']):
?>
<div class="item-list">
<div class="item-goods-list">
<div class="item-item">
<div class="item-form">
<div class="cell p-goods">
<div class="goods-item">
<?php if ($this->_var['goods']['goods_id'] > 0 && $this->_var['goods']['extension_code'] != 'package_buy'): ?>
<div class="p-img"><a href="<?php echo $this->_var['goods']['url']; ?>" target="_blank"><img src="<?php echo $this->_var['goods']['goods_thumb']; ?>" width="80" height="80"></a></div>
<?php endif; ?>
<div class="item-msg">
<div class="p-name">
<?php if ($this->_var['goods']['goods_id'] > 0 && $this->_var['goods']['extension_code'] == 'package_buy'): ?>
<a href="javascript:void(0)" onclick="setSuitShow(<?php echo $this->_var['goods']['goods_id']; ?>)" class="f6"><?php echo $this->_var['goods']['goods_name']; ?><span style="color:#FF0000;">(<?php echo $this->_var['lang']['remark_package']; ?>)</span></a>
<div id="suit_<?php echo $this->_var['goods']['goods_id']; ?>" class="package_goods">
<ul>
<?php $_from = $this->_var['goods']['package_goods_list']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }; $this->push_vars('', 'package_goods_list');$this->_foreach['nopackage'] = array('total' => count($_from), 'iteration' => 0);
if ($this->_foreach['nopackage']['total'] > 0):
foreach ($_from AS $this->_var['package_goods_list']):
$this->_foreach['nopackage']['iteration']++;
?>
<?php if (! ($this->_foreach['nopackage']['iteration'] <= 1)): ?>
<li <?php if (($this->_foreach['nopackage']['iteration'] - 1) > 3): ?> style="display:none;"<?php endif; ?>>
<a href="goods.php?id=<?php echo $this->_var['package_goods_list']['goods_id']; ?>" target="_blank" class="f6">
<img src="<?php echo $this->_var['package_goods_list']['goods_thumb']; ?>" width="40" height="40" />
<?php echo $this->_var['package_goods_list']['goods_name']; ?>
</a>
</li>
<?php endif; ?>
<?php endforeach; endif; unset($_from); ?><?php $this->pop_vars();; ?>
</ul>
<span class="ellipsis">......</span>
<a href="javascript:void(0);" class="package-prolist-more">查看更多︾</a>
</div>
<?php else: ?>
<a href="<?php echo $this->_var['goods']['url']; ?>" target="_blank"><?php echo $this->_var['goods']['goods_name']; ?></a>
<?php endif; ?>
</div>
</div>
</div>
</div>
<div class="cell p-attr">
<?php echo nl2br($this->_var['goods']['goods_attr']); ?>
</div>
<div class="cell p-price">
<strong><?php if ($this->_var['goods']['rec_type'] == 5): ?>定金:<?php echo $this->_var['goods']['formated_presale_deposit']; ?><?php else: ?><?php echo $this->_var['goods']['formated_goods_price']; ?><?php endif; ?></strong>
<?php if ($this->_var['goods']['dis_amount'] > 0): ?>
<font style="text-decoration:line-through; color:#999;">原价:¥<?php echo $this->_var['goods']['original_price']; ?></font>
<font style="color:#F60">(优惠:<?php echo $this->_var['goods']['discount_amount']; ?>)</font>
<?php endif; ?>
<span class="num">x<?php echo $this->_var['goods']['goods_number']; ?></span>
</div>
<div class="cell p-number">
<?php if ($this->_var['goods']['attr_number']): ?>
有货
<input name="rec_number" type="hidden" id="<?php echo $this->_var['goods']['rec_id']; ?>" value="0">
<?php else: ?>
<font style="color:#e4393c">无货</font>
<input name="rec_number" type="hidden" id="<?php echo $this->_var['goods']['rec_id']; ?>" value="1">
<?php endif; ?>
</div>
</div>
</div>
</div>
</div>
<?php endforeach; endif; unset($_from); ?><?php $this->pop_vars();; ?>
<?php endif; ?>
<?php if (! ($this->_foreach['nogoods']['iteration'] == $this->_foreach['nogoods']['total'])): ?>
<div class="shopping-blank"></div>
<?php endif; ?>
<?php endforeach; endif; unset($_from); ?><?php $this->pop_vars();; ?>
</div>
<div class="item-list-r">
<div class="shop"><div class="shop-txt"><h3>配送方式</h3></div></div>
<div class="item-content">
<div class="mode-tab-nav radio-list">
<ul>
<li class="mode-tab-item shopping-list-checked <?php if ($this->_var['goodsRu']['shipping_type'] == 0): ?>item-selected<?php endif; ?>" data-ruid="<?php echo $this->_var['goodsRu']['ru_id']; ?>" data-type="0" data-shipping="<?php echo $this->_var['goodsRu']['shipping']['shipping_id']; ?>" data-shippingcode="<?php echo $this->_var['goodsRu']['shipping']['shipping_code']; ?>">快递运输</li>
<?php if ($this->_var['goodsRu']['ru_id'] == 0 && $this->_var['goodsRu']['self_point'] != ""): ?>
<li class="mode-tab-item shopping-list-checked <?php if ($this->_var['goodsRu']['shipping_type'] == 1): ?>item-selected<?php endif; ?>" data-ruid="<?php echo $this->_var['goodsRu']['ru_id']; ?>" data-type="1" data-shipping="<?php echo $this->_var['goodsRu']['self_point']['shipping_id']; ?>" data-shippingcode="<?php echo $this->_var['goodsRu']['self_point']['shipping_code']; ?>">
上门自取<em style="color:#ec5051">(荐)</em>
</li>
<?php endif; ?>
</ul>
<input type="hidden" class="shipping_<?php echo $this->_var['goodsRu']['ru_id']; ?>" name="shipping[]" value="<?php if ($this->_var['goodsRu']['shipping_type'] == 0): ?><?php echo empty($this->_var['goodsRu']['shipping']['shipping_id']) ? '0' : $this->_var['goodsRu']['shipping']['shipping_id']; ?><?php else: ?><?php echo empty($this->_var['goodsRu']['self_point']['shipping_id']) ? '0' : $this->_var['goodsRu']['self_point']['shipping_id']; ?><?php endif; ?>"/>
<input type="hidden" class="shipping_code_<?php echo $this->_var['goodsRu']['ru_id']; ?>" name="shipping_code[]" value="<?php if ($this->_var['goodsRu']['shipping_type'] == 0): ?><?php echo empty($this->_var['goodsRu']['shipping']['shipping_code']) ? '无' : $this->_var['goodsRu']['shipping']['shipping_code']; ?><?php else: ?><?php echo empty($this->_var['goodsRu']['self_point']['shipping_code']) ? '无' : $this->_var['goodsRu']['self_point']['shipping_code']; ?><?php endif; ?>"/>
<input type="hidden" class="shipping_type_<?php echo $this->_var['goodsRu']['ru_id']; ?>" name="shipping_type[]" value="0" />
</div>
<div class="mode-tab-con">
<div class="hide">
<div class="mode-list-item">
<label class="tit">配送方式:</label>
<input type="hidden" name="ru_id[]" value="<?php echo $this->_var['goodsRu']['ru_id']; ?>" />
<input type="hidden" name="ru_name[]" value="<?php echo $this->_var['goodsRu']['ru_name']; ?>" />
<span class="value"><?php if ($this->_var['goodsRu']['shipping']['shipping_name']): ?><?php echo $this->_var['goodsRu']['shipping']['shipping_name']; ?><?php else: ?>该地区不支持配送<?php endif; ?></span>
<a href="#none" class="ftx-05 hide" data-dialog="shopping_dialog" data-divid="shopping_seller_list" data-name="选择配送方式" data-width="730" data-height="210" data-url="#">修改</a>
</div>
<?php if ($this->_var['goodsRu']['shipping']['shipping_name']): ?>
<div class="mode-list-item">
<label class="tit">运&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;费:</label>
<span class="value"><?php if ($this->_var['goodsRu']['shipping']['shipping_fee']): ?><?php echo $this->_var['goodsRu']['shipping']['format_shipping_fee']; ?><?php else: ?>免运费<?php endif; ?></span>
</div>
<?php endif; ?>
</div>
<div class="mode-list hide">
</div>
<?php if ($this->_var['goodsRu']['self_point'] != ""): ?>
<div class="mode-list <?php if ($this->_var['goodsRu']['shipping_type'] == 1): ?>show<?php else: ?>hide<?php endif; ?>">
<div class="mode-list-item">
<label class="tit">自提地点:</label>
<span class="value"><?php echo $this->_var['goodsRu']['self_point']['name']; ?></span>
<a href="javascript:void(0);" class="ftx-05" data-dialog="flow_dialog" data-mark="0" data-width="700" data-height="350" data-divid="picksite_box" data-title="选择自提点" data-url="flow.php?step=pickSite">修改</a>
</div>
<div class="mode-list-item">
<label class="tit">自提日期:</label>
<span class="value"><?php echo $this->_var['goodsRu']['self_point']['shipping_dateStr']; ?></span>
<a href="javascript:void(0);" class="ftx-05" data-dialog="flow_dialog" data-mark="1" data-divid="take_their_time" data-title="自提时间" data-width="600" data-height="250" data-url="flow.php?step=pickSite&mark=1">修改</a>
</div>
<div class="yunfei">免运费</div>
<input type="hidden" name="point_id" value="<?php echo $this->_var['goodsRu']['self_point']['point_id']; ?>">
<input type="hidden" name="shipping_dateStr" value="<?php echo $this->_var['goodsRu']['self_point']['shipping_dateStr']; ?>">
</div>
<?php endif; ?>
</div>
</div>
</div>
</div>
</div>
</div>
<?php endforeach; endif; unset($_from); ?><?php $this->pop_vars();; ?>
</div>
<div class="order-remarks">
<div class="remark-tit">添加订单备注</div>
<div class="form remark-cont">
<input name="postscript" type="text" id="remarkText" maxlength="45" size="15" class="itxt itxt01" placeholder="限60个字" onblur="if(this.value==''||this.value=='限60个字'){this.value='限60个字';this.style.color='#cccccc'}" onfocus="if(this.value=='限60个字') {this.value='';};this.style.color='#000000';">
<span class="ml10">&nbsp;&nbsp;提示:请勿填写有关支付、收货、发票方面的信息</span>
</div>
</div>
<?php if ($this->_var['how_oos_list']): ?>
<div class="order-remarks hide">
<div class="remark-tit"><?php echo $this->_var['lang']['booking_process']; ?></div>
<div class="form remark-cont">
<?php $_from = $this->_var['how_oos_list']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }; $this->push_vars('how_oos_id', 'how_oos_name');if (count($_from)):
foreach ($_from AS $this->_var['how_oos_id'] => $this->_var['how_oos_name']):
?>
<label><input name="how_oos" type="radio" value="<?php echo $this->_var['how_oos_id']; ?>" <?php if ($this->_var['order']['how_oos'] == $this->_var['how_oos_id']): ?>checked<?php endif; ?> onclick="changeOOS(this)" /><?php echo $this->_var['how_oos_name']; ?></label>
<?php endforeach; endif; unset($_from); ?><?php $this->pop_vars();; ?>
</div>
</div>
<?php endif; ?>
<script>
$(function(){
//快速运输和上门自取切换
$(".shopping-list-checked").live('click',function(){
var index = $(this).index();
var ru_id = $(this).data('ruid');
var type = $(this).data('type');
var shipping_id = $(this).data('shipping');
var shipping_code = $(this).data('shippingcode');
$(this).addClass("item-selected").siblings().removeClass("item-selected");
$(".shipping_" + ru_id).val(shipping_id);
$(".shipping_code_" + ru_id).val(shipping_code);
var mode_tab_nav = $(this).parents(".mode-tab-nav");
mode_tab_nav.next().find(".mode-list").eq(index).show();
mode_tab_nav.next().find(".mode-list").eq(index).siblings().hide();
Ajax.call('ajax_dialog.php?act=shipping_type', 'ru_id=' + ru_id + '&type=' + type, changeShippingResponse, 'POST','JSON');
});
//结算页面多个礼包产品展开
$(".package-prolist-more").click(function(){
$(this).prevAll("ul").find("li").show();
$(this).prev().hide();
$(this).hide();
});
function changeShippingResponse(result){
$(".shipping_type_" + result.ru_id).val(result.shipping_type);
if (result.error)
{
alert(result.massage);
location.href = './';
}
try
{
var layer = document.getElementById("ECS_ORDERTOTAL");
layer.innerHTML = (typeof result == "object") ? result.content : result;
}
catch (ex) {}
}
//自提点
$("*[data-dialog='flow_dialog']").live('click',function(){
var ok_title,cl_title,url,title,width,height,divId,mark,ajax_picksite;
url = $(this).data('url'); //删除连接地址
title = $(this).data('title');
width = $(this).data('width');
height = $(this).data('height');
divId = $(this).data('divid');
mark = $(this).data('mark'); //区分提货站与日期修改
ok_title = "保存";
cl_title = "取消";
Ajax.call(url,'',shopResponse, 'POST', 'JSON');
function shopResponse(result){
pb({
id:divId,
title:title,
width:width,
height:height,
ok_title:ok_title, //按钮名称
cl_title:cl_title, //按钮名称
content:result.result, //调取内容
drag:false,
foot:true,
onOk:function(){ //保存回调函数
if(mark == 0){
var district = $("#pickRegion_select").val();
var picksite_id = $("input[name='picksite_radio']:checked").val();
ajax_picksite = 'district='+ district +'&picksite_id='+ picksite_id + 'mark=' + mark ;
}else{
var shipping_date = $("input[name='shipping_date']:checked").attr('data-shippingDate');
var time_range = $("input[name='shipping_date']:checked").attr('data-range');
if(typeof(shipping_date) == "undefined"){
alert("请选择提货时间段!");return false;
}
ajax_picksite = 'shipping_date='+ shipping_date + '&time_range='+ time_range +'&mark=' + mark ;
}
Ajax.call('flow.php?step=select_picksite', ajax_picksite, selectPicksiteResponse, 'POST', 'JSON');
},
onCancel:function(){ //取消回调函数
}
});
}
});
function selectPicksiteResponse(result){
if(result.error == 0){
$("#goods_inventory").html(result.content);
}else{
alert(result.massage);location.href = './';
}
}
});
</script>