From 0e28f089dce9c7adb8f40b384850693102c53025 Mon Sep 17 00:00:00 2001 From: "X1627315083@163.com" <1627315083@qq.com> Date: Tue, 26 May 2026 10:19:01 +0800 Subject: [PATCH] =?UTF-8?q?digitallItem=E8=AF=AD=E8=A8=80=E9=80=82?= =?UTF-8?q?=E9=85=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/checked.vue | 2 +- src/lang/en.ts | 40 +++++++++++++++++++++++- src/lang/zh-cn.ts | 38 ++++++++++++++++++++++ src/views/brand/brand-item.vue | 2 +- src/views/brand/index.vue | 12 +++---- src/views/brandDetail/commodity-list.vue | 6 ++-- src/views/brandDetail/index.vue | 4 ++- src/views/brandDetail/merchant-info.vue | 4 +-- src/views/digitalItem/index.vue | 21 +++++++------ src/views/digitalItem/merchant-info.vue | 8 ++--- 10 files changed, 108 insertions(+), 29 deletions(-) diff --git a/src/components/checked.vue b/src/components/checked.vue index 1e8c3bf..69d97c7 100644 --- a/src/components/checked.vue +++ b/src/components/checked.vue @@ -58,7 +58,7 @@ const {} = toRefs(data); v-model="checkAll" @change="handleCheckAllChange" > - All + {{ $t('checked.All') }} diff --git a/src/lang/en.ts b/src/lang/en.ts index 10411cf..745fe75 100644 --- a/src/lang/en.ts +++ b/src/lang/en.ts @@ -213,5 +213,43 @@ export default { TermsOfUse: 'Terms of Use', Disclaimer: 'Disclaimer', SiteMap: 'Site Map', + }, + brand:{ + title: 'Brand', + description: "Every brand, every story — discover who's behind the collections.", + search: 'Search brand', + noFound: 'Brand No Found', + noFoundTip: 'Try using another keywords.', + searchHistory: 'Searching History', + brandItem:{ + viewProfile: 'View Profile', + } + }, + brandDetail:{ + addShoppingTip: 'Please log in first.', + merchantInfo: { + Contact: 'Contact', + About: 'About', + }, + All: 'All', + }, + digitalItem:{ + BestSelling: 'Best Selling', + Price: 'Price: Low to High', + NewestFirst: 'Newest First', + title: 'Digital Item', + info: 'Virtual fashion creations collected in your personal archive', + sortBy: 'Sort By', + noData: 'Nothing in Digital Item', + noDataTip: 'Try adjusting your filters or refreshing the page.', + MerchantInfo: { + Filters: 'Filters', + Clear: 'Clear', + Categories: 'Categories', + Gender: 'Gender', + } + }, + checked: { + All: 'All', } -} +} \ No newline at end of file diff --git a/src/lang/zh-cn.ts b/src/lang/zh-cn.ts index d5f82fb..a9aa5c5 100644 --- a/src/lang/zh-cn.ts +++ b/src/lang/zh-cn.ts @@ -213,5 +213,43 @@ export default { TermsOfUse: '条款与条件', Disclaimer: '免责声明', SiteMap: '地图', + }, + brand:{ + title: "品牌", + description: "每一个品牌,每一个故事 — 发现系列作品背后的缔造者。", + search: "搜索品牌", + noFound: "未找到品牌", + noFoundTip: "请尝试使用其他关键词。", + searchHistory: "搜索历史", + brandItem: { + viewProfile: "查看简介" + } + }, + brandDetail:{ + addShoppingTip: "请先登录。", + merchantInfo: { + Contact: "联系方式", + About: "关于我们" + }, + All: "全部" + }, + digitalItem: { + BestSelling: "畅销优先", + Price: "价格:从低到高", + NewestFirst: "最新优先", + title: "数字藏品", + info: "收藏于个人档案中的虚拟时装作品", + sortBy: "排序方式", + noData: "暂无数字藏品", + noDataTip: "请尝试调整筛选条件或刷新页面。", + MerchantInfo: { + Filters: "筛选", + Clear: "清空", + Categories: "分类", + Gender: "适用性别" + } + }, + checked: { + All: "全部" } } diff --git a/src/views/brand/brand-item.vue b/src/views/brand/brand-item.vue index 73a424f..bc6274d 100644 --- a/src/views/brand/brand-item.vue +++ b/src/views/brand/brand-item.vue @@ -33,7 +33,7 @@ const {} = toRefs(data); {{ item.ownerName }} | {{ item?.listingTotal || 0 }} Collections -
View Profile
+
{{ $t('brand.brandItem.viewProfile') }}
diff --git a/src/views/brand/index.vue b/src/views/brand/index.vue index 3c0560b..4f50ba0 100644 --- a/src/views/brand/index.vue +++ b/src/views/brand/index.vue @@ -122,13 +122,13 @@ const {} = toRefs(data);
-
Brand
- Every brand, every story — discover who's behind the collections. +
{{ $t('brand.title') }}
+ {{ $t('brand.description') }}
- +
@@ -145,8 +145,8 @@ const {} = toRefs(data);
@@ -155,7 +155,7 @@ const {} = toRefs(data);
- Searching History + {{ $t('brand.searchHistory') }}
diff --git a/src/views/brandDetail/commodity-list.vue b/src/views/brandDetail/commodity-list.vue index 883abac..32bd09f 100644 --- a/src/views/brandDetail/commodity-list.vue +++ b/src/views/brandDetail/commodity-list.vue @@ -73,9 +73,9 @@ defineExpose({}) Items
diff --git a/src/views/brandDetail/index.vue b/src/views/brandDetail/index.vue index 178190f..ccde17e 100644 --- a/src/views/brandDetail/index.vue +++ b/src/views/brandDetail/index.vue @@ -8,6 +8,7 @@ import { ElMessage } from 'element-plus' import { getDesignerDetail } from '@/api/brand' import { AddShoppingCart } from '@/api/shoppingCart' import brandDetailBg from '@/assets/images/brand/brandDetailBg.png' +import { useI18n } from 'vue-i18n' //const props = defineProps({ //}) @@ -15,6 +16,7 @@ import brandDetailBg from '@/assets/images/brand/brandDetailBg.png' //]) const router = useRouter() const route = useRoute() +const { t, locale } = useI18n() const designerDetail = ref({ avatar: '', @@ -28,7 +30,7 @@ const designerDetail = ref({ }) const addShopping = (item) => { - if(!item.price) return ElMessage.warning('Please log in first.') + if(!item.price) return ElMessage.warning(t('brandDetail.addShoppingTip')) AddShoppingCart({listingIds:[item.id]}).then((res)=>{ item.shopName = designerDetail.value.shopName myEvent.emit('addShopping', item) diff --git a/src/views/brandDetail/merchant-info.vue b/src/views/brandDetail/merchant-info.vue index 76cbb61..b4b922f 100644 --- a/src/views/brandDetail/merchant-info.vue +++ b/src/views/brandDetail/merchant-info.vue @@ -39,7 +39,7 @@ const {} = toRefs(data);
{{ designerDetail.shopName }}
-
Contact
+
{{ $t('brandDetail.merchantInfo.Contact') }}
-
About
+
{{ $t('brandDetail.merchantInfo.About') }}
{{ designerDetail.description }}
diff --git a/src/views/digitalItem/index.vue b/src/views/digitalItem/index.vue index dedd96d..a620b17 100644 --- a/src/views/digitalItem/index.vue +++ b/src/views/digitalItem/index.vue @@ -4,7 +4,7 @@ import CommodityList from "./commodity-list.vue"; import MerchantInfo from "./merchant-info.vue"; import { useRouter } from "vue-router"; import scListNull from '@/views/shoppingCart/sc-list-null.vue' -import { getListingMallListApi } from '@/api/listing' +import { useI18n } from 'vue-i18n' // 定义组件名称 defineOptions({ @@ -14,6 +14,7 @@ defineOptions({ //}) //const emit = defineEmits([ //]) +const { t } = useI18n() const categories = ref(['all']) const gender = ref(['all']) const digitalItemRef = ref(null) @@ -24,13 +25,13 @@ const commodityListRef = ref(null) const searechTypeList = ref([ { value:'salesVolume', - label:'Best Selling' + label:t('digitalItem.BestSelling') },{ value:'price', - label:'Price: Low to High' + label:t('digitalItem.Price') },{ value:'updateTime', - label:'Newest First' + label:t('digitalItem.NewestFirst') }, ]) @@ -64,15 +65,15 @@ defineExpose({})
-
Digital Item
-

Virtual fashion creations collected in your personal archive

+
{{ $t('digitalItem.title') }}
+

{{ $t('digitalItem.info') }}

- +
diff --git a/src/views/digitalItem/merchant-info.vue b/src/views/digitalItem/merchant-info.vue index 9fec146..4916d9c 100644 --- a/src/views/digitalItem/merchant-info.vue +++ b/src/views/digitalItem/merchant-info.vue @@ -36,15 +36,15 @@ defineExpose({})