From 821f35b7c73515972aa3f2f20c78b3c94bf837ac Mon Sep 17 00:00:00 2001 From: "X1627315083@163.com" <1627315083@qq.com> Date: Mon, 27 Apr 2026 09:39:26 +0800 Subject: [PATCH 1/3] fix --- .../SellerDashboard/MyListings/main/index.vue | 17 ++++++++++++++++- 1 file changed, 16 insertions(+), 1 deletion(-) diff --git a/src/views/SellerDashboard/MyListings/main/index.vue b/src/views/SellerDashboard/MyListings/main/index.vue index aa7dc00f..1ba62eac 100644 --- a/src/views/SellerDashboard/MyListings/main/index.vue +++ b/src/views/SellerDashboard/MyListings/main/index.vue @@ -3,17 +3,32 @@ 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" +import Https from "@/tool/https.js" +import { useStore } from "vuex"; + //const props = defineProps({ //}) //const emit = defineEmits([ //]) +const store = useStore() let data = reactive({ + listingPopup: true, }) const newListing = ()=>{ - myEvent.emit('newListing') + myEvent.emit('newListing',) +} +const getListingPopup = ()=>{ + store.commit("set_loading", true) + Https.getListingPopup().then(res=>{ + store.commit("set_loading", false) + data.listingPopup = res.data + }).catch(()=>{ + store.commit("set_loading", false) + }) } onMounted(()=>{ + let listingPopup = sessionStorage.getItem('listingPopup') }) onUnmounted(()=>{ }) From 55a8675806f2795a660deffb11fe3a1faa902349 Mon Sep 17 00:00:00 2001 From: zhangyahui Date: Mon, 27 Apr 2026 09:40:00 +0800 Subject: [PATCH 2/3] =?UTF-8?q?feat:=20sketchDetail=E6=8E=A5=E5=8F=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../MyListings/EditDetail/api.ts | 24 +++++++++++++++++++ .../MyListings/EditDetail/index.vue | 19 +++++++++++---- 2 files changed, 39 insertions(+), 4 deletions(-) create mode 100644 src/views/SellerDashboard/MyListings/EditDetail/api.ts diff --git a/src/views/SellerDashboard/MyListings/EditDetail/api.ts b/src/views/SellerDashboard/MyListings/EditDetail/api.ts new file mode 100644 index 00000000..5771145f --- /dev/null +++ b/src/views/SellerDashboard/MyListings/EditDetail/api.ts @@ -0,0 +1,24 @@ +import { Https } from "@/tool/https" + +interface SketchIDs { + designItemIds: Array +} +export const fetchSketchDetail = (data: SketchIDs) => { + let params = "?" + data.forEach((id, index) => { + if (index === data.length - 1) { + params += `designItemIds=${id}` + } else { + params += `designItemIds=${id}&` + } + }) + return Https.axiosGet(`/api/seller/sketchDetail${params}`) +} + +export const uploadFile = (file) => { + const formData = new FormData() + formData.append("file", file) + return Https.axiosPost("/seller/file/ upload", formData, { + headers: { "Content-Type": "multipart/form-data", Accept: "*/*" } + }) +} diff --git a/src/views/SellerDashboard/MyListings/EditDetail/index.vue b/src/views/SellerDashboard/MyListings/EditDetail/index.vue index d58dd93d..8640e9ae 100644 --- a/src/views/SellerDashboard/MyListings/EditDetail/index.vue +++ b/src/views/SellerDashboard/MyListings/EditDetail/index.vue @@ -230,14 +230,14 @@