{extend name="$base"/} {block name="resources"} {/block} {block name="head"}
1
1.我的购物车
2
2.确认订单
3
3.提交订单
{/block} {block name="main"} {php} // 订单创建所需数据 $params = []; $params['order_type'] = !empty($create_data['order_type']) ? $create_data['order_type'] : 0; $params['goods_sku_list'] = !empty($create_data['goods_sku_list']) ? $create_data['goods_sku_list'] : ''; $params['promotion_type'] = !empty($create_data['promotion_type']) ? $create_data['promotion_type'] : 0; $params['promotion_info'] = !empty($create_data['promotion_info']) ? $create_data['promotion_info'] : []; $buyer_ip = request()->ip(); // 收货地址列表 $address_list = api("System.Member.memberAddressList",['page'=>1, 'page_size' => 0]); $address_list = $address_list['data']; $data = api("System.Order.orderDataCollation", ['data' => json_encode($params)]); $data = $data['data']; $is_virtual = $data['is_virtual']; // 是否是虚拟商品 // 收货地址 $full_address = !empty($data["address"]) ? $data["address"]["address_info"] : ''; {/php} {empty name="$data"} {:exit()} {/empty}
填写并核对订单信息
{neq name="$is_virtual" value="1"}

收货人信息

新增收货地址
{notempty name="$address_list['data']"}
    {foreach name="$address_list['data']" item="vo" key="k"}
  • {$vo.consigner} {$vo.address_info} {$vo.address} {$vo.mobile|hideStr} {eq name="$vo['is_default']" value="1"}默认地址{/eq} 编辑 删除
  • {/foreach}
{if !empty($address_list['data'])}更多地址{/if}
{else/}

目前还未设置收货地址,请先设置收货地址

{/notempty}

配送方式

{notempty name="$data['express_type']"}
    {foreach name="$data['express_type']" item="vo" key="k"}
  • {$vo.type_name}
  • {/foreach}
{else/}

站点尚未配置配送方式!

{/notempty}
{notempty name="$data['express_type']"} {notempty name="$data['express_company_list']"}
物流公司选择
    {foreach name="$data['express_company_list']" item="vo" key="k"}
  • {$vo.company_name}
  • {/foreach}
{/notempty}
自提点自提 {empty name="$data['pickup_point_list']"}该地址下没有可用的自提点{/empty}
{notempty name="$data['pickup_point_list']"}
    {php} $first_pickup_point = $data['pickup_point_list'][0]; // 如果默认是自提点配送 if($data['express_type'][0]['type_id'] == 2){ $full_address = $first_pickup_point['province_name'].' '.$first_pickup_point['city_name'].' '.$first_pickup_point['district_name'].' '.$first_pickup_point['address'].' '.$first_pickup_point['name']; } {/php}
  • {$first_pickup_point.name} {$first_pickup_point.province_name} {$first_pickup_point.city_name} {$first_pickup_point.district_name} {$first_pickup_point.address} {$data.address.consigner} {$data.address.mobile|hideStr} 修改自提点
{/notempty}
{/notempty} {else/}

账号信息

{/neq}

支付方式

{notempty name="$data['pay_type']"}
    {foreach name="$data['pay_type']" item="vo" key="k"}
  • {$vo.type_name}
  • {/foreach}
{else/}

商家尚未配置支付方式!

{/notempty}
{notempty name="$data['invoice_info']"}

发票信息

  • 不需要发票
  • 0} data-toggle="tooltip" data-placement="right" title="需加收{$data['invoice_info']['order_invoice_tax']}%的税费"{/if}> 需要发票
    {foreach name="$data['invoice_info']['order_invoice_content_list']" item="vo" key="k"}
  • {$vo}
  • {/foreach}
{/notempty} {if addon_is_exit('NsCustomForm')} {php} $custom_list = api("System.Member.getOrderCustom", []); {/php} {notempty name="$custom_list['data']"} {volist name="$custom_list.data" id="list"} {if condition = "$list.custom_list"}

{$list.oc_name}

{volist name="$list.custom_list" id="custom"} {if condition = "$custom.field_type == 3"}
{php} $option_text = explode(",", $custom['option_text']); {/php} {foreach name="$option_text" item="text" key="k"}
{$text}
{/foreach}
{/if} {if condition = "$custom.field_type == 4"}
{php} $option_text = explode(",", $custom['option_text']); {/php} {volist name="$option_text" id="text"}
{$text}
{/volist}
{/if} {if condition = "$custom.field_type == 1 || $custom.field_type == 2"}
{/if} {/volist}
{/if} {/volist} {/notempty} {/if}

商品清单

返回购物车

其他信息

{eq name="$is_virtual" value="0"}
配送时间: {if $data['order_config']['order_designated_delivery_time']} 修改 {/if}
配送时间:
{/eq}
用户留言:

商家:{$data.shop_name}

{if $data['order_type'] eq 6} {foreach name="$data['goods_sku_array']" item="product_item"}
{$product_item.goods_info.goods_name}

{$product_item.goods_sku_info.sku_name}

定金¥{$product_item.presell_price}
尾款 ¥{:sprintf("%.2f", ($product_item.sku_price - $product_item.presell_price))}
x{$product_item.num}
有货
{/foreach} {elseif $data['promotion_type'] == 4} {foreach name="$data['goods_sku_array']" item="product_item"}
{$product_item.goods_info.goods_name}

{$product_item.goods_sku_info.sku_name}

{if $product_item.goods_info.point_exchange_type == 1}
¥{$product_item.sku_price} + {$product_item.goods_info.point_exchange}积分
x{$product_item.num}
¥{$product_item.total_price}+{$product_item.buy_point}积分
{else/}
{$product_item.goods_info.point_exchange}积分
x{$product_item.num}
{$product_item.buy_point}积分
{/if}
{/foreach} {else/} {foreach name="$data['goods_sku_array']" item="product_item"}
{$product_item.goods_info.goods_name}

{$product_item.goods_sku_info.sku_name}

¥{$product_item.sku_price}
x{$product_item.num}
¥{$product_item.total_price}
{/foreach} {/if} {notempty name="$data['gift_array']"} {foreach name="$data['gift_array']" item="product_item"}
赠品 {$product_item.goods_info.goods_name}

{$product_item.goods_sku_info.sku_name}

¥0.00
x{$product_item.num}
¥0.00
{/foreach} {/notempty}
{if !empty($data['coupon_list']) || !empty($data['max_use_point'])}

使用优惠

{notempty name="$data['coupon_list']"}
{foreach name="$data['coupon_list']" item="vo" key="k"}

¥ {$vo.money}

{if $vo.at_least > 0}

满{$vo.at_least}元可用

{else/}

无门槛券

{/if}

有效期至{$vo.end_time|date="Y-m-d",###}

{/foreach}
{/notempty} {if $data['max_use_point'] > 0}
账户可用积分{$data['max_use_point']},本次使用 积分
{/if}
{notempty name="$data['coupon_list']"}
金额抵用0.00 使用优惠券1张,优惠0.00
{/notempty} {if $data['max_use_point'] > 0}
积分抵现0.00 使用0个积分,可抵现金0.00
{/if}
{/if}
{eq name="$data['order_type']" value="6"}
付款:
{/eq}
{$data['goods_sku_array']|count} 件商品,商品总金额: 0.00
{eq name="$is_virtual" value="0"}
运费: 0.00
{/eq}
税费: 0.00
优惠金额: 0.00
{eq name="$data['promotion_type']" value="4"}
兑换所需积分: {$data.total_buy_point}积分 {if $data['member_account']['point'] < $data.total_buy_point} {/if}
{/eq}

应付总额:0.00

{if $is_virtual eq 0 && !empty($data['address'])}

寄送至:{$full_address} 收货人:{$data['address']['consigner']}{$data['address']['mobile']|hideStr}

{/if}
提交订单
{/block} {block name="sidebar"}{/block} {block name="script"} {/block}