spz-checkout
Handle checkout button logic. If the user clicks this button, it will go to the checkout page.
布局
Layouts
跳转到“Layouts”Usage
跳转到“Usage”Specifies a checkout button with the role="checkout"
attribute. It will have a loading
attribute when the user clicks it. It is required.
<spz-checkout cart="#cart-items" layout="container" has-loading>
<button
role="checkout"
type="button"
data-track="click"
data-track-source="checkout"
data-track-content="checkout"
>
<span role="content">Checkout</span>
<div role="loading"><!-- ... --></div>
</button>
</spz-checkout>
Attributes
跳转到“Attributes”Property | Description | Type | Default | Required | |
---|---|---|---|---|---|
cart | A id of the spz-cart element |
string | - | Yes | |
note-id | A id of the note element | string | - | No |