diff --git a/public/build/beike/shop/default/css/app.css b/public/build/beike/shop/default/css/app.css index a57f6c4a..b06f6768 100644 --- a/public/build/beike/shop/default/css/app.css +++ b/public/build/beike/shop/default/css/app.css @@ -546,3 +546,61 @@ body.page-checkout .total-wrap .totals > li > span:first-of-type { body.page-checkout .total-wrap .totals > li > span:last-of-type { color: #dc3545; } +body.page-checkout .addresses-wrap { + margin-bottom: 2rem; +} +body.page-checkout .addresses-wrap .item { + position: relative; + padding: 20px 20px 30px; + margin-bottom: 10px; + border: 1px solid #e8e8e8; + height: 155px; + cursor: pointer; +} +body.page-checkout .addresses-wrap .item.add-addres { + display: flex; + align-items: center; + justify-content: center; + flex-direction: column; + font-size: 1rem; + color: #666; +} +body.page-checkout .addresses-wrap .item.add-addres i { + font-size: 2rem; +} +body.page-checkout .addresses-wrap .item:hover { + border-color: #222; +} +body.page-checkout .addresses-wrap .item.active { + border-left: none; +} +body.page-checkout .addresses-wrap .item.active:before { + content: ""; + position: absolute; + top: -1px; + left: 0; + width: 4px; + height: calc(100% + 2px); + background-color: #4991F4; + background: repeating-linear-gradient(-45deg, #d60404 0, #d60404 10px, #fff 10px, #fff 20px, #4991F4 20px, #4991F4 30px, #fff 30px, #fff 40px); +} +body.page-checkout .addresses-wrap .item .name-wrap { + margin-bottom: 0.5rem; +} +body.page-checkout .addresses-wrap .item .name-wrap .name { + font-size: 1rem; + font-weight: bold; +} +body.page-checkout .addresses-wrap .item .name-wrap .phone { + font-size: 0.8rem; + color: #666; +} +body.page-checkout .addresses-wrap .item .zipcode { + margin-bottom: 0.5rem; +} +body.page-checkout .addresses-wrap .item .address-info { + margin-bottom: 0.5rem; +} +body.page-checkout .addresses-wrap .item .address-bottom a { + color: #2d68a8; +} diff --git a/public/build/beike/shop/default/css/bootstrap.css b/public/build/beike/shop/default/css/bootstrap.css index 5f058900..a86debce 100644 --- a/public/build/beike/shop/default/css/bootstrap.css +++ b/public/build/beike/shop/default/css/bootstrap.css @@ -18032,3 +18032,7 @@ textarea.form-control-lg { margin-right: 1rem; opacity: 0.1; } + +.table > :not(:first-child) { + border-top: none; +} diff --git a/resources/beike/admin/views/pages/customers/form.blade.php b/resources/beike/admin/views/pages/customers/form.blade.php index 8cdc7537..6c6262fa 100644 --- a/resources/beike/admin/views/pages/customers/form.blade.php +++ b/resources/beike/admin/views/pages/customers/form.blade.php @@ -56,15 +56,13 @@ - {{-- - --}} + 当前账号无地址 新增地址 - {{-- - --}} + diff --git a/resources/beike/shop/default/css/page-checkout.scss b/resources/beike/shop/default/css/page-checkout.scss index e71cf8d2..74d4add7 100644 --- a/resources/beike/shop/default/css/page-checkout.scss +++ b/resources/beike/shop/default/css/page-checkout.scss @@ -93,4 +93,78 @@ body.page-checkout { } } } + + .addresses-wrap { + margin-bottom: 2rem; + + .item { + position: relative; + padding: 20px 20px 30px; + margin-bottom: 10px; + border: 1px solid #e8e8e8; + height: 155px; + cursor: pointer; + + &.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; + } + // flex-wrap: wrap; + } + + &:hover { + border-color: #222; + } + + &.active { + border-left: none; + + &:before { + content: ''; + position: absolute; + top: -1px; + left: 0; + width: 4px; + height: calc(100% + 2px); + background-color: #4991F4; + background: repeating-linear-gradient(-45deg, #d60404 0, #d60404 10px, #fff 10px, #fff 20px, #4991F4 20px, #4991F4 30px, #fff 30px, #fff 40px); + } + } + + .name-wrap { + margin-bottom: .5rem; + + .name { + font-size: 1rem; + font-weight: bold; + } + + .phone { + font-size: .8rem; + color: #666; + } + } + + .zipcode { + margin-bottom: .5rem; + } + + .address-info { + margin-bottom: .5rem; + } + + .address-bottom { + a { + color: #2d68a8; + } + } + } + } } \ No newline at end of file diff --git a/themes/default/checkout.blade.php b/themes/default/checkout.blade.php index cecbe32f..c3ccdc32 100644 --- a/themes/default/checkout.blade.php +++ b/themes/default/checkout.blade.php @@ -85,7 +85,7 @@ --}} - +{{--
@@ -96,8 +96,8 @@ - - + + @@ -106,17 +106,36 @@ {{-- - --}} + {{-- - --}} + -
#操作
@{{ index }} @{{ address.name }} @{{ address.phone }} -
当前账号无地址 新增地址 -
+ --}} + +
+
+
+
+
+ @{{ address.name }} + @{{ address.phone }} +
+
@{{ address.zipcode }}
+
@{{ address.country_id }} @{{ address.zone_id }}
+
+ 编辑 +
+
+
+
+
添加新地址
+
+
+

支付方式

@@ -181,10 +200,11 @@ data: { form: { + shipping_address_id: 7, }, source: { - address: [] + addresses: @json($addresses ?? []), }, dialogAddress: {