diff --git a/src/assets/icons/seller/draft.svg b/src/assets/icons/seller/draft.svg new file mode 100644 index 00000000..bbd74401 --- /dev/null +++ b/src/assets/icons/seller/draft.svg @@ -0,0 +1,11 @@ + + + + + + + + + + + diff --git a/src/assets/icons/seller/edit.svg b/src/assets/icons/seller/edit.svg new file mode 100644 index 00000000..f917859d --- /dev/null +++ b/src/assets/icons/seller/edit.svg @@ -0,0 +1,11 @@ + + + + + + + + + + + diff --git a/src/assets/icons/seller/share.svg b/src/assets/icons/seller/share.svg new file mode 100644 index 00000000..c3658257 --- /dev/null +++ b/src/assets/icons/seller/share.svg @@ -0,0 +1,3 @@ + + + diff --git a/src/views/SellerDashboard/MyListings/createSelect/historyList.vue b/src/views/SellerDashboard/MyListings/createSelect/historyList.vue new file mode 100644 index 00000000..ebaae023 --- /dev/null +++ b/src/views/SellerDashboard/MyListings/createSelect/historyList.vue @@ -0,0 +1,227 @@ + + + + + + + + + + + + {{item.name}} + + {{item.sketchNum}} sketchs + {{item.date}} + + + + {{item.type}} + + + + + + + + + \ No newline at end of file diff --git a/src/views/SellerDashboard/MyListings/createSelect/index.vue b/src/views/SellerDashboard/MyListings/createSelect/index.vue index 8b5b1502..c099a534 100644 --- a/src/views/SellerDashboard/MyListings/createSelect/index.vue +++ b/src/views/SellerDashboard/MyListings/createSelect/index.vue @@ -1,13 +1,25 @@ + + + + + + + + Edit + + + + Draft + + + + Publish + + + + + + item name + $1123 + + + + + + + 123 + + + + + + 123 + + + + + + + + + + + \ No newline at end of file diff --git a/src/views/SellerDashboard/MyListings/main/index.vue b/src/views/SellerDashboard/MyListings/main/index.vue index f3e06a88..aa7dc00f 100644 --- a/src/views/SellerDashboard/MyListings/main/index.vue +++ b/src/views/SellerDashboard/MyListings/main/index.vue @@ -2,6 +2,7 @@ import { ref, onMounted, onUnmounted, reactive, toRefs } from "vue"; import sellerHeader from "../../seller-header.vue" import sellerContent from "./content.vue" +import myEvent from "@/tool/myEvents.js" //const props = defineProps({ //}) @@ -9,6 +10,9 @@ import sellerContent from "./content.vue" //]) let data = reactive({ }) +const newListing = ()=>{ + myEvent.emit('newListing') +} onMounted(()=>{ }) onUnmounted(()=>{ @@ -23,7 +27,7 @@ const {} = toRefs(data); tip="Active listings and unpublished inventory." > - + New Listing diff --git a/src/views/SellerDashboard/index.vue b/src/views/SellerDashboard/index.vue index 743b1e59..8e77457a 100644 --- a/src/views/SellerDashboard/index.vue +++ b/src/views/SellerDashboard/index.vue @@ -21,6 +21,7 @@ import { ref, computed } from "vue" import { useRoute, useRouter } from "vue-router" import toolTipBox from "./toolTipBox.vue" + import myEvent from "@/tool/myEvents.js" const route = useRoute() const router = useRouter() const visible = ref(false) @@ -51,6 +52,14 @@ if (path === activePath.value) return router.push(path) } + onMounted(()=>{ + myEvent.add('newListing',()=>{ + visible.value = true + }) + }) + onUnmounted(()=>{ + myEvent.remove('newListing') + })