From 5e1d43b5a00d047e7fb034b3b113cebfc3f36928 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9D=8E=E5=BF=97=E9=B9=8F?= <2916022834@qq.com> Date: Thu, 9 Apr 2026 13:48:46 +0800 Subject: [PATCH] 111 --- .../BrandProfile/brand-info.vue | 177 ++++++++---------- .../SellerDashboard/BrandProfile/index.vue | 73 +++++++- .../MyListings/main/content.vue | 7 +- .../SellerDashboard/MyListings/main/index.vue | 2 +- 4 files changed, 159 insertions(+), 100 deletions(-) diff --git a/src/views/SellerDashboard/BrandProfile/brand-info.vue b/src/views/SellerDashboard/BrandProfile/brand-info.vue index e4aa1241..b1f5f412 100644 --- a/src/views/SellerDashboard/BrandProfile/brand-info.vue +++ b/src/views/SellerDashboard/BrandProfile/brand-info.vue @@ -1,26 +1,33 @@ 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