spz-order-detail
Handle data of the order on the page of the order detail.
布局
Layouts
跳转到“Layouts”Usage
跳转到“Usage”In the following example, it consists of two parts:
role="order"
: This part is related to the order detail.role="fulfill"
: This part is related to logistics information.
<spz-order-detail layout="container" order-id="712691206723623785" locale="order-locale-json">
<spz-render manual layout="container" role="order">
<template>
<!-- ... -->
</template>
</spz-render>
<spz-render manual layout="container" role="fulfill">
<template>
<div>
<!-- ... -->
</div>
</template>
</spz-render>
<spz-render manual layout="container" role="order">
<template>
<!-- ... -->
</template>
</spz-render>
</spz-order-detail>
Attributes
跳转到“Attributes”order-id
跳转到“order-id”Specifies the current order id. For example 712691206723623785
.
locale
跳转到“locale”Specify the multiple languages required for the order. It contains the following data:
<script id="order-locale-json" type="application/json">
{
"order_status": {
// ...
},
"order_modal": {
// ...
},
"statusLangs": {
// ...
},
"summaryLangs": {
// ...
}
}
</script>