Commit 46ff6ca1 by lmf

优化购物车列表消息

parent 422e2a5f
...@@ -12,7 +12,6 @@ ...@@ -12,7 +12,6 @@
<referenceBlock name="global_notices" remove="true" /> <referenceBlock name="global_notices" remove="true" />
<referenceContainer name="page.bottom.container" remove="true"/> <referenceContainer name="page.bottom.container" remove="true"/>
<referenceContainer name="footer-container" remove="true"/> <referenceContainer name="footer-container" remove="true"/>
<referenceContainer name="page.messages" remove="true"/>
<referenceContainer name="content"> <referenceContainer name="content">
<block class="Magento\Theme\Block\Html\Header\Logo" name="logo" before="checkout.cart"> <block class="Magento\Theme\Block\Html\Header\Logo" name="logo" before="checkout.cart">
......
...@@ -10,7 +10,6 @@ ...@@ -10,7 +10,6 @@
<referenceBlock name="global_notices" remove="true" /> <referenceBlock name="global_notices" remove="true" />
<referenceContainer name="page.bottom.container" remove="true"/> <referenceContainer name="page.bottom.container" remove="true"/>
<referenceContainer name="footer-container" remove="true"/> <referenceContainer name="footer-container" remove="true"/>
<referenceContainer name="page.messages" remove="true"/>
<referenceContainer name="content"> <referenceContainer name="content">
<block class="Magento\Framework\View\Element\Template" name="checkout.cart.footer" template="Magento_Checkout::footer.phtml" /> <block class="Magento\Framework\View\Element\Template" name="checkout.cart.footer" template="Magento_Checkout::footer.phtml" />
</referenceContainer> </referenceContainer>
......
/**
* Copyright © Magento, Inc. All rights reserved.
* See COPYING.txt for license details.
*/
var config = {
config: {
mixins: {
'Magento_Theme/js/view/messages': {
'Magento_Checkout/js/view/messages-mixin': true
}
}
}
};
...@@ -12,7 +12,7 @@ ...@@ -12,7 +12,7 @@
} }
.cat-footer{ .cat-footer{
width: 80% !important; width: 100% !important;
} }
.cat-footer-tk{ .cat-footer-tk{
margin-left: 0px !important; margin-left: 0px !important;
...@@ -20,6 +20,9 @@ ...@@ -20,6 +20,9 @@
.opc .actions-toolbar{ .opc .actions-toolbar{
justify-content: center !important; justify-content: center !important;
} }
#registration{
margin-bottom: 200px;
}
</style> </style>
<div class="checkout-success"> <div class="checkout-success">
<?php if ($block->getOrderId()) :?> <?php if ($block->getOrderId()) :?>
......
define([
'jquery',
'uiComponent',
'Magento_Customer/js/customer-data',
'underscore',
'escaper'
], function (customerData) {
'use strict';
return function (target) {
return target.extend({
/**
* Extends Component object by storage observable messages.
*/
initialize: function () {
this._super();
function hideMessage(){
require(['jquery', 'jquery/jquery-storageapi'], function($) {
$.cookieStorage.set('mage-messages', '');
});
}
setTimeout(hideMessage,5000);
jQuery('.messages').delay(5000).fadeOut('slow');
}
});
}
});
\ No newline at end of file
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