feat: add basic customer orders
This commit is contained in:
parent
127f4148ea
commit
4817e594c9
4 changed files with 25 additions and 1 deletions
1
static/components/customer-orders/customer-orders.html
Normal file
1
static/components/customer-orders/customer-orders.html
Normal file
|
|
@ -0,0 +1 @@
|
|||
<div>xxxx</div>
|
||||
18
static/components/customer-orders/customer-orders.js
Normal file
18
static/components/customer-orders/customer-orders.js
Normal file
|
|
@ -0,0 +1,18 @@
|
|||
async function customerOrders(path) {
|
||||
const template = await loadTemplateAsync(path)
|
||||
|
||||
Vue.component('customer-orders', {
|
||||
name: 'customer-orders',
|
||||
template,
|
||||
|
||||
props: ['orders'],
|
||||
data: function () {
|
||||
return {}
|
||||
},
|
||||
computed: {},
|
||||
methods: {
|
||||
|
||||
},
|
||||
created() { }
|
||||
})
|
||||
}
|
||||
|
|
@ -32,6 +32,7 @@ const market = async () => {
|
|||
shoppingCart('static/components/shopping-cart/shopping-cart.html'),
|
||||
shoppingCartList('static/components/shopping-cart-list/shopping-cart-list.html'),
|
||||
shoppingCartCheckout('static/components/shopping-cart-checkout/shopping-cart-checkout.html'),
|
||||
customerOrders('static/components/customer-orders/customer-orders.html'),
|
||||
chatDialog('static/components/chat-dialog/chat-dialog.html'),
|
||||
marketConfig('static/components/market-config/market-config.html')
|
||||
])
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue