{extend name="$base"/} {block name="resources"}
{/block} {block name="head"}
{/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"}
*{$custom.field_name}
{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"}
*{$custom.field_name}
{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"}
*{$custom.field_name}
{/if} {/volist}
{/if} {/volist} {/notempty} {/if}

### 商品清单

返回购物车

#### 其他信息

{eq name="$is_virtual" value="0"}
配送时间： 工作日、双休日与节假日均可送货 {if $data['order_config']['order_designated_delivery_time']} 修改 {/if}
配送时间： {$data.distribution_time}
{/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}
提交订单

#### 新增收货地址

* {:lang('member_consignee_name')}
* {:lang('member_distribution_area')}
* {:lang('member_detailed_address')}
* {:lang('member_phone')}
{:lang('member_fixed_telephone')}

#### 选择自提点

将根据您的收货地址显示其范围内的自提点，请确保您的收货地址填写正确

{notempty name="$data['pickup_point_list']"} {foreach name="$data['pickup_point_list']" item="vo"}
- {$vo.name}
  {$vo.province_name} {$vo.city_name} {$vo.district_name} {$vo.address}
{/foreach} {/notempty}

#### 选择配送时间

{php} $week_array = ['周日','周一','周二','周三','周四','周五','周六']; $time_slot = !empty($data['time_slot']) ? $data['time_slot'] : ['全天']; {/php}

时间段 {for start="3" end="10"} | {:date('m-d', strtotime($i." day"))} {$week_array[date('w', strtotime($i." day"))]} {/for}
--- | ---
{foreach name="$time_slot" item="vo" key="k"}
{$vo} {for start="3" end="10"} | 可选 {/for}
{/foreach}

温馨提示：我们会努力按照您指定的时间配送，但因天气、交通等各类因素影响，可能会有延误现象

{/block} {block name="sidebar"}{/block} {block name="script"}
{/block}