From 9e12d54540f8c9f26f3005fffaacae9c67d5a752 Mon Sep 17 00:00:00 2001 From: zhangyahui Date: Thu, 16 Apr 2026 17:31:31 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E6=8F=90=E4=BA=A4=E9=A1=B5=E9=9D=A2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/lang/cn.ts | 12 +++ src/lang/en.ts | 12 +++ src/router/index.ts | 7 ++ .../MyListings/EditDetail/Status.vue | 78 +++++++++++++++++++ .../EditDetail/components/Radio.vue | 38 ++++++++- .../MyListings/EditDetail/index.vue | 71 +++++++++++------ 6 files changed, 194 insertions(+), 24 deletions(-) create mode 100644 src/views/SellerDashboard/MyListings/EditDetail/Status.vue diff --git a/src/lang/cn.ts b/src/lang/cn.ts index 37b6aaa2..49a44244 100644 --- a/src/lang/cn.ts +++ b/src/lang/cn.ts @@ -1748,5 +1748,17 @@ export default { productImageSubTitle:' (来自设计集)', apparelSketchTitle:'服装线稿图 ', apparelSketchSubTitle:' (来自设计集)', + productName:'商品名称', + price:'价格', + productDescription:'商品描述', + designFor:'目标人群', + productCategory:'商品类别', + categoryTips:'请选择所有适用选项', + policy:'默认情况下,所有销售均遵循平台的许可政策——买家在下载后将获得使用许可', + learnMore:'了解更多', + draftSaved: '草稿已保存', + draftDesc: '您的商品已保存为草稿。\n您可以继续编辑,或稍后在“我的商品”中发布。', + listingLive:'商品已上架', + publishDesc:'您的商品现已上架。\n买家可以浏览并购买您的设计。' } } diff --git a/src/lang/en.ts b/src/lang/en.ts index 94fc69cb..469d04a3 100644 --- a/src/lang/en.ts +++ b/src/lang/en.ts @@ -1799,5 +1799,17 @@ export default { productImageSubTitle:'(from design collection)', apparelSketchTitle:'Apparel Sketch ', apparelSketchSubTitle:'(from design collection)', + productName:'Product Name', + price:'Price', + productDescription:'Product Description', + designFor:'Designed For', + productCategory:'Product Category', + categoryTips:'select all that apply', + policy:'By default, all sales follow the platform\'s licensing policy — buyers will receive a usage license upon download.', + learnMore:'Learn more', + draftSaved: 'Draft Saved', + draftDesc: 'Your listing has been saved as a draft. \nYou can continue editing or publish it later from My Listings.', + listingLive:'Listing Live', + publishDesc:'Your listing is now live on the marketplace.\nBuyers can discover and purchase your design.' } } diff --git a/src/router/index.ts b/src/router/index.ts index 35bc7db2..f1e349c8 100644 --- a/src/router/index.ts +++ b/src/router/index.ts @@ -220,6 +220,13 @@ const routes: Array = [ meta: { enter: "all" }, component: () => import("@/views/SellerDashboard/MyListings/EditDetail/index.vue") + }, + { + path:'edit/status/:status', + name:'Status', + meta:{enter:'all'}, + component: () => + import("@/views/SellerDashboard/MyListings/EditDetail/Status.vue") } ] }, diff --git a/src/views/SellerDashboard/MyListings/EditDetail/Status.vue b/src/views/SellerDashboard/MyListings/EditDetail/Status.vue new file mode 100644 index 00000000..eb680dd2 --- /dev/null +++ b/src/views/SellerDashboard/MyListings/EditDetail/Status.vue @@ -0,0 +1,78 @@ + + + + + diff --git a/src/views/SellerDashboard/MyListings/EditDetail/components/Radio.vue b/src/views/SellerDashboard/MyListings/EditDetail/components/Radio.vue index 3b5129f2..6806b9fa 100644 --- a/src/views/SellerDashboard/MyListings/EditDetail/components/Radio.vue +++ b/src/views/SellerDashboard/MyListings/EditDetail/components/Radio.vue @@ -4,7 +4,14 @@ v-for="item in options" :key="item.key" type="button" - :class="['radio-button', { 'is-active': modelValue === item.key }]" + :class="[ + 'radio-button', + { + 'is-active': multiple + ? selectedValues.includes(item.key) + : modelValue === item.key + } + ]" @click="selectOption(item.key)" > {{ item.name }} @@ -13,6 +20,8 @@