Handy_Cao 1 年之前
父節點
當前提交
de101f64a0

+ 5 - 0
oem/tss/locales/extras/en-US.json

@@ -131,6 +131,11 @@
         }
     },
     "mine": {
+        "delivery": "Delivery",
+        "cashin": "Cash In",
+        "cashout": "Cash Out",
+        "myposition": "MyPosition",
+        "myorder": "MyOrder",
         "setting": {
             "orderBuyOrSell": "Default"
         }

+ 5 - 0
oem/tss/locales/extras/th-TH.json

@@ -131,6 +131,11 @@
         }
     },
     "mine": {
+        "delivery": "รับสินค้า",
+        "cashin": "ฝากเงิน",
+        "cashout": "ถอนเงิน",
+        "myposition": "ของฉัน",
+        "myorder": "สถานะของฉัน",
         "setting": {
             "orderBuyOrSell": "ค่าเริ่มต้น"
         }

+ 5 - 0
oem/tss/locales/extras/zh-CN.json

@@ -131,6 +131,11 @@
         }
     },
     "mine": {
+        "delivery": "交货提货",
+        "cashin": "入金",
+        "cashout": "出金",
+        "myposition": "我的订单",
+        "myorder": "订单详情",
         "setting": {
             "orderBuyOrSell": "默认"
         }

+ 5 - 0
oem/tss/locales/extras/zh-TW.json

@@ -131,6 +131,11 @@
         }
     },
     "mine": {
+        "delivery": "交貨提貨",
+        "cashin": "入金",
+        "cashout": "出金",
+        "myposition": "我的訂單",
+        "myorder": "訂單詳情",
         "setting": {
             "orderBuyOrSell": "默認"
         }

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

@@ -64,6 +64,13 @@
         "tips22": "The request failed. Please try again later",
         "tips23": "Request failed:",
         "tips24": "Login failure:",
+        "tips25": "Album permissions are not authorized",
+        "tips26": "Upload is successful",
+        "tips27": "Upload failure",
+        "tips28": "Up pass in...",
+        "tips29": "The image size cannot exceed 5Mb",
+        "tips30": "Description of storage space/photo permissions",
+        "tips31": "Used to read and write album and file content in adding, making, uploading, publishing, sharing, downloading, searching, and recognizing pictures and videos",
         "all": "All",
         "calendar": "Date Choice"
     },

+ 10 - 3
public/locales/th-TH.json

@@ -65,6 +65,13 @@
         "tips22": "การร้องขอล้มเหลวโปรดลองใหม่อีกครั้ง",
         "tips23": "การร้องขอล้มเหลว:",
         "tips24": "การล็อกอินล้มเหลว:",
+        "tips25": "ไม่อนุญาตสิทธิ์ในอัลบั้ม",
+        "tips26": "อัปโหลดเรียบร้อยแล้ว",
+        "tips27": "ล้มเหลวในการอัปโหลด",
+        "tips28": "กำลังขึ้น...",
+        "tips29": "ขนาดภาพไม่เกิน 5 MB",
+        "tips30": "คำแนะนำเกี่ยวกับพื้น ที่จัดเก็บ/อนุญาตรูปภาพ",
+        "tips31": "ใช้ในการอ่าน และเขียนเนื้อหาของอัลบั้ม และเนื้อหาของแฟ้มในฉากต่าง ๆ เช่น การเพิ่ม, การสร้าง, อัพโหลด, แชร์, ดาวน์โหลด, ค้นหา, จดจำรูปภาพ และวิดีโอ",
         "all": "ทั้งหมด",
         "calendar": "การเลือก"
     },
@@ -170,7 +177,7 @@
         "currentbalance": "ยอดคงเหลือในปัจจุบัน",
         "freezeMargin": "ล่วงหน้า",
         "freezeMargin2": "หลักประกันที่สำรองไว้",
-        "availableFunds": "พร้อมใช้",
+        "availableFunds": "เงินประกันที่ใช้ไป",
         "availableFunds2": "เงินทุนที่พร้อมใช้",
         "netWorth": "มูลค่าสุทธิ",
         "usedMargin": "ใช้ไป",
@@ -639,7 +646,7 @@
             "tradeid": "ข้อตกลง"
         },
         "pricingorder": {
-            "title": "ขายของบางอย่าง",
+            "title": "ราคาของคำสั่งที่ตั้งไว้",
             "subtitle": "รายละเอียดการประมูล",
             "subtitle1": "รายละเอียด",
             "goodsname": "รหัสสินค้า/ชื่อ",
@@ -1142,7 +1149,7 @@
         "cashin": "ทองคำ",
         "cashout": "ทองคำ",
         "myposition": "ของฉัน",
-        "myorder": "คำสั่งของฉัน",
+        "myorder": "สถานะของฉัน",
         "delivery": "ไปรับ ที่ร้านค่ะ",
         "performance": "ข้อมูลอิเล็กทรอนิกส์",
         "fundsinfo": "ข้อมูลทางการเงิน",

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

@@ -65,6 +65,13 @@
         "tips22": "请求失败,请稍后重试",
         "tips23": "请求失败:",
         "tips24": "登录失效:",
+        "tips25": "相册权限未授权",
+        "tips26": "上传成功",
+        "tips27": "上传失败",
+        "tips28": "上传中...",
+        "tips29": "图片大小不能超过 5Mb",
+        "tips30": "存储空间/照片权限说明",
+        "tips31": "用于在添加、制作、上传、发布、分享、下载、搜索、识别图片和视频等场景中读取和写入相册和文件内容",
         "all": "全部",
         "calendar": "日期选择"
     },

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

