diff --git a/static/components/customer-orders/customer-orders.html b/static/components/customer-orders/customer-orders.html index fa3c475..18642f8 100644 --- a/static/components/customer-orders/customer-orders.html +++ b/static/components/customer-orders/customer-orders.html @@ -1 +1,68 @@ -
xxxx
\ No newline at end of file +
+ + + No products in cart! + + +
+ + + + + + + + + + + + + + + Todo: stall name + + + + By + + + + + + + + + + + + + + + + + + products + +
+

xxxx

+
+
+
+ + +
+ +
+
+ +
+ +
+
+
+ +
+ +
+ +
\ No newline at end of file diff --git a/static/components/customer-orders/customer-orders.js b/static/components/customer-orders/customer-orders.js index ba8ecd2..2951a43 100644 --- a/static/components/customer-orders/customer-orders.js +++ b/static/components/customer-orders/customer-orders.js @@ -2,7 +2,7 @@ async function customerOrders(path) { const template = await loadTemplateAsync(path) Vue.component('customer-orders', { - name: 'customer-orders', + name: 'orders', template, props: ['orders'], @@ -13,6 +13,8 @@ async function customerOrders(path) { methods: { }, - created() { } + created() { + console.log('### orders', this.orders) + } }) } diff --git a/static/js/market.js b/static/js/market.js index 0100a28..c88fe4a 100644 --- a/static/js/market.js +++ b/static/js/market.js @@ -102,6 +102,15 @@ const market = async () => { } }, computed: { + allOrders() { + const prefix = 'nostrmarket.orders.' + const orderKeys = this.$q.localStorage.getAllKeys().filter(k => k.startsWith(prefix)) + + return orderKeys.map((key) => ({ + pubkey: key.substring(prefix.length), + orders: this.$q.localStorage.getItem(key) + }), {}) + }, filterProducts() { let products = this.products console.log('### this.products', this.products) diff --git a/templates/nostrmarket/market.html b/templates/nostrmarket/market.html index c608f7e..9d37351 100644 --- a/templates/nostrmarket/market.html +++ b/templates/nostrmarket/market.html @@ -218,7 +218,7 @@ - +