Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
J
joshine
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Administrator
joshine
Commits
46ff6ca1
Commit
46ff6ca1
authored
Nov 18, 2022
by
lmf
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
优化购物车列表消息
parent
422e2a5f
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
49 additions
and
3 deletions
+49
-3
app/design/frontend/Joshine/breeze/Magento_Checkout/layout/checkout_cart_index.xml
+0
-1
app/design/frontend/Joshine/breeze/Magento_Checkout/layout/checkout_index_index.xml
+0
-1
app/design/frontend/Joshine/breeze/Magento_Checkout/requirejs-config.js
+14
-0
app/design/frontend/Joshine/breeze/Magento_Checkout/templates/success.phtml
+4
-1
app/design/frontend/Joshine/breeze/Magento_Checkout/web/js/view/messages-mixin.js
+31
-0
No files found.
app/design/frontend/Joshine/breeze/Magento_Checkout/layout/checkout_cart_index.xml
View file @
46ff6ca1
...
...
@@ -12,7 +12,6 @@
<referenceBlock
name=
"global_notices"
remove=
"true"
/>
<referenceContainer
name=
"page.bottom.container"
remove=
"true"
/>
<referenceContainer
name=
"footer-container"
remove=
"true"
/>
<referenceContainer
name=
"page.messages"
remove=
"true"
/>
<referenceContainer
name=
"content"
>
<block
class=
"Magento\Theme\Block\Html\Header\Logo"
name=
"logo"
before=
"checkout.cart"
>
...
...
app/design/frontend/Joshine/breeze/Magento_Checkout/layout/checkout_index_index.xml
View file @
46ff6ca1
...
...
@@ -10,7 +10,6 @@
<referenceBlock
name=
"global_notices"
remove=
"true"
/>
<referenceContainer
name=
"page.bottom.container"
remove=
"true"
/>
<referenceContainer
name=
"footer-container"
remove=
"true"
/>
<referenceContainer
name=
"page.messages"
remove=
"true"
/>
<referenceContainer
name=
"content"
>
<block
class=
"Magento\Framework\View\Element\Template"
name=
"checkout.cart.footer"
template=
"Magento_Checkout::footer.phtml"
/>
</referenceContainer>
...
...
app/design/frontend/Joshine/breeze/Magento_Checkout/requirejs-config.js
0 → 100644
View file @
46ff6ca1
/**
* 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
}
}
}
};
app/design/frontend/Joshine/breeze/Magento_Checkout/templates/success.phtml
View file @
46ff6ca1
...
...
@@ -12,7 +12,7 @@
}
.cat-footer
{
width
:
8
0%
!important
;
width
:
10
0%
!important
;
}
.cat-footer-tk
{
margin-left
:
0px
!important
;
...
...
@@ -20,6 +20,9 @@
.opc
.actions-toolbar
{
justify-content
:
center
!important
;
}
#registration
{
margin-bottom
:
200px
;
}
</style>
<div
class=
"checkout-success"
>
<?php
if
(
$block
->
getOrderId
())
:?>
...
...
app/design/frontend/Joshine/breeze/Magento_Checkout/web/js/view/messages-mixin.js
0 → 100644
View file @
46ff6ca1
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
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment