2018-09-28 06:31:41 +00:00
< include file = "Public/Header" / >
<!-- header top nav -->
< include file = "Public/HeaderTopNav" / >
<!-- search -->
< include file = "Public/NavSearch" / >
<!-- header nav -->
< include file = "Public/HeaderNav" / >
<!-- goods category -->
< include file = "Public/GoodsCategory" / >
<!-- content -->
2018-09-29 10:32:31 +00:00
< div class = "am-container user-main" >
2018-09-30 10:13:06 +00:00
2018-09-29 10:32:31 +00:00
<!-- user menu start -->
< include file = "Public/UserMenu" / >
<!-- user menu end -->
<!-- content start -->
< div class = "user-content" >
< div class = "user-content-body" >
2018-09-30 10:13:06 +00:00
< form class = "am-form form-validation" method = "post" action = "{{:U('Home/Order/Index')}}" request-type = "form" >
2018-09-29 10:32:31 +00:00
< div class = "thin" >
< div class = "am-input-group am-input-group-sm am-fl so" >
2018-09-30 10:13:06 +00:00
< input type = "text" name = "keywords" class = "am-radius" placeholder = "账单号或关键字" value = "<notempty name=" params . keywords " > {{$params.keywords}}< / notempty > " />
2018-09-29 10:32:31 +00:00
< span class = "am-input-group-btn" >
< button class = "am-btn am-btn-default am-radius" type = "submit" data-am-loading = "{spinner:'circle-o-notch', loadingText:'搜索中...'}" > 搜索< / button >
< / span >
< / div >
< label class = "am-fl thin_sub" >
更多筛选条件
2018-09-30 10:13:06 +00:00
< input type = "checkbox" name = "is_more" value = "1" class = "none am-field-valid" < if condition = "isset($params['is_more'])" > checked< / if > />
2018-09-29 10:32:31 +00:00
< i class = "am-icon-angle-up" > < / i >
< / label >
< / div >
2018-09-30 10:13:06 +00:00
< table class = "so-list <if condition=" ! isset ( $ params [ ' is_more ' ] ) " > none< / if > ">
2018-09-29 10:32:31 +00:00
< tbody > < tr >
< td class = "time" >
< span > 时间:< / span >
< span class = "am-form-group" >
2018-09-30 10:13:06 +00:00
< input type = "text" name = "time_start" class = "am-form-field am-input-sm am-radius Wdate" placeholder = "起始时间" value = "<notempty name=" params . time_start " > {{$params.time_start}}< / notempty > " data-validation-message="日期格式有误" onclick="WdatePicker({firstDayOfWeek:1,dateFmt:'yyyy-MM-dd'})" />< i class = "am-icon-calendar" > < / i >
2018-09-29 10:32:31 +00:00
< / span >
< em class = "text-grey" > ~< / em >
< span class = "am-form-group" >
2018-09-30 10:13:06 +00:00
< input type = "text" name = "time_end" class = "am-form-field am-input-sm am-radius Wdate" placeholder = "结束时间" value = "<notempty name=" params . time_end " > {{$params.time_end}}< / notempty > " pattern="^[0-9]{4}-[0-9]{2}-[0-9]{2}$" data-validation-message="日期格式有误" onclick="WdatePicker({firstDayOfWeek:1,dateFmt:'yyyy-MM-dd'})" />< i class = "am-icon-calendar" > < / i >
2018-09-29 10:32:31 +00:00
< / span >
< / td >
< td class = "price" >
< span > 价格:< / span >
< span class = "am-form-group" >
2018-09-30 10:13:06 +00:00
< input type = "text" name = "price_start" class = "am-form-field am-input-sm am-radius" placeholder = "最小价格" pattern = "^([0-9]{1}\d{0,6})(\.\d{1,2})?$" data-validation-message = "价格0~9之间的数字" value = "<notempty name=" params . price_start " > {{$params.price_start}}< / notempty > " />
2018-09-29 10:32:31 +00:00
< / span >
< em class = "text-grey" > ~< / em >
< span class = "am-form-group" >
2018-09-30 10:13:06 +00:00
< input type = "text" name = "price_end" class = "am-form-field am-input-sm am-radius" placeholder = "最大价格" pattern = "^([0-9]{1}\d{0,6})(\.\d{1,2})?$" data-validation-message = "价格0~9之间的数字" value = "<notempty name=" params . price_end " > {{$params.price_end}}< / notempty > " />
2018-09-29 10:32:31 +00:00
< / span >
< / td >
< / tr >
< tr >
< td >
< span > 支付:< / span >
2018-09-30 10:13:06 +00:00
< select name = "payment_id" class = "chosen-select" data-placeholder = "支付方式..." >
< option value = "-1" > 支付方式...< / option >
< notempty name = "payment_list" >
< foreach name = "payment_list" item = "payment" >
< option value = "{{$payment.id}}" < if condition = "isset($params['payment_id']) and $params['payment_id'] eq $payment['id']" > selected< / if > >{{$payment.name}}< / option >
< / foreach >
< / notempty >
2018-09-29 10:32:31 +00:00
< / select >
< / td >
< td >
< span > 付款:< / span >
2018-09-30 10:13:06 +00:00
< select name = "pay_status" class = "chosen-select" data-placeholder = "付款状态..." >
2018-09-29 10:32:31 +00:00
< option value = "-1" > 付款状态...< / option >
2018-09-30 10:13:06 +00:00
< notempty name = "common_order_pay_status" >
< foreach name = "common_order_pay_status" item = "pay" >
< option value = "{{$pay.id}}" < if condition = "isset($params['pay_status']) and $params['pay_status'] eq $pay['id']" > selected< / if > >{{$pay.name}}< / option >
< / foreach >
< / notempty >
2018-09-29 10:32:31 +00:00
< / select >
< / td >
< / tr >
< tr >
< td >
< span > 状态:< / span >
2018-09-30 10:13:06 +00:00
< select name = "status" class = "chosen-select" data-placeholder = "订单状态..." >
< option value = "-1" > 订单状态...< / option >
< notempty name = "common_order_user_status" >
< foreach name = "common_order_user_status" item = "status" >
< option value = "{{$status.id}}" < if condition = "isset($params['status']) and $params['status'] eq $status['id']" > selected< / if > >{{$status.name}}< / option >
< / foreach >
< / notempty >
2018-09-29 10:32:31 +00:00
< / select >
< / td >
< / tr >
< tr >
< td >
2018-09-30 10:13:06 +00:00
< button type = "submit" class = "am-btn am-btn-primary am-radius am-btn-xs btn-loading-example" data-am-loading = "{spinner:'circle-o-notch', loadingText:'搜索中...'}" > 搜索< / button >
2018-09-30 16:47:53 +00:00
< a href = "{{:U('Home/Order/Index')}}" class = "am-btn am-btn-warning am-radius am-btn-sm reset-submit" > 清除条件< / a >
2018-09-29 10:32:31 +00:00
< / td >
< / tr >
< / tbody > < / table >
< / form >
<!-- 订单抬头 -->
< div class = "am-alert am-alert-secondary meila-radius" >
2018-09-30 10:13:06 +00:00
< table class = "content-title" >
2018-09-29 10:32:31 +00:00
< tbody > < tr >
< th class = "row-content" > 商品< / th >
< th class = "row-price am-hide-sm-only" > 单价< / th >
< th class = "row-number am-hide-sm-only" > 数量< / th >
< th class = "row-total-price" > 合计< / th >
< th class = "row-status am-hide-sm-only" > 状态< / th >
< th class = "row-operate" > 操作< / th >
< / tr >
< / tbody > < / table >
< / div >
<!-- 订单列表 -->
2018-09-30 10:13:06 +00:00
< notempty name = "data_list" >
< foreach name = "data_list" item = "order" >
2018-10-08 02:12:41 +00:00
< table id = "data-list-{{$order.id}}" class = "data-list <if condition=" $ order [ ' status ' ] ELT 4 " > data-ongoing< / if > ">
2018-09-30 10:13:06 +00:00
< tr class = "content-hd" >
< td colspan = "6" >
< span class = "am-icon-calendar-check-o" > {{:date('Y-m-d', $order['add_time'])}}< / span >
< span class = "am-icon-bookmark-o" > {{$order.order_no}}< / span >
2018-09-30 01:39:23 +00:00
< / td >
2018-09-30 10:13:06 +00:00
< / tr >
< foreach name = "order.items" key = "keys" item = "goods" >
< tr >
< td class = "base row-content" >
< div class = "goods-detail" >
< a href = "{{$goods.goods_url}}" target = "_blank" >
< img src = "{{$goods.images}}" >
< / a >
< div class = "goods-base" >
< a href = "{{$goods.goods_url}}" target = "_blank" class = "goods-title" > {{$goods.title}}< / a >
< notempty name = "goods.attribute" >
< ul class = "goods-attr" >
< foreach name = "goods.attribute" item = "attr" >
< li > {{$attr.attr_type_name}}: {{$attr.attr_name}}< / li >
< / foreach >
< / ul >
< / notempty >
< / div >
< / div >
< div class = "wap-base am-show-sm-only" >
< if condition = "$goods['original_price'] gt 0" >
< span class = "original-price" > ¥{{$goods.original_price}}< / span >
< / if >
< strong class = "line-price" > ¥{{$goods.price}}< / strong >
< span class = "wap-number" > x{{$goods.buy_number}}< / span >
< / div >
< / td >
< td class = "row-price am-hide-sm-only" >
< if condition = "$goods['original_price'] gt 0" >
< p class = "original-price" > ¥{{$goods.original_price}}< / p >
< / if >
< p class = "line-price" > ¥{{$goods.price}}< / p >
< / td >
< td class = "row-number am-hide-sm-only" >
x{{$goods.buy_number}}
< / td >
< if condition = "$keys eq 0" >
< td class = "row-total-price" rowspan = "{{$order.items_count}}" >
< strong class = "total-price-content" > ¥{{$order.total_price}}< / strong >
< / td >
< td class = "row-status am-hide-sm-only" rowspan = "{{$order.items_count}}" >
{{$order.status_name}}
< div class = "base-operate" >
< a class = "block" href = "{{:U('Home/Order/Detail', ['id'=>$order['id']])}}" target = "_blank" > 订单详情< / a >
< / div >
< / td >
< td class = "row-operate" rowspan = "{{$order.items_count}}" >
<!-- 0待确认, 1已确认/待支付, 2已支付/待发货, 3已发货/待收货, 4已完成, 5已取消, 6已关闭 -->
< if condition = "in_array($order['status'], [0,1])" >
< button type = "button" class = "am-btn am-btn-danger am-btn-xs am-radius am-btn-block submit-ajax submit-cancel" data-url = "{{:U('Home/Order/Cancel')}}" data-id = "{{$order.id}}" data-view = "reload" > 取消< / button >
< / if >
< if condition = "in_array($order['status'], [1])" >
< button class = "am-btn am-btn-primary am-btn-xs am-radius am-btn-block submit-pay" data-id = "{{$order.id}}" data-payment-id = "{{$order.payment_id}}" data-am-modal = "{target: '#order-pay-popup'}" > 支付< / button >
< / if >
< if condition = "in_array($order['status'], [3])" >
< button type = "button" class = "am-btn am-btn-secondary am-btn-xs am-radius am-btn-block submit-ajax submit-confirm" data-url = "{{:U('Home/Order/Confirm')}}" data-id = "{{$order.id}}" data-view = "reload" data-msg = "请仔细确认已收到货物、确认继续吗?" > 收货< / button >
< / if >
< if condition = "in_array($order['status'], [4,5,6])" >
< button type = "button" class = "am-btn am-btn-secondary am-btn-xs am-radius am-btn-block submit-delete" data-url = "{{:U('Home/Order/Delete')}}" data-id = "{{$order.id}}" data-view = "reload" > 删除< / button >
< / if >
< / td >
2018-09-30 01:39:23 +00:00
< / if >
2018-09-30 10:13:06 +00:00
< / tr >
< / foreach >
< / table >
2018-09-29 10:32:31 +00:00
< / foreach >
2018-09-30 10:13:06 +00:00
<!-- 分页 -->
{{$page_html}}
< / notempty >
< empty name = "data_list" >
< div class = "table-no" > < i class = "am-icon-warning" > < / i > {{:L('common_not_data_tips')}}< / div >
< / empty >
2018-09-29 10:32:31 +00:00
2018-09-30 10:13:06 +00:00
<!-- 支付弹窗 -->
< div class = "am-popup am-radius" id = "order-pay-popup" >
< div class = "am-popup-inner" >
< div class = "am-popup-hd" >
< h4 class = "am-popup-title" > 支付< / h4 >
< span data-am-modal-close class = "am-close" > × < / span >
< / div >
< div class = "am-popup-bd" >
< form class = "am-form pay-form" method = "post" action = "{{:U('Home/Order/Pay')}}" >
2018-10-01 17:24:40 +00:00
<!-- 支付方式 -->
< div class = "business-item" >
< h3 > 选择支付< / h3 >
< notempty name = "buy_payment_list" >
< ul class = "payment-list" data-type = "payment" >
< foreach name = "buy_payment_list" item = "payment" >
< li class = "payment-items-{{$payment.id}}" data-value = "{{$payment.id}}" >
< notempty name = "payment.logo" >
< img src = "{{$payment.logo}}" / >
< / notempty >
< span > {{$payment.name}}< / span >
< i class = "icon-active" > < / i >
< / li >
< / foreach >
< / ul >
< / notempty >
< empty name = "buy_payment_list" >
< div class = "table-no" > < i class = "am-icon-warning" > < / i > {{:L('order_payment_not_data_tips')}}< / div >
< / empty >
< / div >
< div class = "am-form-group" >
< input type = "hidden" name = "id" value = "0" / >
< input type = "hidden" name = "payment_id" value = "0" / >
< button type = "submit" class = "am-btn am-btn-primary am-radius btn-loading-example am-btn-sm am-btn-block" data-am-loading = "{loadingText:'{{:L('common_form_loading_tips')}}'}" > 确认支付< / button >
< / div >
< / form >
2018-09-30 10:13:06 +00:00
< / div >
< / div >
< / div >
2018-09-29 10:32:31 +00:00
< / div >
< / div >
<!-- content end -->
2018-09-28 06:31:41 +00:00
< / div >
<!-- footer start -->
< include file = "Public/Footer" / >
<!-- footer end -->