ltsecurityinc安防产品在线商城代码
This commit is contained in:
@@ -0,0 +1,41 @@
|
||||
<?xml version="1.0" ?>
|
||||
<page xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" layout="1column" xsi:noNamespaceSchemaLocation="urn:magento:framework:View/Layout/etc/page_configuration.xsd">
|
||||
<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="steps" xsi:type="array">
|
||||
<item name="children" xsi:type="array">
|
||||
<item name="billing-step" xsi:type="array">
|
||||
<item name="children" xsi:type="array">
|
||||
<item name="payment" xsi:type="array">
|
||||
<item name="children" xsi:type="array">
|
||||
<item name="renders" xsi:type="array">
|
||||
<item name="children" xsi:type="array">
|
||||
<item name="netterm" xsi:type="array">
|
||||
<item name="component" xsi:type="string">Lts_Netterm/js/view/payment/netterm</item>
|
||||
<item name="methods" xsi:type="array">
|
||||
<item name="netterm" xsi:type="array">
|
||||
<item name="isBillingAddressRequired" xsi:type="boolean">true</item>
|
||||
</item>
|
||||
</item>
|
||||
</item>
|
||||
</item>
|
||||
</item>
|
||||
</item>
|
||||
</item>
|
||||
</item>
|
||||
</item>
|
||||
</item>
|
||||
</item>
|
||||
</item>
|
||||
</item>
|
||||
</item>
|
||||
</argument>
|
||||
</arguments>
|
||||
</referenceBlock>
|
||||
</body>
|
||||
</page>
|
||||
+20
@@ -0,0 +1,20 @@
|
||||
/* @api */
|
||||
define(
|
||||
[
|
||||
'Magento_Checkout/js/view/payment/default'
|
||||
],
|
||||
function (Component) {
|
||||
'use strict';
|
||||
return Component.extend({
|
||||
defaults: {
|
||||
template: 'Lts_Netterm/payment/netterm'
|
||||
},
|
||||
getMailingAddress: function () {
|
||||
return window.checkoutConfig.payment.checkmo.mailingAddress;
|
||||
},
|
||||
getInstructions: function () {
|
||||
return window.checkoutConfig.payment.instructions[this.item.method];
|
||||
},
|
||||
});
|
||||
}
|
||||
);
|
||||
@@ -0,0 +1,19 @@
|
||||
define(
|
||||
[
|
||||
'uiComponent',
|
||||
'Magento_Checkout/js/model/payment/renderer-list'
|
||||
],
|
||||
function (
|
||||
Component,
|
||||
rendererList
|
||||
) {
|
||||
'use strict';
|
||||
rendererList.push(
|
||||
{
|
||||
type: 'netterm',
|
||||
component: 'Lts_Netterm/js/view/payment/method-renderer/netterm-method'
|
||||
}
|
||||
);
|
||||
return Component.extend({});
|
||||
}
|
||||
);
|
||||
@@ -0,0 +1,47 @@
|
||||
<!--
|
||||
/**
|
||||
* Copyright © 2013-2017 Magento, Inc. All rights reserved.
|
||||
* See COPYING.txt for license details.
|
||||
*/
|
||||
-->
|
||||
<div class="payment-method" data-bind="css: {'_active': (getCode() == isChecked())}">
|
||||
<div class="payment-method-title field choice">
|
||||
<input type="radio"
|
||||
name="payment[method]"
|
||||
class="radio"
|
||||
data-bind="attr: {'id': getCode()}, value: getCode(), checked: isChecked, click: selectPaymentMethod, visible: isRadioButtonVisible()"/>
|
||||
<label data-bind="attr: {'for': getCode()}" class="label"><span data-bind="text: getTitle()"></span></label>
|
||||
</div>
|
||||
<div class="payment-method-content">
|
||||
<!-- ko foreach: getRegion('messages') -->
|
||||
<!-- ko template: getTemplate() --><!-- /ko -->
|
||||
<!--/ko-->
|
||||
<div class="payment-method-billing-address">
|
||||
<!-- ko foreach: $parent.getRegion(getBillingAddressFormName()) -->
|
||||
<!-- ko template: getTemplate() --><!-- /ko -->
|
||||
<!--/ko-->
|
||||
</div>
|
||||
<p data-bind="html: getInstructions()"></p>
|
||||
<div class="checkout-agreements-block">
|
||||
<!-- ko foreach: $parent.getRegion('before-place-order') -->
|
||||
<!-- ko template: getTemplate() --><!-- /ko -->
|
||||
<!--/ko-->
|
||||
</div>
|
||||
<div class="actions-toolbar">
|
||||
<div class="primary">
|
||||
<button class="action primary checkout"
|
||||
type="submit"
|
||||
data-bind="
|
||||
click: placeOrder,
|
||||
attr: {title: $t('Place Order')},
|
||||
css: {disabled: !isPlaceOrderActionAllowed()},
|
||||
enable: (getCode() == isChecked())
|
||||
"
|
||||
disabled>
|
||||
<span data-bind="i18n: 'Place Order'"></span>
|
||||
</button>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
Reference in New Issue
Block a user