@@ -65,6 +65,13 @@
         "tips22": "請求失敗,請稍後重試",
         "tips23": "請求失敗:",
         "tips24": "登錄失效:",
+        "tips25": "相冊權限未授權",
+        "tips26": "上傳成功",
+        "tips27": "上傳失敗",
+        "tips28": "上傳中...",
+        "tips29": "圖片大小不能超過 5Mb",
+        "tips30": "存儲空間/照片權限說明",
+        "tips31": "用於在添加、製作、上傳、發佈、分享、下載、搜索、識別圖片和視頻等場景中讀取和寫入相冊和文件內容",
         "all": "全部",
         "calendar": "日期選擇"
     },

+ 10 - 8
src/packages/mobile/components/base/uploader/index.vue

@@ -3,15 +3,15 @@
         <span class="app-uploader__button" @click="onClickUpload" v-if="!hasPermission"></span>
         <Uploader ref="uploaderRef" v-model="fileList" :max-count="maxCount" :max-size="5 * 1024 * 1024"
             @oversize="onOversize" :after-read="onAfterRead" @delete="onDelete" reupload />
-        <Notify v-model:show="showNotify" :duration="0" title="存储空间/照片权限说明"
-            content="用于在添加、制作、上传、发布、分享、下载、搜索、识别图片和视频等场景中读取和写入相册和文件内容" />
+        <Notify v-model:show="showNotify" :duration="0" :title="$t('common.tips30')"
+            :content="$t('common.tips31')" />
     </div>
 </template>
 
 <script lang="ts" setup>
 import { ref } from 'vue'
 import { showFailToast, Uploader, UploaderFileListItem } from 'vant'
-import { useGlobalStore } from '@/stores'
+import { useGlobalStore, i18n } from '@/stores'
 import plus from '@/utils/h5plus'
 import service from '@/services'
 import axios from 'axios'
@@ -24,6 +24,8 @@ defineProps({
     }
 })
 
+const { global: { t } } = i18n
+
 const emit = defineEmits(['success', 'delete'])
 const globalStore = useGlobalStore()
 const uploaderRef = ref()
@@ -34,7 +36,7 @@ const storagePermission = globalStore.getAndroidPermissions('READ_EXTERNAL_STORA
 const hasPermission = ref(storagePermission === 1) // 是否已授权存储权限
 
 const onOversize = () => {
-    showFailToast('图片大小不能超过 5Mb')
+    showFailToast(t('common.tips29'))
 }
 
 const onClickUpload = () => {
@@ -60,7 +62,7 @@ const onClickUpload = () => {
             break
         }
         default: {
-            showFailToast('相册权限未授权')
+            showFailToast(t('common.tips25'))
         }
     }
 }
@@ -71,17 +73,17 @@ const onAfterRead = (file: any) => {
     data.append('file', file.file)
 
     file.status = 'uploading'
-    file.message = '上传中...'
+    file.message = t('common.tips28')
     axios.post(service.getConfig('uploadUrl'), data).then(res => {
         if (res.status == 200) {
             file.status = 'success'
-            file.message = '上传成功'
+            file.message = t('common.tips26')
             if (res.data.length) {
                 emit('success', res.data[0].filePath)
             }
         } else {
             file.status = 'failed'
-            file.message = '上传失败'
+            file.message = t('common.tips27')
         }
     })
 }

+ 1 - 1
src/packages/mobile/views/user/forget/Index.vue

@@ -98,7 +98,7 @@ const formRules: { [key in keyof Model.ResetPasswordReq | 'confirmpassword']?: F
     }],
     confirmpassword: [{
         required: true,
-        message: '请输入确认密码',
+        message: t('user.forget.tips4'),
         validator: (val) => {
             if (formData.password === val) {
                 return true

+ 1 - 1
src/utils/h5plus/index.ts

@@ -87,7 +87,7 @@ export default new (class {
                             // 1秒内连续两次按返回键退出应用
                             if (firstBack) {
                                 firstBack = false
-                                plus.nativeUI.toast('再按一次退出应用')
+                                plus.nativeUI.toast('Exit The Application')
                                 setTimeout(() => {
                                     firstBack = true
                                 }, 1000)