From 2b18477df1d4d30ff1e5c8ba4b2dff1ba4189fc2 Mon Sep 17 00:00:00 2001 From: pushuo <229102104@qq.com> Date: Fri, 1 Jul 2022 10:36:38 +0800 Subject: [PATCH] wip --- .../Http/Controllers/CustomerController.php | 1 + beike/Shop/Services/CheckoutService.php | 4 + public/build/beike/admin/css/app.css | 4 + public/build/beike/shop/default/css/app.css | 16 +- resources/beike/admin/css/element-ui.scss | 4 + .../views/pages/categories/form-vue.blade.php | 95 ++++--- .../views/pages/categories/form.blade.php | 87 +++--- .../views/pages/categories/index.blade.php | 49 ++-- .../views/pages/currencies/form.blade.php | 119 ++++---- .../views/pages/currencies/index.blade.php | 77 ++--- .../views/pages/customers/form.blade.php | 58 +++- .../views/pages/customers/index.blade.php | 178 +++++++++--- .../beike/admin/views/pages/home.blade.php | 18 +- .../views/pages/products/form/form.blade.php | 258 ++++++++--------- .../views/pages/products/index.blade.php | 263 +++++++++--------- .../beike/shop/default/css/page-checkout.scss | 15 +- themes/default/checkout.blade.php | 237 +++++++++------- 17 files changed, 827 insertions(+), 656 deletions(-) diff --git a/beike/Admin/Http/Controllers/CustomerController.php b/beike/Admin/Http/Controllers/CustomerController.php index 1419d132..4f6e3cfc 100644 --- a/beike/Admin/Http/Controllers/CustomerController.php +++ b/beike/Admin/Http/Controllers/CustomerController.php @@ -28,6 +28,7 @@ class CustomerController extends Controller $data = [ 'customers' => CustomerResource::collection($customers), + 'customer_groups' => CustomerGroupRepo::list(), ]; return view('admin::pages.customers.index', $data); diff --git a/beike/Shop/Services/CheckoutService.php b/beike/Shop/Services/CheckoutService.php index 48809add..8087cc53 100644 --- a/beike/Shop/Services/CheckoutService.php +++ b/beike/Shop/Services/CheckoutService.php @@ -13,6 +13,7 @@ namespace Beike\Shop\Services; use Beike\Repositories\AddressRepo; use Beike\Repositories\SettingRepo; +use Beike\Repositories\CountryRepo; class CheckoutService { @@ -30,6 +31,9 @@ class CheckoutService $data = [ 'addresses' => $addresses, 'shipments' => $shipments, + 'country_id' => setting('country_id'), + 'customer_id' => $customer->id, + 'countries' => CountryRepo::all(), 'payments' => $payments, 'carts' => $carts ]; diff --git a/public/build/beike/admin/css/app.css b/public/build/beike/admin/css/app.css index 7fd239e8..c37d1add 100644 --- a/public/build/beike/admin/css/app.css +++ b/public/build/beike/admin/css/app.css @@ -437,3 +437,7 @@ table.table.table-striped > tbody > tr:nth-of-type(2n) { .el-tabs__header { margin-bottom: 25px; } + +.el-tabs__item { + padding: 0 10px; +} diff --git a/public/build/beike/shop/default/css/app.css b/public/build/beike/shop/default/css/app.css index b06f6768..9867aa0b 100644 --- a/public/build/beike/shop/default/css/app.css +++ b/public/build/beike/shop/default/css/app.css @@ -469,7 +469,7 @@ body.page-cart .total-wrap .list-group li .total-price { font-weight: bold; } -body.page-checkout h4.title { +body.page-checkout .module-title { border-bottom: 1px solid #e5e5e5; padding-bottom: 16px; margin-bottom: 16px; @@ -551,10 +551,10 @@ body.page-checkout .addresses-wrap { } body.page-checkout .addresses-wrap .item { position: relative; - padding: 20px 20px 30px; + padding: 10px 20px; margin-bottom: 10px; border: 1px solid #e8e8e8; - height: 155px; + height: 125px; cursor: pointer; } body.page-checkout .addresses-wrap .item.add-addres { @@ -586,6 +586,7 @@ body.page-checkout .addresses-wrap .item.active:before { } body.page-checkout .addresses-wrap .item .name-wrap { margin-bottom: 0.5rem; + line-height: 1; } body.page-checkout .addresses-wrap .item .name-wrap .name { font-size: 1rem; @@ -596,10 +597,15 @@ body.page-checkout .addresses-wrap .item .name-wrap .phone { color: #666; } body.page-checkout .addresses-wrap .item .zipcode { - margin-bottom: 0.5rem; + margin-bottom: 0.1rem; } body.page-checkout .addresses-wrap .item .address-info { - margin-bottom: 0.5rem; + margin-bottom: 0.9rem; +} +body.page-checkout .addresses-wrap .item .address-bottom { + display: flex; + align-items: center; + justify-content: space-between; } body.page-checkout .addresses-wrap .item .address-bottom a { color: #2d68a8; diff --git a/resources/beike/admin/css/element-ui.scss b/resources/beike/admin/css/element-ui.scss index 4e76a071..4e33fef1 100644 --- a/resources/beike/admin/css/element-ui.scss +++ b/resources/beike/admin/css/element-ui.scss @@ -10,4 +10,8 @@ .el-tabs__header { margin-bottom: 25px; +} + +.el-tabs__item { + padding: 0 10px; } \ No newline at end of file diff --git a/resources/beike/admin/views/pages/categories/form-vue.blade.php b/resources/beike/admin/views/pages/categories/form-vue.blade.php index 9289f6a9..4dea984b 100644 --- a/resources/beike/admin/views/pages/categories/form-vue.blade.php +++ b/resources/beike/admin/views/pages/categories/form-vue.blade.php @@ -3,64 +3,64 @@ @section('title', '分类管理') @push('header') - + @endpush @section('content') -
| # | -名称 | -编码 | -货币左符号 | -货币右符号 | -小数位数 | -汇率值 | -状态 | -操作 | -
|---|---|---|---|---|---|---|---|---|
| {{ $currency['id'] }} | -{{ $currency['name'] }} | -{{ $currency['code'] }} | -{{ $currency['symbol_left'] }} | -{{ $currency['symbol_right'] }} | -{{ $currency['decimal_place'] }} | -{{ $currency['value'] }} | -{{ $currency['status'] }} | -- 编辑 - | -
| # | +名称 | +编码 | +货币左符号 | +货币右符号 | +小数位数 | +汇率值 | +状态 | +操作 | +
|---|---|---|---|---|---|---|---|---|
| {{ $currency['id'] }} | +{{ $currency['name'] }} | +{{ $currency['code'] }} | +{{ $currency['symbol_left'] }} | +{{ $currency['symbol_right'] }} | +{{ $currency['decimal_place'] }} | +{{ $currency['value'] }} | +{{ $currency['status'] }} | ++ 编辑 + | +
| # | -邮箱 | -名称 | -注册来源 | -状态 | -操作 | -
|---|---|---|---|---|---|
| {{ $customer['id'] }} | -{{ $customer['email'] }} | -
-
-
- {{ $customer['name'] }}
- |
- {{ $customer['from'] }} | -{{ $customer['status'] }} | -- 编辑 - | -
| # | +邮箱 | +名称 | +注册来源 | +客户组 | +状态 | +操作 | +
|---|---|---|---|---|---|---|
| @{{ customer.id }} | +@{{ customer.email }} | +
+
+ {{--
+ @{{ customer.name }}
+ |
+ @{{ customer.from }} | +@{{ customer.customer_group_name }} | +
+ | + 编辑 + + | +