diff --git a/resources/beike/shop/default/css/cart.scss b/resources/beike/shop/default/css/cart.scss index 882b73cf..9716cacc 100644 --- a/resources/beike/shop/default/css/cart.scss +++ b/resources/beike/shop/default/css/cart.scss @@ -8,6 +8,26 @@ * @LastEditTime 2022-09-16 20:47:16 */ +body.page-checkout, body.page-cart { + background-color: #f6f8fa; + + .left-column { + @media (min-width: 992px) { + width: 70%; + } + } + + .right-column { + @media (min-width: 992px) { + width: 30%; + } + + @media (max-width: 768px) { + margin-top: 1.4rem; + } + } +} + body.page-cart { .cart-products-wrap { .table { @@ -18,11 +38,11 @@ body.page-cart { border-color: #f0f2f4; } - tr { - &.active { - background-color: #fff6f1; - } - } + // tr { + // &.active { + // background-color: #fff6f1; + // } + // } } thead { @@ -45,9 +65,6 @@ body.page-cart { } .total-wrap { - border: none; - background-color: #F8F9FA; - &.total-wrap-fixed { position: fixed; top: 0; diff --git a/resources/beike/shop/default/css/global.scss b/resources/beike/shop/default/css/global.scss index 3ef4c04f..194178f9 100644 --- a/resources/beike/shop/default/css/global.scss +++ b/resources/beike/shop/default/css/global.scss @@ -165,7 +165,6 @@ body[class^="page-account-"] { } .number-wrap { - background-color: #fff; padding: 0 4px; margin-bottom: .5rem; } diff --git a/resources/beike/shop/default/css/page-checkout.scss b/resources/beike/shop/default/css/page-checkout.scss index aabf99f4..2e595633 100644 --- a/resources/beike/shop/default/css/page-checkout.scss +++ b/resources/beike/shop/default/css/page-checkout.scss @@ -9,6 +9,8 @@ */ body.page-checkout { + background-color: #f6f8fa; + .radio-line-wrap { .radio-line-item { display: flex; @@ -95,18 +97,6 @@ body.page-checkout { border: none; } } - // .add-addres { - // display: flex; - // align-items: center; // flex-start | center - // justify-content: center; // flex-end | center | space-between - // flex-direction: column; - // font-size: 1rem; - // color: #666; - - // i { - // font-size: 2rem; - // } - // } } } @@ -115,33 +105,15 @@ body.page-checkout, body.page-bk-stripe { margin-bottom: 2.6rem; } - .right-column { - position: relative; - @media (min-width: 992px) { - padding-left: 2rem; - } - } - .checkout-title { - border-bottom: 1px solid #e5e5e5; + border-bottom: 1px solid #f1f1f1; padding-bottom: 16px; margin-bottom: 16px; position: relative; - // padding-left: 10px; display: flex; align-items: center; // flex-start | center justify-content: space-between; // flex-end | center | space-between - // &:before { - // content: ''; - // position: absolute; - // top: 2px; - // left: 0; - // background-color: $primary; - // width: 3px; - // height: 16px; - // } - .btn { margin-bottom: -10px; &.icon { @@ -151,18 +123,21 @@ body.page-checkout, body.page-bk-stripe { } .total-wrap { - padding: 1.4rem; - border: 3px solid #efefef; - .card-body { - padding: 0; + @media (min-width: 768px) { + padding: 0; + } } .card-header { background-color: #fff; - padding: 0 0 .8rem; margin-bottom: 1rem; border-bottom: 1px solid #E6E6E6; + + @media (min-width: 768px) { + padding: 0 0 .8rem; + } + h5 { font-weight: bold; } @@ -222,7 +197,6 @@ body.page-checkout, body.page-bk-stripe { align-items: center; // flex-start | center justify-content: space-between; // flex-end | center | space-between margin-bottom: 14px; - // flex-wrap: wrap; &:last-of-type { font-weight: bold; @@ -232,16 +206,10 @@ body.page-checkout, body.page-bk-stripe { } } } - > span { - // font-weight: bold; + > span { &:first-of-type { font-size: .8rem; - // color: #3f3f3f; - } - - &:last-of-type { - // color: #dc3545; } } } diff --git a/themes/default/cart/cart.blade.php b/themes/default/cart/cart.blade.php index 3c115bf4..8a29e87c 100644 --- a/themes/default/cart/cart.blade.php +++ b/themes/default/cart/cart.blade.php @@ -22,69 +22,77 @@ @endif
-
-
- - - - - - - - - - - - - - - - - - - -
- - - {{ __('shop/carts.index') }}{{ __('shop/carts.commodity') }}{{ __('shop/carts.subtotal') }}{{ __('common.action') }}
-
- -
-
-
-
-
@{{ product.variant_labels }}
-
@{{ product.price_format }}
-
-
- -
- - -
-
-
@{{ product.subtotal_format }} - -
+
+
+
+
{{ __('shop/carts.commodity') }}
+
+ + + + + + + + + + + + + + + + + + + +
+ + + {{ __('shop/carts.index') }}{{ __('shop/carts.commodity') }}{{ __('shop/carts.subtotal') }}{{ __('common.action') }}
+
+ +
+
+
+
+
@{{ product.variant_labels }}
+
@{{ product.price_format }}
+
+
+ +
+ + +
+
+
@{{ product.subtotal_format }} + +
+
+
-
-
-
{{ __('shop/carts.product_total') }}
-
-
    -
  • {{ __('shop/carts.all') }}@{{ allProduct }}
  • -
  • {{ __('shop/carts.selected') }}@{{ total_quantity }}
  • -
  • {{ __('shop/carts.product_total') }}@{{ amount_format }}
  • -
  • - {{-- 去结账 --}} - -
  • -
+
+
+
+
+
{{ __('shop/carts.product_total') }}
+
+
    +
  • {{ __('shop/carts.all') }}@{{ allProduct }}
  • +
  • {{ __('shop/carts.selected') }}@{{ total_quantity }}
  • +
  • {{ __('shop/carts.product_total') }}@{{ amount_format }}
  • +
  • + +
  • +
+
+
diff --git a/themes/default/checkout.blade.php b/themes/default/checkout.blade.php index cc0ecd78..b9af5e01 100644 --- a/themes/default/checkout.blade.php +++ b/themes/default/checkout.blade.php @@ -19,199 +19,214 @@
-
-
-
-
-
{{ __('shop/checkout.address') }}
- {{ __('shop/checkout.same_as_shipping_address') }} - -
- -
-
-
- +
-
-
-
-
-
-
{{ __('shop/checkout.payment_address') }}
-
- -
-
-
- +
-
-
-
-
{{ __('shop/checkout.payment_method') }}
-
- @foreach ($payment_methods as $payment) -
-
- - {{-- --}} - -
-
-
{{ $payment['name'] }}
-
{!! $payment['description'] !!}
-
+
+
{{ __('shop/checkout.payment_method') }}
+
+ @foreach ($payment_methods as $payment) +
+
+ + {{-- --}} + +
+
+
{{ $payment['name'] }}
+
{!! $payment['description'] !!}
+
+
+ @endforeach
- @endforeach -
-
+
-
-
{{ __('shop/checkout.delivery_method') }}
-
- @foreach ($shipping_methods as $methods) - @foreach ($methods['quotes'] as $shipping) -
-
- {{-- --}} - - -
-
-
{{ $shipping['name'] }}
-
{!! $shipping['description'] !!}
-
{!! $shipping['html'] ?? '' !!}
-
+
+
{{ __('shop/checkout.delivery_method') }}
+
+ @foreach ($shipping_methods as $methods) + @foreach ($methods['quotes'] as $shipping) +
+
+ {{-- --}} + + +
+
+
{{ $shipping['name'] }}
+
{!! $shipping['description'] !!}
+
{!! $shipping['html'] ?? '' !!}
+
+
+ @endforeach + @endforeach
- @endforeach - @endforeach +
-
+ @if (!current_customer()) +
+
+
{{ __('shop/login.login_and_sign') }}
+
+
+ +
+
+ @endif + +
{{ __('shop/checkout.cart_totals') }}
{{ $carts['quantity'] }} @@ -242,7 +257,7 @@ @endforeach
- +
@@ -269,6 +284,10 @@ $('#submit-checkout').click(function(event) { app.checkedBtnCheckoutConfirm(); }); + + $('.guest-checkout-login').click(function(event) { + bk.openLogin(); + }); }); var app = new Vue({