From 46d7799d4d4feb6b3d33b4c8ae27efd3d111cf1f Mon Sep 17 00:00:00 2001 From: devil Date: Sun, 26 Jul 2020 00:22:29 +0800 Subject: [PATCH] =?UTF-8?q?=E7=94=A8=E6=88=B7=E8=AE=A2=E5=8D=95=E7=AE=A1?= =?UTF-8?q?=E7=90=86=EF=BC=8C=E6=95=B0=E6=8D=AE=E5=88=97=E8=A1=A8=E4=BC=98?= =?UTF-8?q?=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- application/admin/form/Admin.php | 2 +- application/admin/form/Order.php | 1 + application/admin/form/Orderaftersale.php | 1 + .../view/default/order/module/goods.html | 10 +- .../default/public/module/form_table.html | 21 +-- application/index/controller/Order.php | 81 ++++++----- application/index/form/Order.php | 20 ++- application/index/form/Orderaftersale.php | 23 +-- .../index/view/default/order/detail.html | 4 +- .../index/view/default/order/index.html | 9 +- .../view/default/order/module/goods.html | 22 ++- .../view/default/order/module/status.html | 7 - .../module/{info.html => goods.html} | 6 +- .../default/public/module/form_table.html | 21 +-- application/module/FormHandleModule.php | 15 +- public/static/admin/default/css/common.css | 1 - public/static/common/css/common.css | 14 +- public/static/index/default/css/common.css | 133 +++++++++++++++--- 18 files changed, 268 insertions(+), 123 deletions(-) delete mode 100644 application/index/view/default/order/module/status.html rename application/index/view/default/orderaftersale/module/{info.html => goods.html} (77%) diff --git a/application/admin/form/Admin.php b/application/admin/form/Admin.php index a798d6382..4184da601 100644 --- a/application/admin/form/Admin.php +++ b/application/admin/form/Admin.php @@ -54,8 +54,8 @@ class Admin 'checked_text' => '反选', 'not_checked_text' => '全选', 'align' => 'center', - 'not_show_data' => [1], 'not_show_key' => 'id', + 'not_show_data' => [1], 'width' => 80, ], [ diff --git a/application/admin/form/Order.php b/application/admin/form/Order.php index ca8f089cf..2dbfab722 100644 --- a/application/admin/form/Order.php +++ b/application/admin/form/Order.php @@ -47,6 +47,7 @@ class Order 'is_search' => 1, 'search_url' => MyUrl('admin/order/index'), 'detail_title' => '基础信息', + 'is_middle' => 0, ], // 表单配置 'form' => [ diff --git a/application/admin/form/Orderaftersale.php b/application/admin/form/Orderaftersale.php index 0b3a25b54..027177c1a 100644 --- a/application/admin/form/Orderaftersale.php +++ b/application/admin/form/Orderaftersale.php @@ -42,6 +42,7 @@ class Orderaftersale 'key_field' => 'id', 'is_search' => 1, 'search_url' => MyUrl('admin/orderaftersale/index'), + 'is_middle' => 0, ], // 表单配置 'form' => [ diff --git a/application/admin/view/default/order/module/goods.html b/application/admin/view/default/order/module/goods.html index 56fd4e88d..1b437dbce 100644 --- a/application/admin/view/default/order/module/goods.html +++ b/application/admin/view/default/order/module/goods.html @@ -19,11 +19,13 @@ {{$item.spec_text}} {{/if}} -
- {{if $item['returned_quantity'] gt 0 or $item['refund_price'] gt 0}} - 已退 {{$item.returned_quantity}} / {{$price_symbol}}{{$item.refund_price}} - {{/if}} +
{{$price_symbol}}{{$item.price}}x{{$item.buy_number}} +
+ {{if $item['returned_quantity'] gt 0 or $item['refund_price'] gt 0}} + 已退 {{$item.returned_quantity}} / {{$price_symbol}}{{$item.refund_price}} + {{/if}} +
diff --git a/application/admin/view/default/public/module/form_table.html b/application/admin/view/default/public/module/form_table.html index 6fb4afcd3..e862d7b88 100644 --- a/application/admin/view/default/public/module/form_table.html +++ b/application/admin/view/default/public/module/form_table.html @@ -9,7 +9,7 @@ - - + + {{if empty($t['not_show_data']) or empty($t['not_show_key']) or !isset($data_list[$i][$t['not_show_key']]) or !in_array($data_list[$i][$t['not_show_key']], $t['not_show_data'])}} +
+ +
+ {{/if}} {{/if}} {{/case}} {{case checkbox}} {{if isset($data_list[$i][$form_table['base']['key_field']])}} - {{if empty($t['not_show_data']) or empty($t['not_show_key']) or !in_array($data_list[$i][$form_table['base']['key_field']], $t['not_show_data'])}} + {{if empty($t['not_show_data']) or empty($t['not_show_key']) or !isset($data_list[$i][$t['not_show_key']]) or !in_array($data_list[$i][$t['not_show_key']], $t['not_show_data'])}}
@@ -216,7 +216,7 @@ 您可以 {{/if}} {{if in_array($data['status'], [0,1])}} - + {{/if}} {{if in_array($data['status'], [1])}} diff --git a/application/index/view/default/order/index.html b/application/index/view/default/order/index.html index 72b90466a..9624be5f7 100755 --- a/application/index/view/default/order/index.html +++ b/application/index/view/default/order/index.html @@ -1,2 +1,9 @@ -{{extend name="public/module/user_form" /}} \ No newline at end of file +{{extend name="public/module/user_form" /}} + + +{{block name="form_operate_top"}} + + + {__block__} +{{/block}} \ No newline at end of file diff --git a/application/index/view/default/order/module/goods.html b/application/index/view/default/order/module/goods.html index 9398f899b..6143f185c 100644 --- a/application/index/view/default/order/module/goods.html +++ b/application/index/view/default/order/module/goods.html @@ -20,14 +20,26 @@ {{/if}} -
- {{if $item['returned_quantity'] gt 0 or $item['refund_price'] gt 0}} - 已退 {{$item.returned_quantity}} / {{$price_symbol}}{{$item.refund_price}} - {{/if}} +
{{if $item.original_price gt 0}} {{$price_symbol}}{{$item.original_price}} {{/if}} - {{$price_symbol}}{{$item.price}}x{{$item.buy_number}} + {{$price_symbol}}{{$item.price}}x{{$item.buy_number}} + {{if $item['returned_quantity'] gt 0 or $item['refund_price'] gt 0}} + 已退 {{$item.returned_quantity}} / {{$price_symbol}}{{$item.refund_price}} + {{/if}} + +
+ {{if ($module_data['is_can_launch_aftersale'] eq 1 or !empty($item['orderaftersale'])) and !empty($item['orderaftersale_btn_text'])}} + + {{if empty($item['orderaftersale'])}} + {{$item.orderaftersale_btn_text}} + {{else /}} + {{$item.orderaftersale_btn_text}} + {{/if}} + + {{/if}} +

