Commit 09c68410 by 王东红

优化购物地址界面

parent c6f81a4e
<?php
/**
* Copyright © Magento, Inc. All rights reserved.
* See COPYING.txt for license details.
*/
/** @var \Magento\Customer\Block\Address\Book $block */
?>
<style type="text/css">
.account .main .block .block-title{
background:none;
color: #666666;
font-size: 18px;
font-weight: 300;
text-transform: uppercase;
}
.account .column.main .block:not(.widget) .box-title > span{
font-weight: 700;
line-height: 1.1;
font-size: 1.4rem;
margin-top: 2rem;
margin-bottom: 2rem;
color: #666666;
}
address{font-style: normal;color: #666666;font-size: 14px;}
label button, table .id a, table .actions a, a[href^="tel:"], a[href^="mailto:"], a.alert, address a, .block .block-title a, .actions-toolbar a, .box-actions a, .product-item-details dl a, .map-show-info, .minimal-price-link, .prices-tier a, .block.related .action.select, .samples a, .reviews-actions a, .search-suggestions a, .cart.table .action-gift, .checkout-onepage-success .column.main a, .paypal-review .discount .title, .paypal-review .paypal-review-title a{
color: #666666;
}
.block-content a.action.edit:hover{color: #333333}
.action.primary{
vertical-align: middle;
-webkit-transform: perspective(1px) translateZ(0);
transform: perspective(1px) translateZ(0);
box-shadow: 0 0 1px rgb(0 0 0 / 0%);
border-radius: 0px;
background-color: #222222;
box-shadow: none;
color: #ffffff;
display: inline-block;
font-family: 'Outfit', sans-serif;
font-weight: normal;
padding: 18px 50px;
line-height: 1;
text-shadow: none;
text-transform: capitalize;
white-space: nowrap;
font-size: 13px;
border-radius: 2px;
border: 2px solid #222222;
background-image: none;
text-align: center;
border: none;
text-transform: uppercase;
font-weight: normal !important;
transition: all 0.4s ease;
-webkit-transition: all 0.4s ease;
}
@media(min-width: 768px){
.block .box{
max-width: none;
}
.table-additional-addresses-items.history{
color: #666666;
}
}
</style>
<div class="block block-addresses-default">
<div class="block-title"><strong><?= $block->escapeHtml(__('Default Addresses')) ?></strong></div>
<div class="block-content">
<?php if ($_pAddsses = $block->getDefaultBilling()) : ?>
<div class="box box-address-billing">
<strong class="box-title">
<span><?= $block->escapeHtml(__('Default Billing Address')) ?></span>
</strong>
<div class="box-content">
<address>
<?= $block->getAddressHtml($block->getAddressById($_pAddsses)) ?>
</address>
</div>
<div class="box-actions">
<a class="action edit" href="<?= $block->escapeUrl($block->getAddressEditUrl($_pAddsses)) ?>">
<span><?= $block->escapeHtml(__('Change Billing Address')) ?></span>
</a>
</div>
</div>
<?php else : ?>
<div class="box box-billing-address">
<strong class="box-title"><span><?= $block->escapeHtml(__('Default Billing Address')) ?></span></strong>
<div class="box-content">
<p><?= $block->escapeHtml(__('You have no default billing address in your address book.')) ?></p>
</div>
</div>
<?php endif ?>
<?php if ($_pAddsses = $block->getDefaultShipping()) : ?>
<div class="box box-address-shipping">
<strong class="box-title">
<span><?= $block->escapeHtml(__('Default Shipping Address')) ?></span>
</strong>
<div class="box-content">
<address>
<?= $block->getAddressHtml($block->getAddressById($_pAddsses)) ?>
</address>
</div>
<div class="box-actions">
<a class="action edit" href="<?= $block->escapeUrl($block->getAddressEditUrl($_pAddsses)) ?>">
<span><?= $block->escapeHtml(__('Change Shipping Address')) ?></span>
</a>
</div>
</div>
<?php else : ?>
<div class="box box-shipping-address">
<strong class="box-title"><span><?= $block->escapeHtml(__('Default Shipping Address')) ?></span></strong>
<div class="box-content">
<p><?= $block->escapeHtml(__('You have no default shipping address in your address book.')) ?></p>
</div>
</div>
<?php endif ?>
</div>
</div>
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment