diff --git a/src/assets/icon/history.png b/src/assets/icon/history.png new file mode 100644 index 0000000..bb4a20e Binary files /dev/null and b/src/assets/icon/history.png differ diff --git a/src/locales/ar.json b/src/locales/ar.json index a384366..30c5fc8 100644 --- a/src/locales/ar.json +++ b/src/locales/ar.json @@ -255,6 +255,7 @@ "cash_out_minimum": "*يجب أن يكون مبلغ السحب أكبر من أو يساوي 50 دولارًا", "new_year_cash_out_minimum": "*يجب أن يكون مبلغ السحب أكبر من أو يساوي 10 دولارًا", + "cash_withdraw": "سحب نقدي", "bank_card": "بطاقة مصرفية", "currently_in_use": "بطاقتك (قيد الاستخدام)", "no_bank_cards_in_use": "البطاقات المصرفية غير مستخدمة حالياً.", @@ -273,6 +274,10 @@ "enter_payee": "أدخل اسم المستفيد", "change_kyc": "تغيير KYC", "confirm_modify_kyc": "هل أنت متأكد من أنك تريد تعديل المعلومات الحالية؟", + "salary_balance": "رصيد الراتب: ${amount}", + "enter_withdraw_amount": "أدخل مبلغ السحب", + "withdrawal_rule_1": "*(1)يجب أن يكون مبلغ السحب >=$50", + "withdrawal_rule_2": "(2)ستفرض المنصة رسوم معالجة بنسبة 20% على مبلغ السحب الحالي.", "admin_policy": "سياسة المشرف", diff --git a/src/locales/bn.json b/src/locales/bn.json index 8ef0269..b3be323 100644 --- a/src/locales/bn.json +++ b/src/locales/bn.json @@ -255,6 +255,7 @@ "cash_out_minimum": "*নগদ উত্তোলনের পরিমাণ >= $50 হতে হবে", "new_year_cash_out_minimum": "*নগদ উত্তোলনের পরিমাণ >= $10 হতে হবে", + "cash_withdraw": "নগদ উত্তোলন", "bank_card": "ব্যাংক কার্ড", "currently_in_use": "আপনার কার্ড (ব্যবহারে)", "no_bank_cards_in_use": "ব্যাংক কার্ড বর্তমানে ব্যবহারে নেই।", @@ -273,6 +274,10 @@ "enter_payee": "প্রাপক লিখুন", "change_kyc": "KYC পরিবর্তন", "confirm_modify_kyc": "আপনি কি বর্তমান তথ্য পরিবর্তন করতে চান?", + "salary_balance": "বেতন ব্যালেন্স: ${amount}", + "enter_withdraw_amount": "উত্তোলনের পরিমাণ লিখুন", + "withdrawal_rule_1": "*(1)উত্তোলনের পরিমাণ অবশ্যই >=$50 হতে হবে", + "withdrawal_rule_2": "(2)প্ল্যাটফর্ম বর্তমান উত্তোলনের পরিমাণের উপর 20% হ্যান্ডলিং ফি চার্জ করবে।", "admin_policy": "অ্যাডমিন নীতি", diff --git a/src/locales/en.json b/src/locales/en.json index 9bd6e11..e967c4c 100644 --- a/src/locales/en.json +++ b/src/locales/en.json @@ -255,6 +255,7 @@ "cash_out_minimum": "*The cash out amount must be >= $50", "new_year_cash_out_minimum": "*The cash out amount must be >= $10", + "cash_withdraw": "Cash Withdraw", "bank_card": "Bank Card", "currently_in_use": "Your Card (In Use)", "no_bank_cards_in_use": "Bank cards are not currently in use.", @@ -273,6 +274,10 @@ "enter_payee": "Enter the payee", "change_kyc": "Change KYC", "confirm_modify_kyc": "Are you sure you want to modify the current information?", + "salary_balance": "Salary Balance: ${amount}", + "enter_withdraw_amount": "Enter withdraw amount", + "withdrawal_rule_1": "*(1)Withdrawal amount must be >=$50", + "withdrawal_rule_2": "(2)The platform will charge a 20% handling fee on the current withdrawal amount.", "admin_policy": "Admin Policy", diff --git a/src/locales/tr.json b/src/locales/tr.json index b126f94..c9af486 100644 --- a/src/locales/tr.json +++ b/src/locales/tr.json @@ -255,6 +255,7 @@ "cash_out_minimum": "*Nakit çekme miktarı >= $50 olmalıdır", "new_year_cash_out_minimum": "*Nakit çekme miktarı >= $10 olmalıdır", + "cash_withdraw": "Nakit Çekim", "bank_card": "Banka Kartı", "currently_in_use": "Kartınız (Kullanımda)", "no_bank_cards_in_use": "Banka kartları şu anda kullanımda değil.", @@ -273,6 +274,10 @@ "enter_payee": "Alıcıyı girin", "change_kyc": "KYC Değiştir", "confirm_modify_kyc": "Mevcut bilgileri değiştirmek istediğinizden emin misiniz?", + "salary_balance": "Maaş Bakiyesi: ${amount}", + "enter_withdraw_amount": "Çekim miktarını girin", + "withdrawal_rule_1": "*(1)Çekim miktarı >=$50 olmalıdır", + "withdrawal_rule_2": "(2)Platform, mevcut çekim miktarı üzerinden %20 işlem ücreti alacaktır.", "admin_policy": "Yönetici Politikası", diff --git a/src/locales/zh.json b/src/locales/zh.json index ed5bcfc..1bba543 100644 --- a/src/locales/zh.json +++ b/src/locales/zh.json @@ -255,6 +255,7 @@ "cash_out_minimum": "*提现金额必须大于等于50美元", "new_year_cash_out_minimum": "*提现金额必须大于等于10美元", + "cash_withdraw": "现金提现", "bank_card": "银行卡", "currently_in_use": "您的银行卡 (使用中)", "no_bank_cards_in_use": "当前未使用银行卡。", @@ -273,6 +274,10 @@ "enter_payee": "请输入收款人", "change_kyc": "更改 KYC", "confirm_modify_kyc": "您确定要修改当前信息吗?", + "salary_balance": "薪资余额:${amount}", + "enter_withdraw_amount": "请输入提现金额", + "withdrawal_rule_1": "*(1)提现金额必须 >=$50", + "withdrawal_rule_2": "(2)平台将收取当前提现金额 20% 的手续费。", "admin_policy": "管理员政策", diff --git a/src/router/index.js b/src/router/index.js index fd989e0..ecbbb25 100644 --- a/src/router/index.js +++ b/src/router/index.js @@ -247,6 +247,12 @@ const router = createRouter({ component: () => import('../views/Wallet/PayResult/payResult.vue'), meta: { requiresAuth: true }, }, + { + path: '/cash-withdraw', + name: 'cash-withdraw', + component: () => import('../views/Wallet/CashOut/CashWithdraw.vue'), + meta: { requiresAuth: true }, + }, { path: '/cash-out', name: 'cash-out', diff --git a/src/utils/permissionManager.js b/src/utils/permissionManager.js index 430f221..1e89379 100644 --- a/src/utils/permissionManager.js +++ b/src/utils/permissionManager.js @@ -82,7 +82,8 @@ export const ROLE_PERMISSIONS = { '/recharge-agency-recruit', //充值代理介绍页面 '/search-payee', //搜索收款人 - '/cash-out', // 提现页面 + '/cash-withdraw', // 提现页面 + '/cash-out', // 活动提现页面 '/cash-out-details', //提现详情页面 '/KYC', //提现资料提交 '/bank-card', //选择银行卡 diff --git a/src/utils/routeGuard.js b/src/utils/routeGuard.js index f7068b7..b809aa5 100644 --- a/src/utils/routeGuard.js +++ b/src/utils/routeGuard.js @@ -431,7 +431,8 @@ class RouteGuard { '/pay-result', //支付结果页 '/search-payee', //搜索收款人 - '/cash-out', // 提现页面 + '/cash-withdraw', // 提现页面 + '/cash-out', // 活动提现页面 '/cash-out-details', //提现详情页面 '/KYC', //提现资料提交 '/bank-card', //选择银行卡 diff --git a/src/views/Wallet/CashOut/CashWithdraw.vue b/src/views/Wallet/CashOut/CashWithdraw.vue new file mode 100644 index 0000000..4aa387c --- /dev/null +++ b/src/views/Wallet/CashOut/CashWithdraw.vue @@ -0,0 +1,833 @@ +// src/views/Wallet/CashOut/CashOut.vue + + + + +