{{/foreach}} diff --git a/application/index/view/default/order/module/status.html b/application/index/view/default/order/module/status.html deleted file mode 100644 index 3f7b07dce..000000000 --- a/application/index/view/default/order/module/status.html +++ /dev/null @@ -1,7 +0,0 @@ - -{{if !empty($module_data)}} -

{{$module_data.status_name}}

- {{if $module_data['user_is_delete_time'] neq 0}} -

用户已删除

- {{/if}} -{{/if}} \ No newline at end of file diff --git a/application/index/view/default/orderaftersale/module/info.html b/application/index/view/default/orderaftersale/module/goods.html similarity index 77% rename from application/index/view/default/orderaftersale/module/info.html rename to application/index/view/default/orderaftersale/module/goods.html index 5c0a6ca46..ffe769fb1 100644 --- a/application/index/view/default/orderaftersale/module/info.html +++ b/application/index/view/default/orderaftersale/module/goods.html @@ -1,5 +1,9 @@ {{if !empty($module_data) and !empty($module_data['order_data'])}} +

+ {{$module_data.order_no}} +

+
{{/if}} \ No newline at end of file diff --git a/application/index/view/default/public/module/form_table.html b/application/index/view/default/public/module/form_table.html index 6fb4afcd3..e862d7b88 100644 --- a/application/index/view/default/public/module/form_table.html +++ b/application/index/view/default/public/module/form_table.html @@ -9,7 +9,7 @@ - -
+ + {{if empty($t['not_show_data']) or empty($t['not_show_key']) or !isset($data_list[$i][$t['not_show_key']]) or !in_array($data_list[$i][$t['not_show_key']], $t['not_show_data'])}} +
+ +
+ {{/if}} {{/if}} {{/case}} {{case checkbox}} {{if isset($data_list[$i][$form_table['base']['key_field']])}} - {{if empty($t['not_show_data']) or empty($t['not_show_key']) or !in_array($data_list[$i][$form_table['base']['key_field']], $t['not_show_data'])}} + {{if empty($t['not_show_data']) or empty($t['not_show_key']) or !isset($data_list[$i][$t['not_show_key']]) or !in_array($data_list[$i][$t['not_show_key']], $t['not_show_data'])}}