From e79a6352208c979625fd179070f43279fbbd1b0f Mon Sep 17 00:00:00 2001 From: "X1627315083@163.com" <1627315083@qq.com> Date: Thu, 9 Apr 2026 10:39:02 +0800 Subject: [PATCH 1/4] fix --- src/router/index.ts | 6 +++--- .../createSelect}/index.vue | 2 +- .../createSelectItem}/index.vue | 2 +- src/views/SellerDashboard/MyListings/{ => main}/index.vue | 2 +- 4 files changed, 6 insertions(+), 6 deletions(-) rename src/views/SellerDashboard/{MyListingCreateSelect => MyListings/createSelect}/index.vue (94%) rename src/views/SellerDashboard/{MyListingCreateSelectItem => MyListings/createSelectItem}/index.vue (94%) rename src/views/SellerDashboard/MyListings/{ => main}/index.vue (96%) diff --git a/src/router/index.ts b/src/router/index.ts index a32ec66e..2cad2ad3 100644 --- a/src/router/index.ts +++ b/src/router/index.ts @@ -203,19 +203,19 @@ const routes: Array = [ path: "index", name: "myListingsIndex", meta: { enter: "all" }, - component: () => import("@/views/SellerDashboard/MyListings/index.vue"), + component: () => import("@/views/SellerDashboard/MyListings/main/index.vue"), }, { path: "select", name: "myListingsSelect", meta: { enter: "all" }, - component: () => import("@/views/SellerDashboard/MyListingCreateSelect/index.vue"), + component: () => import("@/views/SellerDashboard/MyListings/createSelect/index.vue"), }, { path: "select/:id", name: "myListingsSelectItem", meta: { enter: "all" }, - component: () => import("@/views/SellerDashboard/MyListingCreateSelectItem/index.vue"), + component: () => import("@/views/SellerDashboard/MyListings/createSelectItem/index.vue"), }, ] }, diff --git a/src/views/SellerDashboard/MyListingCreateSelect/index.vue b/src/views/SellerDashboard/MyListings/createSelect/index.vue similarity index 94% rename from src/views/SellerDashboard/MyListingCreateSelect/index.vue rename to src/views/SellerDashboard/MyListings/createSelect/index.vue index 4fdccc62..8b5b1502 100644 --- a/src/views/SellerDashboard/MyListingCreateSelect/index.vue +++ b/src/views/SellerDashboard/MyListings/createSelect/index.vue @@ -1,6 +1,6 @@ diff --git a/src/views/SellerDashboard/BrandProfile/brand-info.vue b/src/views/SellerDashboard/BrandProfile/brand-info.vue new file mode 100644 index 00000000..e4aa1241 --- /dev/null +++ b/src/views/SellerDashboard/BrandProfile/brand-info.vue @@ -0,0 +1,154 @@ + + + + diff --git a/src/views/SellerDashboard/BrandProfile/index.vue b/src/views/SellerDashboard/BrandProfile/index.vue index 784cca12..d802d4bc 100644 --- a/src/views/SellerDashboard/BrandProfile/index.vue +++ b/src/views/SellerDashboard/BrandProfile/index.vue @@ -1,13 +1,112 @@ - diff --git a/src/views/SellerDashboard/index.vue b/src/views/SellerDashboard/index.vue index ef6a2bb5..1d7d89bf 100644 --- a/src/views/SellerDashboard/index.vue +++ b/src/views/SellerDashboard/index.vue @@ -12,17 +12,15 @@ -
- -
- + + + + \ 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 36df7118..4ba8f289 100644 --- a/src/views/SellerDashboard/MyListings/main/index.vue +++ b/src/views/SellerDashboard/MyListings/main/index.vue @@ -1,6 +1,7 @@ diff --git a/src/views/SellerDashboard/BrandProfile/index.vue b/src/views/SellerDashboard/BrandProfile/index.vue index d802d4bc..afe33205 100644 --- a/src/views/SellerDashboard/BrandProfile/index.vue +++ b/src/views/SellerDashboard/BrandProfile/index.vue @@ -20,7 +20,22 @@ - + + + @@ -29,6 +44,22 @@ import BrandInfo from "./brand-info.vue" const banner = ref("http://118.31.39.42:3000/falls/5bd8065cbb396eb5a8ef0a142605139358734e57.png") const avatar = ref("http://118.31.39.42:3000/falls/20251024140128_10355_1.jpg") + const isEdit = ref(false) + const brandInfoRef = ref(null) + const onEdit = () => { + isEdit.value = true + } + const onCancel = () => { + isEdit.value = false + } + const onSubmit = () => { + brandInfoRef.value + .submit() + .then(() => { + isEdit.value = false + }) + .catch(() => {}) + } diff --git a/src/views/SellerDashboard/MyListings/main/content.vue b/src/views/SellerDashboard/MyListings/main/content.vue index 5be60fc2..2f3ad05f 100644 --- a/src/views/SellerDashboard/MyListings/main/content.vue +++ b/src/views/SellerDashboard/MyListings/main/content.vue @@ -115,14 +115,17 @@ const { showDrafts } = toRefs(data); \ No newline at end of file