<div class="container">
	<h2 class="text-center">购物清单</h2>
	<hr/>
	<p>订单号：{$order_no}</p>
	<p>下单时间：{$create_time}</p>
	<hr/>

	{foreach:items=Api::run('getOrderGoodsRowByOrderId',array('id'=>$id))}
	{set:$goodsRow = JSON::decode($item['goods_array'])}
	<p>商品货号：{$goodsRow['goodsno']}</p>
	<p>
		{$goodsRow['name']} {$goodsRow['value']}
		{foreach:items=Api::run('getBrandByGoodsId',array('id'=>$item["goods_id"])) item=$brandRow}
		【{$brandRow['name']}】
		{/foreach}
		x {$item['goods_nums']}
		￥{$item['goods_price']}
	</p>
	<p>重量：{echo:common::formatWeight($item['goods_weight'])}</p>
	<p>小计：￥{echo:$item['goods_price'] * $item['goods_nums']}</p>
	<hr/>
	{/foreach}

	<p>商品总价：￥{$real_amount}</p>

	<p>运费价格：￥{$real_freight}</p>

	{if:$insured > 0}
	<p>订单保价：￥{$insured}</p>
	{/if}

	{if:$taxes > 0}
	<p>订单税金：￥{$taxes}</p>
	{/if}

	{if:$discount != 0}
	<p>价格优惠：￥{$discount}</p>
	{/if}

	<p>订单总价：￥{$order_amount}</p>
	<p>支付状态：{echo:$pay_status == 0 ? "未支付" : "已支付"}</p>

	<hr/>
	<p>客户名：{$accept_name}</p>
	<p>电话号：{$mobile}</p>
	<p>收货地址：{$address}</p>

	<hr/>
	<p>服务商：{if:isset($set['name'])}{$set['name']}{/if}</p>
	<p>电话：{if:isset($set['phone'])}{$set['phone']}{/if}</p>
	<p>邮箱：{if:isset($set['email'])}{$set['email']}{/if}</p>
	<p>网站：{if:isset($set['url'])}{$set['url']}{/if}</p>

	<input type="submit" class="btn btn-success btn-block d-print-none" onclick="window.print();" value="打印" />
</div>