Sfoglia il codice sorgente

feat: 提现页多语言

liangan 1 settimana fa
parent
commit
e9992931a5
5 ha cambiato i file con 83 aggiunte e 22 eliminazioni
  1. 20 0
      src/locale/bn.json
  2. 20 0
      src/locale/en.json
  3. 20 0
      src/locale/zh-Hans.json
  4. 1 1
      src/pages.json
  5. 22 21
      src/pages/wallet/withdraw.vue

+ 20 - 0
src/locale/bn.json

@@ -75,6 +75,26 @@
   "income.ydEarnings": "গতকালের আয়",
   "income.mtdEarnings": "মাসের আয়",
   "income.myGroupData": "আমার গ্রুপ ডেটা",
+  "wallet.withdraw.title": "উত্তোলন",
+  "wallet.withdraw.balance": "ওয়ালেট ব্যালেন্স",
+  "wallet.withdraw.info": "উত্তোলনের তথ্য",
+  "wallet.withdraw.form.bankName": "ব্যাংকের নাম",
+  "wallet.withdraw.form.bankAccountName": "ব্যাংক অ্যাকাউন্ট নাম",
+  "wallet.withdraw.form.bankAccountNo": "ব্যাংক অ্যাকাউন্ট নং",
+  "wallet.withdraw.form.amount": "উত্তোলনের পরিমাণ",
+  "wallet.withdraw.form.allAmount": "সমস্ত পরিমাণ",
+  "wallet.withdraw.form.submit": "জমা দিন",
+  "wallet.withdraw.record": "রেকর্ড",
+  "wallet.withdraw.error.bankName": "ব্যাংকের নাম লিখুন",
+  "wallet.withdraw.error.bankAccountName": "ব্যাংক অ্যাকাউন্ট নাম লিখুন",
+  "wallet.withdraw.error.bankAccountNo": "ব্যাংক অ্যাকাউন্ট নম্বর লিখুন",
+  "wallet.withdraw.error.amount": "উত্তোলনের পরিমাণ লিখুন",
+  "wallet.withdraw.notes.title": "নোট:",
+  "wallet.withdraw.notes.1": "উত্তোলন পর্যালোচনার সময় সকাল ৯টা থেকে রাত ১০টা পর্যন্ত। উত্তোলনের পর ২ ঘন্টার মধ্যে পৌঁছানোর প্রত্যাশা করা হয়, প্রকৃত পৌঁছানোর সময় চূড়ান্ত সফল প্রক্রিয়াকরণের সময়ের উপর নির্ভর করে",
+  "wallet.withdraw.notes.2": "নিশ্চিত করুন যে আপনার ব্যাংক অ্যাকাউন্টের বিবরণ সঠিক।",
+  "wallet.withdraw.notes.3": "উত্তোলনের ব্যাংক অ্যাকাউন্টের তথ্য নিবন্ধিত অ্যাকাউন্টের তথ্যের সাথে মিলে যেতে হবে।",
+  "wallet.withdraw.notes.4": "একক উত্তোলনের নূন্যতম পরিমাণ ৳৩০০ এবং সর্বোচ্চ ৳২০,০০০;",
+  "wallet.withdraw.notes.5": "প্রতিটি উত্তোলনে ৩% উত্তোলন প্রক্রিয়াকরণ ফি লাগবে;",
   "income.withdrawNow": "এখনই উত্তোলন করুন",
   "income.revenueRecord": "আয়ের রেকর্ড",
   "income.filter.dt": "আজ",

+ 20 - 0
src/locale/en.json

@@ -98,6 +98,26 @@
   "income.ydEarnings": "YD Earnings",
   "income.mtdEarnings": "MTD Earnings",
   "income.myGroupData": "My Group Data",
+  "wallet.withdraw.title": "Withdraw",
+  "wallet.withdraw.balance": "Wallet Balance",
+  "wallet.withdraw.info": "Withdrawal information",
+  "wallet.withdraw.form.bankName": "Bank Name",
+  "wallet.withdraw.form.bankAccountName": "Bank Account Name",
+  "wallet.withdraw.form.bankAccountNo": "Bank Account No.",
+  "wallet.withdraw.form.amount": "Withdrawal Amount",
+  "wallet.withdraw.form.allAmount": "All Amounts",
+  "wallet.withdraw.form.submit": "Submit",
+  "wallet.withdraw.record": "Record",
+  "wallet.withdraw.error.bankName": "Please enter Bank Name",
+  "wallet.withdraw.error.bankAccountName": "Please enter Bank Account Name",
+  "wallet.withdraw.error.bankAccountNo": "Please enter Bank Account No.",
+  "wallet.withdraw.error.amount": "Please enter Withdrawal Amount",
+  "wallet.withdraw.notes.title": "Notes:",
+  "wallet.withdraw.notes.1": "Withdrawal Review Hours Are From 9 AM To 10 PM. Expected to arrive within 2 hours after withdrawal, actual arrival time is subject to the final successful processing time",
+  "wallet.withdraw.notes.2": "Make sure your bank account details is correct.",
+  "wallet.withdraw.notes.3": "The withdrawal bank account information must be consistent with the registered account information.",
+  "wallet.withdraw.notes.4": "The minimum amount for a single withdrawal is ৳300 and the maximum is ৳20,000;",
+  "wallet.withdraw.notes.5": "Every withdrawal you make will incur a 3% withdrawal handling fee;",
   "income.withdrawNow": "Withdraw Now",
   "income.revenueRecord": "Revenue Record",
   "income.filter.dt": "DT",

+ 20 - 0
src/locale/zh-Hans.json

@@ -108,6 +108,26 @@
   "mine.pages.share.shareTo": "分享到{0}",
   "mine.pages.myFavorite.title": "我的收藏",
   "mine.pages.myFavorite.empty": "暂无收藏",
+  "wallet.withdraw.title": "提现",
+  "wallet.withdraw.balance": "钱包余额",
+  "wallet.withdraw.info": "提现信息",
+  "wallet.withdraw.form.bankName": "银行名称",
+  "wallet.withdraw.form.bankAccountName": "开户名",
+  "wallet.withdraw.form.bankAccountNo": "银行账号",
+  "wallet.withdraw.form.amount": "提现金额",
+  "wallet.withdraw.form.allAmount": "全部金额",
+  "wallet.withdraw.form.submit": "提交",
+  "wallet.withdraw.record": "记录",
+  "wallet.withdraw.error.bankName": "请输入银行名称",
+  "wallet.withdraw.error.bankAccountName": "请输入开户名",
+  "wallet.withdraw.error.bankAccountNo": "请输入银行账号",
+  "wallet.withdraw.error.amount": "请输入提现金额",
+  "wallet.withdraw.notes.title": "注意:",
+  "wallet.withdraw.notes.1": "提现审核时间为上午9点至晚上10点。预计提现后2小时内到账,实际到账时间以最终处理成功时间为准。",
+  "wallet.withdraw.notes.2": "请确保您的银行账户信息正确。",
+  "wallet.withdraw.notes.3": "提现银行账户信息必须与注册账户信息一致。",
+  "wallet.withdraw.notes.4": "单笔提现最低৳300,最高৳20,000;",
+  "wallet.withdraw.notes.5": "每笔提现将收取3%的提现手续费;",
   "search.placeholder": "搜索",
   "search.filterPrice": "全部价格",
   "search.filterCategory": "全部分类",

+ 1 - 1
src/pages.json

@@ -292,7 +292,7 @@
       "layout": "default",
       "style": {
         "navigationStyle": "custom",
-        "navigationBarTitleText": "Withdraw"
+        "navigationBarTitleText": "%wallet.withdraw.title%"
       }
     },
     {

+ 22 - 21
src/pages/wallet/withdraw.vue

@@ -3,13 +3,14 @@
   layout: 'default',
   style: {
     navigationStyle: 'custom',
-    navigationBarTitleText: 'Withdraw',
+    navigationBarTitleText: '%wallet.withdraw.title%',
   },
 }
 </route>
 
 <script lang="ts" setup>
 import { withdrawAdd } from '@/api/wallet'
+import { t } from '@/locale'
 import { formatNumber } from '@/utils'
 import { getPageParams, goBack, toPage } from '@/utils/page'
 import { toast } from '@/utils/toast'
@@ -32,19 +33,19 @@ const formData = ref({
 })
 async function submit() {
   if (!formData.value.bank) {
-    toast.info('Please enter Bank Name')
+    toast.info(t('wallet.withdraw.error.bankName'))
     return
   }
   if (!formData.value.bankAccountName) {
-    toast.info('Please enter Bank Account Name')
+    toast.info(t('wallet.withdraw.error.bankAccountName'))
     return
   }
   if (!formData.value.bankAccount) {
-    toast.info('Please enter Bank Account No.')
+    toast.info(t('wallet.withdraw.error.bankAccountNo'))
     return
   }
   if (!formData.value.amount) {
-    toast.info('Please enter Withdrawal Amount')
+    toast.info(t('wallet.withdraw.error.amount'))
     return
   }
   const res = await withdrawAdd({ ...formData.value, accountType: queryParams.value.type })
@@ -61,20 +62,20 @@ onLoad((options) => {
       custom-class="bg-#FEE750!"
       :bordered="false"
       safe-area-inset-top placeholder fixed
-      title="Withdraw"
+      :title="t('wallet.withdraw.title')"
     >
       <template #left>
         <wd-icon name="thin-arrow-left" size="32rpx" @click="goBack" />
       </template>
       <template #right>
         <text class="text-28rpx" @click="toPage('/pages/wallet/withdrawRecord', { type: queryParams.type })">
-          Record
+          {{ t('wallet.withdraw.record') }}
         </text>
       </template>
     </wd-navbar>
     <view class="px-28rpx pb-28rpx pt-40rpx">
       <view class="text-28rpx">
-        Wallet Balance
+        {{ t('wallet.withdraw.balance') }}
       </view>
       <view>
         <text class="text-28rpx">
@@ -87,27 +88,27 @@ onLoad((options) => {
     </view>
     <view class="flex-1 rounded-t-24rpx bg-white p-24rpx">
       <view class="mb-28rpx text-32rpx">
-        Withdrawal information
+        {{ t('wallet.withdraw.info') }}
       </view>
       <wd-form ref="form" :model="formData" custom-class="mb-28rpx">
         <view class="mb-40rpx space-y-32rpx">
           <wd-input
             v-model="formData.bank"
-            placeholder="Bank Name"
+            :placeholder="t('wallet.withdraw.form.bankName')"
             no-border
             custom-class="bandhu-auth-input-field"
             :readonly="userInfo.bank"
           />
           <wd-input
             v-model="formData.bankAccountName"
-            placeholder="Bank Account Name"
+            :placeholder="t('wallet.withdraw.form.bankAccountName')"
             no-border
             custom-class="bandhu-auth-input-field"
             :readonly="userInfo.bankAccountName"
           />
           <wd-input
             v-model="formData.bankAccount"
-            placeholder="Bank Account No."
+            :placeholder="t('wallet.withdraw.form.bankAccountNo')"
             no-border
             custom-class="bandhu-auth-input-field"
             :readonly="userInfo.bankAccountName"
@@ -115,7 +116,7 @@ onLoad((options) => {
           <view class="flex items-center gap-20rpx">
             <wd-input
               v-model="formData.amount"
-              placeholder="Withdrawal Amount"
+              :placeholder="t('wallet.withdraw.form.amount')"
               no-border
               custom-class="flex-1 bandhu-auth-input-field"
             />
@@ -125,26 +126,26 @@ onLoad((options) => {
               custom-class="bandhu-auth-secondary-btn"
               @click="formData.amount = queryParams.balance"
             >
-              All Amounts
+              {{ t('wallet.withdraw.form.allAmount') }}
             </wd-button>
           </view>
         </view>
         <wd-button plain block custom-class="h-80rpx!" @click="submit">
-          Submit
+          {{ t('wallet.withdraw.form.submit') }}
         </wd-button>
       </wd-form>
       <view class="text-24rpx text-#5A5A5A line-height-48rpx">
-        Notes:
+        {{ t('wallet.withdraw.notes.title') }}
         <br>
-        1.Withdrawal Review Hours Are From 9 AM To 10 PM. Expected to arrive within 2 hours after withdrawal, actual arrival time is subject to the final successful processing time
+        {{ t('wallet.withdraw.notes.1') }}
         <br>
-        2.Make sure your bank account details is correct.
+        {{ t('wallet.withdraw.notes.2') }}
         <br>
-        3.The withdrawal bank account information must be consistent with the registered account information.
+        {{ t('wallet.withdraw.notes.3') }}
         <br>
-        4.The minimum amount for a single withdrawal is ৳300 and the maximum is ৳20,000;
+        {{ t('wallet.withdraw.notes.4') }}
         <br>
-        5.Every withdrawal you make will incur a 3% withdrawal handling fee;
+        {{ t('wallet.withdraw.notes.5') }}
       </view>
     </view>
   </view>