feat: add basic order-list
This commit is contained in:
parent
da41ed3651
commit
b446629707
5 changed files with 30 additions and 1 deletions
3
static/components/order-list/order-list.html
Normal file
3
static/components/order-list/order-list.html
Normal file
|
|
@ -0,0 +1,3 @@
|
|||
<div>
|
||||
xx1
|
||||
</div>
|
||||
18
static/components/order-list/order-list.js
Normal file
18
static/components/order-list/order-list.js
Normal file
|
|
@ -0,0 +1,18 @@
|
|||
async function orderList(path) {
|
||||
const template = await loadTemplateAsync(path)
|
||||
Vue.component('order-list', {
|
||||
name: 'order-list',
|
||||
props: ['adminkey', 'inkey'],
|
||||
template,
|
||||
|
||||
data: function () {
|
||||
return {
|
||||
}
|
||||
},
|
||||
methods: {
|
||||
},
|
||||
created: async function () {
|
||||
}
|
||||
})
|
||||
}
|
||||
|
||||
|
|
@ -185,7 +185,13 @@
|
|||
</div>
|
||||
</q-tab-panel>
|
||||
<q-tab-panel name="orders">
|
||||
<div v-if="stall"></div>
|
||||
<div v-if="stall">
|
||||
<order-list
|
||||
:adminkey="adminkey"
|
||||
:inkey="inkey"
|
||||
:wallet-options="walletOptions"
|
||||
></order-list>
|
||||
</div>
|
||||
</q-tab-panel>
|
||||
</q-tab-panels>
|
||||
<q-dialog v-model="productDialog.showDialog" position="top">
|
||||
|
|
|
|||
|
|
@ -5,6 +5,7 @@ const merchant = async () => {
|
|||
await shippingZones('static/components/shipping-zones/shipping-zones.html')
|
||||
await stallDetails('static/components/stall-details/stall-details.html')
|
||||
await stallList('static/components/stall-list/stall-list.html')
|
||||
await orderList('static/components/order-list/order-list.html')
|
||||
|
||||
const nostr = window.NostrTools
|
||||
|
||||
|
|
|
|||
|
|
@ -150,6 +150,7 @@
|
|||
<script src="{{ url_for('nostrmarket_static', path='components/shipping-zones/shipping-zones.js') }}"></script>
|
||||
<script src="{{ url_for('nostrmarket_static', path='components/stall-details/stall-details.js') }}"></script>
|
||||
<script src="{{ url_for('nostrmarket_static', path='components/stall-list/stall-list.js') }}"></script>
|
||||
<script src="{{ url_for('nostrmarket_static', path='components/order-list/order-list.js') }}"></script>
|
||||
<script src="{{ url_for('nostrmarket_static', path='js/index.js') }}"></script>
|
||||
|
||||
{% endblock %}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue