Commit 9e71887d by liumengfei

Merge branch 'developer' into production

parents 5c845a5c 911917cb
......@@ -238,6 +238,12 @@ define([
is_mobile: function(){
return window.matchMedia("(pointer:coarse)").matches;
},
flatrate_price: function(){
return window.checkoutConfig.flatrate_price;
},
free_price: function(){
return window.checkoutConfig.free_price;
},
full_free_ship: function(){
return window.checkoutConfig.full_free_ship;
},
......
......@@ -34,12 +34,25 @@
</span>
<!-- /ko -->
<span class="col col-method"
<span class="col col-method col-style"
attr="'id': 'label_method_' + method.method_code + '_' + method.carrier_code"
text="method.method_title"></span>
<span class="col col-carrier"
<span class="col col-carrier col-style"
attr="'id': 'label_carrier_' + method.method_code + '_' + method.carrier_code"
text="method.carrier_title"></span>
<!-- ko if: (method.amount) -->
<span class="col col-amount"
attr="'id': 'label_carrier_fee_' + method.method_code + '_' + method.carrier_code"
text="$parent.flatrate_price()"></span>
<!-- /ko -->
<!-- ko ifnot: (method.amount) -->
<span class="col col-amount col-free-amount"
attr="'id': 'label_carrier_fee_' + method.method_code + '_' + method.carrier_code"
text="$parent.free_price()"></span>
<span class="col col-amount col-elide-amount"
attr="'id': 'label_carrier_fee_' + method.method_code + '_' + method.carrier_code"
text="$parent.flatrate_price()"></span>
<!-- /ko -->
</div>
<!-- ko if: (method.amount) -->
<div class="method-msg">
......@@ -99,12 +112,25 @@
</span>
<!-- /ko -->
<span class="col col-method"
<span class="col col-method col-style"
attr="'id': 'label_method_' + method.method_code + '_' + method.carrier_code"
text="method.method_title"></span>
<span class="col col-carrier"
<span class="col col-carrier col-style"
attr="'id': 'label_carrier_' + method.method_code + '_' + method.carrier_code"
text="method.carrier_title"></span>
<!-- ko if: (method.amount) -->
<span class="col col-amount"
attr="'id': 'label_carrier_fee_' + method.method_code + '_' + method.carrier_code"
text="$parent.flatrate_price()"></span>
<!-- /ko -->
<!-- ko ifnot: (method.amount) -->
<span class="col col-amount col-free-amount"
attr="'id': 'label_carrier_fee_' + method.method_code + '_' + method.carrier_code"
text="$parent.free_price()"></span>
<span class="col col-amount col-elide-amount"
attr="'id': 'label_carrier_fee_' + method.method_code + '_' + method.carrier_code"
text="$parent.flatrate_price()"></span>
<!-- /ko -->
</div>
<!-- ko if: (method.amount) -->
<div class="method-msg">
......@@ -123,7 +149,7 @@
10-15 Working Days</span>
</span>
</span>
</div>
<!-- /ko -->
</div>
......
......@@ -177,7 +177,7 @@
$('.swatch-opt').on('swatch.initialized',function(){ $('.swatch-attribute.size .swatch-attribute-selected-option').after($('.sizechart.action')); })
if($('.swatch-attribute.size .swatch-attribute-selected-option').length > 0){
$('.swatch-attribute.size .swatch-attribute-selected-option').after($('.sizechart.action'));
$('.swatch-attribute.size .swatch-attribute-selected-option').after(" : " + $('.sizechart.action'));
}else{
$('.product-options-wrapper').after($('.sizechart.action'));
}
......
......@@ -166,7 +166,7 @@
</div>
<style>
.joshine-desction{
.joshine-desction,.product-view-description{
width:100%;
}
......@@ -196,14 +196,9 @@
.product-view-description{
max-height: 450px;
overflow: auto;
width: 100%;
}
}
span.swatch-attribute-selected-option{
margin-left: 20px;
color: cornflowerblue;
}
</style>
<div class="product-view-description">
......
......@@ -168,16 +168,15 @@
<div id="areaMask" class="mask"></div>
</li>
<style>
#product-intro__freeshipping-more-3{
display: revert;
color: #2d68a;
font-size: large;
float: right;
margin-top: 0px;
text-decoration: underline;
}
@media (min-width: 1024px){
#product-intro__freeshipping-more-3{
display: inline-block;
display: inline-block;
color: #2d68a;
font-size: 12px;
line-height: 1;
float: right;
margin-top: 10px;
}
.action.primary.tocart{
font-size: 18px;
background-color: #000;
......
......@@ -13,6 +13,7 @@ $flatraPrice = $block->getFlatratePrice();
$full_free = $block->getFullFreeShip();
$_helper = $objectManager->get('Magento\Framework\Pricing\Helper\Data');
$full_free_ship = $_helper->currency($full_free, true, false);
$free_price = $_helper->currency(0, true, false);
?>
<style type="text/css">
.payment-method._active{
......@@ -92,6 +93,9 @@ $full_free_ship = $_helper->currency($full_free, true, false);
.opc-block-summary{
padding: 15px;
}
.checkout-index-index .col-elide-amount{
text-decoration:line-through;
}
.action.action-auth-toggle{
background: none;
color: #000;
......@@ -438,6 +442,12 @@ $full_free_ship = $_helper->currency($full_free, true, false);
.checkout-cart-index .opc-estimated-wrapper .minicart-wrapper {
display: none;
}
.checkout-index-index .col-style{
color:#777;
}
.checkout-index-index .col-amount{
margin-left:0.5rem;
}
/****************************************payment end********************************************************/
@media(max-width:768px){
.opc .step-title .number {
......@@ -995,6 +1005,7 @@ $full_free_ship = $_helper->currency($full_free, true, false);
window.checkoutConfig = {$serializedCheckoutConfig};
window.checkoutConfig.flatrate_price = '{$flatraPrice}';
window.checkoutConfig.full_free_ship = '{$full_free_ship}';
window.checkoutConfig.free_price = '{$free_price}';
// Create aliases for customer.js model from customer module
window.isCustomerLoggedIn = window.checkoutConfig.isCustomerLoggedIn;
window.customerData = window.checkoutConfig.customerData;
......@@ -1015,6 +1026,7 @@ script;
</div>
<script>
require(['jquery'], function ($) {
console.log('window.checkoutConfig',window.checkoutConfig)
var isMobile = window.matchMedia("(pointer:coarse)").matches;
if (!isMobile) {
$(window).scroll(function () {
......
......@@ -537,8 +537,15 @@ ul {
font-size: 14px;
}
.product-info-price .price-box {
margin-top: 20px;
margin-bottom: 20px;
}
.product-info-wrapper .price-final_price .price{
font-size: 24px;
font-size: 30px;
font-weight: 700;
font-family: auto;
color: black;
}
.product-info-wrapper{
display: grid;
......@@ -2247,14 +2254,17 @@ button.action.submit.primary {
//选择label样式
.swatch-attribute-label{
margin-right: 0.25rem;
font-size: 16px;
font-weight: 700;
overflow: hidden;
margin-right: 1rem;
font-weight: 500;
text-overflow: ellipsis;
white-space: nowrap;
margin-bottom: revert;
font-size: larger;
}
.swatch-attribute {
margin-bottom: 1.5rem !important;
}
#product-intro__freeshipping-more-3{
......@@ -2268,10 +2278,10 @@ button.action.submit.primary {
//详情页mobile修改
@media (max-width: 1024px){
.product-info-wrapper .page-title span.base {
font-size: 20px;
font-size: 22px;
float: left;
margin-left: -10px;
font-weight: 400;
font-weight: 500;
}
.product-info-wrapper .price-final_price .price {
......@@ -2327,31 +2337,30 @@ button.action.submit.primary {
width: 30px !important;
height: 30px !important;
background-clip: content-box!important;
padding: 1px;
border: 1px solid rgba(23,23,23,0.3);
padding: 3px;
}
.product-info-main .swatch-option.color, .swatch-option.image{
margin-right: 3% !important;
margin-right: 10px !important;
}
.swatch-option.color.selected{
border: 2px solid black!important;
border: 1px solid black!important;
}
.swatch-option.image.selected{
border: 2px solid black!important;
border: 1px solid black!important;
}
.swatch-option.text{
width: auto!important;
padding: calc( 8.5px) calc( 11px);
line-height:10px!important;
min-width: 40px;
min-width: 70px;
text-align: center;
font-size: 15px;
background: none!important;
border:2px solid rgba(23, 23, 23, 0.3);
border:1px solid rgba(23, 23, 23, 0.3);
border-radius: 15px;
margin-right: 10px;
}
......@@ -2372,6 +2381,8 @@ button.action.submit.primary {
display: none;
}
.swatch-attribute-options.clearfix{margin-top: 20px !important;}
@media (max-width: 768px){
.swatch-attribute-selected-option-size-content span.swatch-attribute-selected-option{
margin-left: 0!important;
......@@ -2406,6 +2417,7 @@ button.action.submit.primary {
height: 30px !important;
border-radius: 50% !important;
line-height: 30px;
margin: 1px !important;
}
.swatch-option.text
......@@ -2413,7 +2425,7 @@ button.action.submit.primary {
width: auto !important;
line-height: 10px!important;
height: 30px !important;
min-width: 30px;
min-width: 50px;
}
.swatch-option::before{
......@@ -2542,6 +2554,10 @@ button.action.submit.primary {
display: none;
}
.stock.available {
display: none;
}
//product view right
@media(min-width: 1024px) {
.page-main>.columns>.sidebar-main{
......@@ -2553,12 +2569,11 @@ button.action.submit.primary {
width: 100%;
}
.product-info-wrapper .page-title span.base{
font-size: 20px;
font-weight: 400;
color: #292929;
font-size: 18px;
padding-bottom: 1px;
margin-bottom: 0;
line-height: 0px;
font-weight: 400;
}
......@@ -2955,6 +2970,13 @@ tr.grand.totals {
}
}
.product-info-stock-sku {
display: flex;
align-items: center;
gap: 0.5rem;
border-bottom: 1px solid lightgrey;
font-size: 12px;
}
.swatch-option.selected:before{
box-shadow:none;
......
......@@ -171,8 +171,10 @@ class Format implements \Magento\Framework\Locale\FormatInterface
'pattern' => $currency->getOutputFormat(),
'precision' => $totalPrecision,
'requiredPrecision' => $requiredPrecision,
'decimalSymbol' => $decimalSymbol,
'groupSymbol' => $groupSymbol,
/* 'decimalSymbol' => $decimalSymbol, 框架旧代码,这里有bug
'groupSymbol' => $groupSymbol,*/
'decimalSymbol' => '.',
'groupSymbol' => ',',
'groupLength' => $group,
'integerRequired' => $totalPrecision == 0,
];
......
......@@ -3537,8 +3537,8 @@ For terms of use, see http://www.unicode.org/copyright.html
</dates>
<numbers>
<symbols numberSystem="latn">
<decimal>,</decimal>
<group>.</group>
<decimal>.</decimal>
<group>,</group>
<list>;</list>
<percentSign>%</percentSign>
<plusSign>+</plusSign>
......@@ -3629,10 +3629,10 @@ For terms of use, see http://www.unicode.org/copyright.html
<currencyFormats numberSystem="latn">
<currencyFormatLength>
<currencyFormat type="standard">
<pattern>¤ #,##0.00</pattern>
<pattern>¤#,##0.00</pattern>
</currencyFormat>
<currencyFormat type="accounting">
<pattern>¤ #,##0.00</pattern>
<pattern>¤#,##0.00</pattern>
</currencyFormat>
</currencyFormatLength>
<unitPattern count="one">{0} {1}</unitPattern>
......
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