Handy_Cao 1 年之前
父节点
当前提交
9e7962288c

+ 8 - 0
public/locales/en-US.json

@@ -1692,5 +1692,13 @@
         "tips1": "Please enter your search term",
         "subtitle1": "FullPayment",
         "subtitle2": "PrePayment"
+    },
+    "enum": {
+        "auth": {
+            "Uncertified": "Uncertified",
+            "Certified": "Certified",
+            "Submitted": "Submitted",
+            "Rejected": "Rejected"
+        }
     }
 }

+ 8 - 0
public/locales/th-TH.json

@@ -1692,5 +1692,13 @@
         "tips1": "โปรดป้อนคำค้น",
         "subtitle1": "เงินทั้งหมด",
         "subtitle2": "จ่ายล่วงหน้า"
+    },
+    "enum": {
+        "auth": {
+            "Uncertified": "ไม่มีชื่อจริง",
+            "Certified": "ชื่อจริง",
+            "Submitted": "ตรวจสอบ",
+            "Rejected": "ไม่ผ่าน"
+        }
     }
 }

+ 8 - 0
public/locales/zh-CN.json

@@ -1692,5 +1692,13 @@
         "tips1": "请输入搜索关键词",
         "subtitle1": "全款",
         "subtitle2": "预付款"
+    },
+    "enum": {
+        "auth": {
+            "Uncertified": "未实名",
+            "Certified": "已实名",
+            "Submitted": "审核中",
+            "Rejected": "未通过"
+        }
     }
 }

+ 8 - 0
public/locales/zh-TW.json

@@ -1692,5 +1692,13 @@
         "tips1": "請輸入搜索關鍵詞",
         "subtitle1": "全款",
         "subtitle2": "預付款"
+    },
+    "enum": {
+        "auth": {
+            "Uncertified": "未實名",
+            "Certified": "已實名",
+            "Submitted": "審覈中",
+            "Rejected": "未通過"
+        }
     }
 }

+ 2 - 2
src/constants/account.ts

@@ -1,4 +1,4 @@
-import { useEnumStore } from '@/stores'
+import { i18n, useEnumStore } from '@/stores'
 
 const { getEnumTypeList, getEnumTypeName, getEnumTypeValue } = useEnumStore()
 
@@ -27,7 +27,7 @@ export enum AQCertificateType {
 export function getAuthStatusList() {
     return [
         { label: '未实名', value: AuthStatus.Uncertified },
-        { label: '已实名', value: AuthStatus.Certified },
+        { label: i18n.global.t('enum.auth.Certified'), value: AuthStatus.Certified },
         { label: '审核中', value: AuthStatus.Submitted },
         { label: '未通过', value: AuthStatus.Rejected },
     ]

+ 1 - 1
src/packages/tss/views/home/main/index.vue

@@ -3,7 +3,7 @@
     <template #header>
       <app-navbar :title="globalStore.getSystemInfo('appName')" :show-back-button="false">
         <template #footer>
-          <Search shape="round" background="transparent" placeholder="请输入搜索关键词"
+          <Search shape="round" background="transparent" :placeholder="$t('tss.tips1')"
             @click="$router.push({ name: 'search' })" />
         </template>
       </app-navbar>

+ 2 - 2
src/packages/tss/views/search/index.vue

@@ -2,11 +2,11 @@
     <app-view class="search">
         <template #header>
             <app-navbar>
-                <Search v-model="keyword" shape="round" background="transparent" placeholder="请输入搜索关键词" autofocus
+                <Search v-model="keyword" shape="round" background="transparent" :placeholder="$t('tss.tips1')" autofocus
                     @search="onSearch" />
             </app-navbar>
             <ProductList :data-list="searchList" v-if="searchList.length" />
-            <Empty description="暂无结果" v-else />
+            <Empty :description="$t('common.nodatas')" v-else />
         </template>
     </app-view>
 </template>