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
bef5f117
Commit
bef5f117
authored
Oct 09, 2022
by
王东红
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
结算页面优化按钮位置
parent
f1cd3619
Show whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
95 additions
and
0 deletions
+95
-0
app/code/JTool/PlaceOrder/etc/module.xml
+6
-0
app/code/JTool/PlaceOrder/registration.php
+6
-0
app/code/JTool/PlaceOrder/view/frontend/layout/checkout_index_index.xml
+31
-0
app/code/JTool/PlaceOrder/view/frontend/web/css/place_order_button.css
+4
-0
app/code/JTool/PlaceOrder/view/frontend/web/js/view/summary.js
+34
-0
app/code/JTool/PlaceOrder/view/frontend/web/template/summary.html
+14
-0
No files found.
app/code/JTool/PlaceOrder/etc/module.xml
0 → 100644
View file @
bef5f117
<?xml version="1.0"?>
<config
xmlns:xsi=
"http://www.w3.org/2001/XMLSchema-instance"
xsi:noNamespaceSchemaLocation=
"urn:magento:framework:Module/etc/module.xsd"
>
<module
name=
"JTool_PlaceOrder"
setup_version=
"1.0.0"
/>
</config>
\ No newline at end of file
app/code/JTool/PlaceOrder/registration.php
0 → 100644
View file @
bef5f117
<?php
\Magento\Framework\Component\ComponentRegistrar
::
register
(
\Magento\Framework\Component\ComponentRegistrar
::
MODULE
,
'JTool_PlaceOrder'
,
__DIR__
);
\ No newline at end of file
app/code/JTool/PlaceOrder/view/frontend/layout/checkout_index_index.xml
0 → 100644
View file @
bef5f117
<?xml version="1.0"?>
<page
xmlns:xsi=
"http://www.w3.org/2001/XMLSchema-instance"
layout=
"checkout"
xsi:noNamespaceSchemaLocation=
"urn:magento:framework:View/Layout/etc/page_configuration.xsd"
>
<head>
<css
src=
"JTool_PlaceOrder::css/place_order_button.css"
/>
</head>
<body>
<referenceBlock
name=
"checkout.root"
>
<arguments>
<argument
name=
"jsLayout"
xsi:type=
"array"
>
<item
name=
"components"
xsi:type=
"array"
>
<item
name=
"checkout"
xsi:type=
"array"
>
<item
name=
"children"
xsi:type=
"array"
>
<item
name=
"sidebar"
xsi:type=
"array"
>
<item
name=
"children"
xsi:type=
"array"
>
<item
name=
"summary"
xsi:type=
"array"
>
<item
name=
"component"
xsi:type=
"string"
>
JTool_PlaceOrder/js/view/summary
</item>
<item
name=
"config"
xsi:type=
"array"
>
<item
name=
"template"
xsi:type=
"string"
>
JTool_PlaceOrder/summary
</item>
</item>
</item>
</item>
</item>
</item>
</item>
</item>
</argument>
</arguments>
</referenceBlock>
</body>
</page>
\ No newline at end of file
app/code/JTool/PlaceOrder/view/frontend/web/css/place_order_button.css
0 → 100644
View file @
bef5f117
.payment-method-content
.actions-toolbar
{
display
:
none
;
}
\ No newline at end of file
app/code/JTool/PlaceOrder/view/frontend/web/js/view/summary.js
0 → 100644
View file @
bef5f117
define
(
[
'jquery'
,
'ko'
,
'Magento_Checkout/js/view/summary'
,
'Magento_Checkout/js/model/step-navigator'
,
],
function
(
$
,
ko
,
Component
,
stepNavigator
)
{
'use strict'
;
return
Component
.
extend
({
isVisible
:
function
()
{
return
stepNavigator
.
isProcessed
(
'shipping'
);
},
initialize
:
function
()
{
$
(
function
()
{
$
(
'body'
).
on
(
"click"
,
'#place-order-trigger'
,
function
()
{
$
(
".payment-method._active"
).
find
(
'.action.primary.checkout'
).
trigger
(
'click'
);
});
});
var
self
=
this
;
this
.
_super
();
}
});
}
);
\ No newline at end of file
app/code/JTool/PlaceOrder/view/frontend/web/template/summary.html
0 → 100644
View file @
bef5f117
<div
class=
"opc-block-summary"
data-bind=
"blockLoader: isLoading"
>
<span
data-bind=
"i18n: 'Order Summary'"
class=
"title"
></span>
<!-- ko foreach: elems() -->
<!-- ko template: getTemplate() --><!-- /ko -->
<!-- /ko -->
</div>
<!-- ko if: (isVisible()) -->
<div
class=
"actions-toolbar-trigger"
id=
"place-order-trigger-wrapper"
>
<button
type=
"button"
class=
"button action primary"
id=
"place-order-trigger"
value=
"Place Order"
>
<span>
Place Order
</span>
</button>
</div>
<!-- /ko -->
\ 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