Commit 2e7c4488 by 王东红

优化用户中心界面布局

parent d91291c0
......@@ -27,79 +27,6 @@ $viewModel = $block->getViewModel();
<?php $_streetValidationClass = $viewModel->addressGetAttributeValidationClass('street'); ?>
<?php $_streetValidationClassNotRequired = trim(str_replace('required-entry', '', $_streetValidationClass)); ?>
<?php $_regionValidationClass = $viewModel->addressGetAttributeValidationClass('region'); ?>
<style type="text/css">
@media(min-width: 768px){
.form-edit-account>.fieldset, .form-address-edit>.fieldset{
float:none;
width: 100%;
max-width: none;
}
}
.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;
}
input:not([type]), input[type="text"], input[type="password"], input[type="date"], input[type="datetime"], input[type="datetime-local"], input[type="month"], input[type="week"], input[type="email"], input[type="number"], input[type="search"], input[type="tel"], input[type="time"], input[type="url"], input[type="color"], textarea {
border: 1px solid #e1e1e1;
height: 50px;
padding: 5px;
border-radius: 3px;
box-shadow: none;
}
select {
background: #ffffff;
background-clip: padding-box;
border: 1px solid #c2c2c2;
border-radius: 1px;
font-family: 'Open Sans', 'Helvetica Neue', Helvetica, Arial, sans-serif;
font-size: 14px;
height: 32px;
line-height: 1.42857143;
padding: 5px 10px 4px;
vertical-align: baseline;
width: 100%;
box-sizing: border-box;
}
.fieldset > .field:not(.choice) > .label{
color: #666666;
font-size: 14px;
}
.account .fieldset .legend{
font-size: 18px;
border: none;
}
input{
box-shadow: inset 0 -2px #e7e7e7;
}
.field.choice>[type="radio"], .field.choice>[type="checkbox"] {
margin-top: 4px;
}
</style>
<form class="form-address-edit"
action="<?= $escaper->escapeUrl($block->getSaveUrl()) ?>"
method="post"
......
<?php
/**
* Copyright © Magento, Inc. All rights reserved.
* See COPYING.txt for license details.
*/
/**
* @var \Magento\Review\Block\Customer\ListCustomer $block
* @var \Magento\Framework\Escaper $escaper
* @var \Magento\Framework\View\Helper\SecureHtmlRenderer $secureRenderer
*/
/** @var \Magento\Review\Helper\Data $reviewHelper */
$reviewHelper = $block->getData('reviewHelper');
?>
<style type="text/css">
table .id a:last-child, table .actions a:last-child{color: #666666;}
</style>
<?php if ($block->getReviews() && count($block->getReviews())): ?>
<div class="table-wrapper reviews">
<table class="data table table-reviews" id="my-reviews-table">
<caption class="table-caption"><?= $escaper->escapeHtml(__('Product Reviews')) ?></caption>
<thead>
<tr>
<th scope="col" class="col date"><?= $escaper->escapeHtml(__('Created')) ?></th>
<th scope="col" class="col item"><?= $escaper->escapeHtml(__('Product Name')) ?></th>
<th scope="col" class="col summary"><?= $escaper->escapeHtml(__('Rating')) ?></th>
<th scope="col" class="col description"><?= $escaper->escapeHtml(__('Review')) ?></th>
<th scope="col" class="col actions">&nbsp;</th>
</tr>
</thead>
<tbody>
<?php foreach ($block->getReviews() as $review): ?>
<tr>
<td data-th="<?= $escaper->escapeHtml(__('Created')) ?>"
class="col date"><?= $escaper->escapeHtml($block->dateFormat($review->getReviewCreatedAt())) ?>
</td>
<td data-th="<?= $escaper->escapeHtml(__('Product Name')) ?>" class="col item">
<strong class="product-name">
<a href="<?= $escaper->escapeUrl($block->getProductUrl($review)) ?>">
<?= $escaper->escapeHtml($review->getName()) ?>
</a>
</strong>
</td>
<td data-th="<?= $escaper->escapeHtml(__('Rating')) ?>" class="col summary">
<?php if ($review->getSum()): ?>
<div class="rating-summary">
<span class="label"><span><?= $escaper->escapeHtml(__('Rating')) ?>:</span></span>
<div class="rating-result"
title="<?= /* @noEscape */ ((int)$review->getSum() / (int)$review->getCount()) ?>%">
<span class="rating_<?= $escaper->escapeUrl($review->getReviewId())?>">
<span>
<?= /* @noEscape */ ((int)$review->getSum() / (int)$review->getCount()) ?>%
</span>
</span>
</div>
</div>
<?= /* @noEscape */ $secureRenderer->renderStyleAsTag(
"width:" . /* @noEscape */ ((int)$review->getSum() / (int)$review->getCount()) . "%;",
'div.rating-summary div.rating-result>span.rating_' . $escaper->escapeUrl($review->getReviewId())
) ?>
<?php endif; ?>
</td>
<td data-th="<?= $escaper->escapeHtmlAttr(__('Review')) ?>" class="col description">
<?= $reviewHelper->getDetailHtml($review->getDetail()) ?>
</td>
<td data-th="<?= $escaper->escapeHtmlAttr(__('Actions')) ?>" class="col actions">
<a href="<?= $escaper->escapeUrl($block->getReviewUrl($review)) ?>" class="action more">
<span><?= $escaper->escapeHtml(__('See Details')) ?></span>
</a>
</td>
</tr>
<?php endforeach; ?>
</tbody>
</table>
</div>
<?php if ($block->getToolbarHtml()): ?>
<div class="toolbar products-reviews-toolbar bottom">
<?= $block->getToolbarHtml() ?>
</div>
<?php endif; ?>
<?php else: ?>
<div class="message info empty"><span><?= $escaper->escapeHtml(__('You have submitted no reviews.')) ?></span></div>
<?php endif; ?>
<div class="actions-toolbar">
<div class="secondary">
<a class="action back" href="<?= $escaper->escapeUrl($block->getBackUrl()) ?>">
<span><?= $escaper->escapeHtml(__('Back')) ?></span>
</a>
</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