Prechádzať zdrojové kódy

feat: 提现利率配置接口调试

liangan 2 dní pred
rodič
commit
3c474ab96f

+ 2 - 2
src/locale/bn.json

@@ -111,8 +111,8 @@
   "wallet.withdraw.notes.1": "উত্তোলন পর্যালোচনার সময় সকাল ৯টা থেকে রাত ১০টা পর্যন্ত। উত্তোলনের পর ২ ঘন্টার মধ্যে পৌঁছানোর প্রত্যাশা করা হয়, প্রকৃত পৌঁছানোর সময় চূড়ান্ত সফল প্রক্রিয়াকরণের সময়ের উপর নির্ভর করে",
   "wallet.withdraw.notes.2": "নিশ্চিত করুন যে আপনার ব্যাংক অ্যাকাউন্টের বিবরণ সঠিক।",
   "wallet.withdraw.notes.3": "উত্তোলনের ব্যাংক অ্যাকাউন্টের তথ্য নিবন্ধিত অ্যাকাউন্টের তথ্যের সাথে মিলে যেতে হবে।",
-  "wallet.withdraw.notes.4": "একক উত্তোলনের নূন্যতম পরিমাণ ৳৩০০ এবং সর্বোচ্চ ৳২০,০০০;",
-  "wallet.withdraw.notes.5": "প্রতিটি উত্তোলনে % উত্তোলন প্রক্রিয়াকরণ ফি লাগবে;",
+  "wallet.withdraw.notes.4": "একক উত্তোলনের নূন্যতম পরিমাণ ৳{0} এবং সর্বোচ্চ ৳{1};",
+  "wallet.withdraw.notes.5": "প্রতিটি উত্তোলনে {0}% উত্তোলন প্রক্রিয়াকরণ ফি লাগবে;",
   "income.withdrawNow": "এখনই উত্তোলন করুন",
   "income.revenueRecord": "আয়ের রেকর্ড",
   "income.filter.dt": "আজ",

+ 2 - 2
src/locale/en.json

@@ -116,8 +116,8 @@
   "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;",
+  "wallet.withdraw.notes.4": "The minimum amount for a single withdrawal is ৳{0} and the maximum is ৳{1};",
+  "wallet.withdraw.notes.5": "Every withdrawal you make will incur a {0}% withdrawal handling fee;",
   "income.withdrawNow": "Withdraw Now",
   "income.revenueRecord": "Revenue Record",
   "income.filter.dt": "DT",

+ 2 - 2
src/locale/zh-Hans.json

@@ -126,8 +126,8 @@
   "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%的提现手续费;",
+  "wallet.withdraw.notes.4": "单笔提现最低৳{0},最高৳{1};",
+  "wallet.withdraw.notes.5": "每笔提现将收取{0}%的提现手续费;",
   "search.placeholder": "搜索",
   "search.filterPrice": "全部价格",
   "search.filterCategory": "全部分类",

+ 14 - 2
src/pages/wallet/withdraw.vue

@@ -9,6 +9,7 @@
 </route>
 
 <script lang="ts" setup>
+import { getConfigByCode } from '@/api/common'
 import { withdrawAdd } from '@/api/wallet'
 import { t } from '@/locale'
 import { formatNumber } from '@/utils'
@@ -51,7 +52,18 @@ async function submit() {
   const res = await withdrawAdd({ ...formData.value, accountType: queryParams.value.type })
   console.log(res)
 }
+const withdrawRate = ref<any>()
+async function getConfig() {
+  try {
+    const res = await getConfigByCode({ code: 'withdraw_rate' })
+    withdrawRate.value = res.data.valueInfo
+  }
+  catch {
+
+  }
+}
 onLoad((options) => {
+  getConfig()
   queryParams.value = getPageParams(options)
 })
 </script>
@@ -143,9 +155,9 @@ onLoad((options) => {
         <br>
         {{ $t('wallet.withdraw.notes.3') }}
         <br>
-        {{ $t('wallet.withdraw.notes.4') }}
+        {{ $t('wallet.withdraw.notes.4', ['300', '20,000']) }}
         <br>
-        {{ $t('wallet.withdraw.notes.5') }}
+        {{ $t('wallet.withdraw.notes.5', [withdrawRate]) }}
       </view>
     </view>
   </view>