From f5af9cc5205ce8be066f1d4cf54ea8cf13aa1846 Mon Sep 17 00:00:00 2001 From: duchm Date: Thu, 5 Oct 2023 12:22:21 +0700 Subject: [PATCH] feat: buy lifetime family on /lifetime --- src/renderer/locales/en.js | 303 +++++++++++++------------- src/renderer/locales/vi.js | 299 ++++++++++++------------- src/renderer/pages/lifetime/index.vue | 60 +++-- 3 files changed, 349 insertions(+), 313 deletions(-) diff --git a/src/renderer/locales/en.js b/src/renderer/locales/en.js index 1e65bc12..1f7c3192 100644 --- a/src/renderer/locales/en.js +++ b/src/renderer/locales/en.js @@ -1,175 +1,175 @@ module.exports = { common: { - username: 'Username', - password: 'Password', - fullname: 'Full name', - nationality: 'Nationality', - dob: 'Date of birth', - share: 'Share', - quick_share: 'Quick shares', - in_app_share: 'In-app shares', - get_share_link: 'Get shareable link', - continue: 'Continue', - copy: 'Copy', - verify: 'Verify', - move_folder: 'Move to a folder', - delete: 'Delete', - success: 'Success', - warning: 'Warning', - error: 'Error', - failed: 'Failed', - copied: 'Copied to clipboard', - clone: 'Clone', - restore: 'Restore', - permanently_delete: 'Permanently Delete', + accept: 'Accept', + accounts: 'account | accounts', + actions: 'Actions', + active: 'Active', add: 'Add', - update: 'Update', - note: 'Note', - edit: 'Edit', - folder: 'Folder', - invite: 'Invite', - upgrade: 'Upgrade', - lock: 'Lock', - login: 'Log in', - logout: 'Log Out', - groups: 'Groups', - remove: 'Remove', - users: 'Users', - rename: 'Rename', + add_new: 'Add new', + address: 'Address', + address_placeholder: 'Enter your address', + agree_terms: 'I agree with the Terms and Conditions', + all_items: 'All items', + amount: 'Amount', + apply: 'Apply', + approve: 'Approve', + authentication_app: 'Authentication App', + authentication_email: 'Authentication Email', + back: 'Back', + cancel: 'Cancel', + cardholder: "Cardholder's name", + cardholder_placeholder: 'Jane Doe', + choose_file: 'Choose File', + city: 'City', + clone: 'Clone', + close: 'Close', + collapse: 'Collapse', collections: 'Team folders', - length: 'Length', - me: 'Me', - purge: 'Purge Account', - delete_account: 'Delete Account', + company: 'Company', + company_placeholder: 'Enter your company', + company_size: 'Number of staffs', + configuration: 'Configuration', confirm: 'Confirm', + confirm_password: 'Confirm password', + confirm_password_placeholder: 'Enter confirm password', confirmed: 'Confirmed', - cardholder: "Cardholder's name", - cardholder_placeholder: 'Jane Doe', - first_name_placeholder: 'Your first name', - last_name_placeholder: 'Your last name', + continue: 'Continue', + copied: 'Copied to clipboard', + copy: 'Copy', + country: 'Country', + created: 'Created', + created_date: 'Created date', + cystack_address: 'Address: Tan Hong Ha Complex, 317 Truong Chinh Street, Thanh Xuan District, Hanoi, Vietnam', + decline: 'Decline', + delete: 'Delete', + delete_account: 'Delete Account', + disable: 'Disable', + discount: 'Discount', + dob: 'Date of birth', + done: 'Done', + dr: 'Dr', + duration: 'Duration', + edit: 'Edit', email: 'Email address', email_address: 'Email address', email_placeholder: 'Enter your email', - name: 'Name', - address: 'Address', - address_placeholder: 'Enter your address', - company: 'Company', - company_size: 'Number of staffs', - company_placeholder: 'Enter your company', - phone: 'Phone number', - phone_placeholder: 'Enter your phone', - city: 'City', - state: 'Province/State', - zip: 'Postal/Zip Code', - country: 'Country', - cancel: 'Cancel', - save: 'Save', + enable: 'Enable', + error: 'Error', + expired: 'Expired', + failed: 'Failed', + features: 'Features', + female: 'Female', + first_name: 'First name', + first_name_placeholder: 'Your first name', + folder: 'Folder', folder_name: 'Folder name', + fullname: 'Full name', + get_share_link: 'Get shareable link', + go_to_website: 'Go to website', + good: 'Good', group_name: 'Group name', - ownership: 'Ownership', - master_password: 'Master Password', - joined: 'Joined at', - close: 'Close', - status: 'Status', - amount: 'Amount', - duration: 'Duration', - yearly: '1 year plan', - monthly: '1 month plan', + groups: 'Groups', half_yearly: '6 months plan', - created_date: 'Created date', - plan: 'Plan', - go_to_website: 'Go to website', - accept: 'Accept', - reject: 'Reject', - shared_with_you: 'Shared in Locker', - reinvite: 'Resend Invitation', - request_access: 'Request access', - view: 'View', - takeover: 'Takeover', - view_item: 'View item', - yes: 'Yes', - no: 'No', - search_placeholder: 'Search everything ...', - owner: 'Owner', - user: 'User', - type: 'Type', - share_type: 'Permission', - actions: 'Actions', - sign_up: 'Sign up', - organization: 'Organization', + have_code: 'Have code', + in_app_share: 'In-app shares', + invite: 'Invite', + issue: 'issue | issues', item_name: 'Item name', - all_items: 'All items', - add_new: 'Add new', - view_folder: 'View in folder', + job_title: 'Job title (optional)', + job_title_placeholder: 'Your job title', + joined: 'Joined at', + last_name: 'Last name', + last_name_placeholder: 'Your last name', + learn_more: 'Learn more', + length: 'Length', + lock: 'Lock', + login: 'Log in', + logout: 'Log Out', + male: 'Male', manage_plans: 'Manage Plans', - decline: 'Decline', - unlimited: 'Unlimited', - select: 'Select', + master_password: 'Master Password', + me: 'Me', + month: 'month | months', + monthly: '1 month plan', + move_folder: 'Move to a folder', mr: 'Mr', mrs: 'Mrs', ms: 'Ms', - dr: 'Dr', - see_all: 'See all', - collapse: 'Collapse', - you: 'You', - terms: 'Terms', - privacy_policy: 'Privacy Policy', - cystack_address: 'Address: Tan Hong Ha Complex, 317 Truong Chinh Street, Thanh Xuan District, Hanoi, Vietnam', - release_notes: 'Release Notes', - first_name: 'First name', - last_name: 'Last name', - work_email: 'Work email', - work_email_placeholder: 'Your work email', + name: 'Name', + nationality: 'Nationality', new_password: 'New password', new_password_placeholder: 'Enter a new password', - confirm_password: 'Confirm password', - confirm_password_placeholder: 'Enter confirm password', - job_title: 'Job title (optional)', - job_title_placeholder: 'Your job title', - no_credit_card: 'No credit card required.', - proceed: 'Proceed', - month: 'month | months', - year: 'year', - select_an_option: 'Select an option', next: 'Next', - back: 'Back', - done: 'Done', - created: 'Created', - issue: 'issue | issues', - good: 'Good', + no: 'No', + no_credit_card: 'No credit card required.', + note: 'Note', ok: 'Ok', - configuration: 'Configuration', - skip: 'Skip', - active: 'Active', - male: 'Male', - female: 'Female', + onetime: 'Lifetime plan', + only: 'Only', + or: 'or', + organization: 'Organization', other: 'Other', - secret_key: 'Secret key', - enable: 'Enable', - disable: 'Disable', + owner: 'Owner', + ownership: 'Ownership', + password: 'Password', + permanently_delete: 'Permanently Delete', + phone: 'Phone number', + phone_placeholder: 'Enter your phone', + plan: 'Plan', previous: 'Previous', - authentication_app: 'Authentication App', - authentication_email: 'Authentication Email', - have_code: 'Have code', - or: 'or', - approve: 'Approve', - totp: 'TOTP', - apply: 'Apply', - discount: 'Discount', - learn_more: 'Learn more', - features: 'Features', - accounts: 'account | accounts', price: 'Price', - see_more: 'See more', - only: 'Only', - total: 'Total', privacy: 'Privacy', + privacy_policy: 'Privacy Policy', + proceed: 'Proceed', + purge: 'Purge Account', + quick_share: 'Quick shares', + reinvite: 'Resend Invitation', + reject: 'Reject', + release_notes: 'Release Notes', + remove: 'Remove', + rename: 'Rename', + request_access: 'Request access', + restore: 'Restore', + save: 'Save', + search_placeholder: 'Search everything ...', + secret_key: 'Secret key', + see_all: 'See all', + see_more: 'See more', + select: 'Select', + select_an_option: 'Select an option', + share: 'Share', + share_type: 'Permission', + shared_with_you: 'Shared in Locker', + sign_up: 'Sign up', + skip: 'Skip', + state: 'Province/State', + status: 'Status', + submit: 'Submit', subscribe: 'Subscribe', - agree_terms: 'I agree with the Terms and Conditions', - expired: 'Expired', - choose_file: 'Choose File', - onetime: 'Lifetime plan', - submit: 'Submit' + success: 'Success', + takeover: 'Takeover', + terms: 'Terms', + total: 'Total', + totp: 'TOTP', + type: 'Type', + unlimited: 'Unlimited', + update: 'Update', + upgrade: 'Upgrade', + user: 'User', + username: 'Username', + users: 'Users', + verify: 'Verify', + view: 'View', + view_folder: 'View in folder', + view_item: 'View item', + warning: 'Warning', + work_email: 'Work email', + work_email_placeholder: 'Your work email', + year: 'year', + yearly: '1 year plan', + yes: 'Yes', + you: 'You', + zip: 'Postal/Zip Code' }, sidebar: { all: 'All', @@ -1746,7 +1746,7 @@ module.exports = { text: 'Create an Account' }, { - text: 'Get Lifetime Premium' + text: 'Get Lifetime Subscription' } ], image: 'bg-img_en.png' @@ -2551,7 +2551,7 @@ module.exports = { desc: 'The price is lower and lower when Locker is', desc_colored: 'the only Password Manager integrated with Private Email', lifetime: { - get: 'Get Lifetime Premium for', + get: 'Get Lifetime subscription from', pay_once: 'Pay once, use forever!', buy_now: 'Buy now' }, @@ -5685,17 +5685,18 @@ module.exports = { } }, lifetime: { - title: 'Locker Password Manager | Lifetime Premium', + title: 'Locker Password Manager | Lifetime Subscription', desc: 'Secure your passwords with the lowest price & highest quality ever!', common: { lifetime: 'lifetime' }, header: { - title: 'Sign up for Locker', + title: 'Locker Lifetime Subscription', duration: 'Duration', unlimited: 'Unlimited', desc1: 'You will be billed once only for this Lifetime Subscription.', - desc2: 'Locker offers 30-day money back guarantee for any reason. Contact contact@locker.io to process the money back guarantee or for further support.' + desc2: 'Locker offers 30-day money back guarantee for any reason. Contact contact@locker.io to process the money back guarantee or for further support.', + choose_subscription: 'Choose a subscription' } } }, diff --git a/src/renderer/locales/vi.js b/src/renderer/locales/vi.js index 28669325..b2ca11f1 100644 --- a/src/renderer/locales/vi.js +++ b/src/renderer/locales/vi.js @@ -1,175 +1,175 @@ module.exports = { common: { - username: 'Tên tài khoản', - password: 'Mật khẩu', - fullname: 'Họ tên', - nationality: 'Quốc tịch', - dob: 'Ngày sinh', - share: 'Chia sẻ', - quick_share: 'Chia sẻ nhanh', - in_app_share: 'Chia sẻ nội bộ', - get_share_link: 'Chia sẻ qua liên kết', - continue: 'Tiếp tục', - copy: 'Sao chép', - verify: 'Xác thực', - move_folder: 'Di chuyển thư mục', - delete: 'Xóa', - success: 'Thành công', - warning: 'Cảnh báo', - error: 'Lỗi', - failed: 'Thất bại', - copied: 'Sao chép vào bộ nhớ tạm', - clone: 'Nhân bản', - restore: 'Khôi phục', - permanently_delete: 'Xóa vĩnh viễn', + accept: 'Đồng ý', + accounts: 'tài khoản | tài khoản', + actions: 'Hành động', + active: 'Đang hoạt động', add: 'Thêm', - update: 'Cập nhật', - note: 'Ghi chú', - edit: 'Chỉnh sửa', - folder: 'Thư mục', - invite: 'Mời', - upgrade: 'Nâng cấp', - lock: 'Khóa', - login: 'Đăng nhập', - logout: 'Đăng xuất', - groups: 'Nhóm', - remove: 'Xóa', - users: 'Người dùng', - rename: 'Đổi tên', + add_new: 'Thêm mới', + address: 'Địa chỉ', + address_placeholder: 'Nhập địa chỉ của bạn', + agree_terms: 'Tôi đồng ý với Điều khoảnChính sách', + all_items: 'Tất cả', + amount: 'Số lượng', + apply: 'Áp dụng', + approve: 'Duyệt', + authentication_app: 'Ứng dụng xác thực', + authentication_email: 'Email xác thực', + back: 'Quay lại', + cancel: 'Hủy bỏ', + cardholder: 'Tên chủ thẻ', + cardholder_placeholder: 'Nguyen Van A', + choose_file: 'Chọn tệp', + city: 'Thành phố', + clone: 'Nhân bản', + close: 'Đóng', + collapse: 'Thu gọn', collections: 'Bộ sưu tập', - length: 'Độ dài', - me: 'Tôi', - purge: 'Xóa tất cả dữ liệu', - delete_account: 'Xóa tài khoản', + company: 'Công ty', + company_placeholder: 'Nhập tên công ty của bạn', + company_size: 'Số lượng nhân viên', + configuration: 'Tuỳ chỉnh', confirm: 'Xác nhận', + confirm_password: 'Xác nhận mật khẩu', + confirm_password_placeholder: 'Nhập lại mật khẩu', confirmed: 'Đã xác nhận', - cardholder: 'Tên chủ thẻ', - cardholder_placeholder: 'Nguyen Van A', - first_name_placeholder: 'Van A', - last_name_placeholder: 'Nguyen', + continue: 'Tiếp tục', + copied: 'Sao chép vào bộ nhớ tạm', + copy: 'Sao chép', + country: 'Quốc gia', + created: 'Ngày tạo', + created_date: 'Ngày tạo', + cystack_address: 'Địa chỉ: Tân Hồng Hà Complex, 317 Trường Chinh, Thanh Xuân, Hà Nội', + decline: 'Từ chối', + delete: 'Xóa', + delete_account: 'Xóa tài khoản', + disable: 'Vô hiệu hóa', + discount: 'Giảm', + dob: 'Ngày sinh', + done: 'Hoàn tất', + dr: 'Giáo sư', + duration: 'Chu kỳ', + edit: 'Chỉnh sửa', email: 'Email', email_address: 'Địa chỉ email', email_placeholder: 'Nhập địa chỉ email của bạn', - name: 'Họ và tên', - address: 'Địa chỉ', - address_placeholder: 'Nhập địa chỉ của bạn', - company: 'Công ty', - company_size: 'Số lượng nhân viên', - company_placeholder: 'Nhập tên công ty của bạn', - phone: 'Số điện thoại', - phone_placeholder: 'Nhập số điện thoại', - city: 'Thành phố', - state: 'Tỉnh/Tiểu bang', - zip: 'Mã bưu chính', - country: 'Quốc gia', - cancel: 'Hủy bỏ', - save: 'Lưu', + enable: 'Kích hoạt', + error: 'Lỗi', + expired: 'Hết hạn', + failed: 'Thất bại', + features: 'Tính năng', + female: 'Nữ', + first_name: 'Tên', + first_name_placeholder: 'Van A', + folder: 'Thư mục', folder_name: 'Tên Thư mục', + fullname: 'Họ tên', + get_share_link: 'Chia sẻ qua liên kết', + go_to_website: 'Đi tới trang web', + good: 'Tốt', group_name: 'Tên Nhóm', - ownership: 'Quyền sở hữu', - master_password: 'Master Password', - joined: 'Tham gia lúc', - close: 'Đóng', - status: 'Trạng thái', - amount: 'Số lượng', - duration: 'Chu kỳ', - yearly: 'Gói 1 năm', - monthly: 'Gói 1 tháng', + groups: 'Nhóm', half_yearly: 'Gói 6 tháng', - created_date: 'Ngày tạo', - plan: 'Gói', - go_to_website: 'Đi tới trang web', - accept: 'Đồng ý', - reject: 'Từ chối', - shared_with_you: 'Được chia sẻ với tôi', - reinvite: 'Gửi lại lời mời', - request_access: 'Yêu cầu truy cập', - view: 'Xem', - takeover: 'Chiếm quyền', - view_item: 'Xem mục', - yes: 'Có', - no: 'Không', - search_placeholder: 'Tìm kiếm ...', - owner: 'Người sở hữu', - user: 'Người dùng', - type: 'Loại', - share_type: 'Quyền hạn', - actions: 'Hành động', - sign_up: 'Đăng ký', - organization: 'Tổ chức', + have_code: 'Có mã xác thực', + in_app_share: 'Chia sẻ nội bộ', + invite: 'Mời', + issue: 'vấn đề', item_name: 'Tên mục', - all_items: 'Tất cả', - add_new: 'Thêm mới', - view_folder: 'Xem thư mục', + job_title: 'Chức vụ (không bắt buộc)', + job_title_placeholder: 'Chức vụ của bạn', + joined: 'Tham gia lúc', + last_name: 'Họ', + last_name_placeholder: 'Nguyen', + learn_more: 'Tìm hiểu thêm', + length: 'Độ dài', + lock: 'Khóa', + login: 'Đăng nhập', + logout: 'Đăng xuất', + male: 'Nam', manage_plans: 'Quản lý gói', - decline: 'Từ chối', - unlimited: 'Không giới hạn', - select: 'Chọn', + master_password: 'Master Password', + me: 'Tôi', + month: 'tháng', + monthly: 'Gói 1 tháng', + move_folder: 'Di chuyển thư mục', mr: 'Ông', mrs: 'Bà', ms: 'Chị', - dr: 'Giáo sư', - see_all: 'Xem tất cả', - collapse: 'Thu gọn', - you: 'Bạn', - terms: 'Điều khoản', - privacy_policy: 'Chính sách', - cystack_address: 'Địa chỉ: Tân Hồng Hà Complex, 317 Trường Chinh, Thanh Xuân, Hà Nội', - release_notes: 'Release Notes', - first_name: 'Tên', - last_name: 'Họ', - work_email: 'Email công ty', - work_email_placeholder: 'Email công ty', + name: 'Họ và tên', + nationality: 'Quốc tịch', new_password: 'Mật khẩu mới', new_password_placeholder: 'Nhập mật khẩu mới', - confirm_password: 'Xác nhận mật khẩu', - confirm_password_placeholder: 'Nhập lại mật khẩu', - job_title: 'Chức vụ (không bắt buộc)', - job_title_placeholder: 'Chức vụ của bạn', - no_credit_card: 'Không yêu cầu thẻ.', - proceed: 'Tiếp tục', - month: 'tháng', - year: 'năm', - select_an_option: 'Chọn', next: 'Tiếp', - back: 'Quay lại', - done: 'Hoàn tất', - created: 'Ngày tạo', - issue: 'vấn đề', - good: 'Tốt', + no: 'Không', + no_credit_card: 'Không yêu cầu thẻ.', + note: 'Ghi chú', ok: 'Ok', - configuration: 'Tuỳ chỉnh', - skip: 'Bỏ qua', - active: 'Đang hoạt động', - male: 'Nam', - female: 'Nữ', + onetime: 'Gói trọn đời', + only: 'Chỉ', + or: 'hoặc', + organization: 'Tổ chức', other: 'Khác', - secret_key: 'Khóa bí mật', - enable: 'Kích hoạt', - disable: 'Vô hiệu hóa', + owner: 'Người sở hữu', + ownership: 'Quyền sở hữu', + password: 'Mật khẩu', + permanently_delete: 'Xóa vĩnh viễn', + phone: 'Số điện thoại', + phone_placeholder: 'Nhập số điện thoại', + plan: 'Gói', previous: 'Quay lại', - authentication_app: 'Ứng dụng xác thực', - authentication_email: 'Email xác thực', - have_code: 'Có mã xác thực', - or: 'hoặc', - approve: 'Duyệt', - totp: 'TOTP', - apply: 'Áp dụng', - discount: 'Giảm', - learn_more: 'Tìm hiểu thêm', - features: 'Tính năng', - accounts: 'tài khoản | tài khoản', price: 'Giá', - see_more: 'Xem thêm', - only: 'Chỉ', - total: 'Tổng', privacy: 'Chính sách bảo mật', + privacy_policy: 'Chính sách', + proceed: 'Tiếp tục', + purge: 'Xóa tất cả dữ liệu', + quick_share: 'Chia sẻ nhanh', + reinvite: 'Gửi lại lời mời', + reject: 'Từ chối', + release_notes: 'Release Notes', + remove: 'Xóa', + rename: 'Đổi tên', + request_access: 'Yêu cầu truy cập', + restore: 'Khôi phục', + save: 'Lưu', + search_placeholder: 'Tìm kiếm ...', + secret_key: 'Khóa bí mật', + see_all: 'Xem tất cả', + see_more: 'Xem thêm', + select: 'Chọn', + select_an_option: 'Chọn', + share: 'Chia sẻ', + share_type: 'Quyền hạn', + shared_with_you: 'Được chia sẻ với tôi', + sign_up: 'Đăng ký', + skip: 'Bỏ qua', + state: 'Tỉnh/Tiểu bang', + status: 'Trạng thái', + submit: 'Gửi', subscribe: 'Đăng ký', - agree_terms: 'Tôi đồng ý với Điều khoảnChính sách', - expired: 'Hết hạn', - choose_file: 'Chọn tệp', - onetime: 'Gói trọn đời', - submit: 'Gửi' + success: 'Thành công', + takeover: 'Chiếm quyền', + terms: 'Điều khoản', + total: 'Tổng', + totp: 'TOTP', + type: 'Loại', + unlimited: 'Không giới hạn', + update: 'Cập nhật', + upgrade: 'Nâng cấp', + user: 'Người dùng', + username: 'Tên tài khoản', + users: 'Người dùng', + verify: 'Xác thực', + view: 'Xem', + view_folder: 'Xem thư mục', + view_item: 'Xem mục', + warning: 'Cảnh báo', + work_email: 'Email công ty', + work_email_placeholder: 'Email công ty', + year: 'năm', + yearly: 'Gói 1 năm', + yes: 'Có', + you: 'Bạn', + zip: 'Mã bưu chính' }, sidebar: { all: 'Tất cả', @@ -1747,7 +1747,7 @@ module.exports = { text: 'Tạo tài khoản' }, { - text: 'Đăng ký Premium trọn đời' + text: 'Đăng ký gói trọn đời' } ], image: 'bg-img_vi.png' @@ -2551,7 +2551,7 @@ module.exports = { desc: 'Giá ngày càng thấp hơn khi Locker là', desc_colored: 'Trình quản lý mật khẩu duy nhất được tích hợp với Email ẩn danh', lifetime: { - get: 'Sở hữu gói Lifetime Premium chỉ với', + get: 'Sở hữu gói Lifetime chỉ từ', pay_once: 'Mua một lần, dùng vĩnh viễn!', buy_now: 'Mua ngay' }, @@ -5539,7 +5539,8 @@ module.exports = { duration: 'Thời gian', unlimited: 'Trọn đời', desc1: 'Bạn chỉ cần thanh toán một lần duy nhất một lần cho gói Đăng ký trọn đời này.', - desc2: 'Locker đảm bảo hoàn lại tiền trong vòng 30 ngày kể từ ngày mua vì bất kỳ lý do gì. Hãy liên hệ contact@locker.io để tiến hành yêu cầu hoàn tiền hoặc để được hỗ trợ thêm.' + desc2: 'Locker đảm bảo hoàn lại tiền trong vòng 30 ngày kể từ ngày mua vì bất kỳ lý do gì. Hãy liên hệ contact@locker.io để tiến hành yêu cầu hoàn tiền hoặc để được hỗ trợ thêm.', + choose_subscription: 'Chọn gói đăng ký' } } }, diff --git a/src/renderer/pages/lifetime/index.vue b/src/renderer/pages/lifetime/index.vue index 94dabdf9..851f854b 100644 --- a/src/renderer/pages/lifetime/index.vue +++ b/src/renderer/pages/lifetime/index.vue @@ -2,14 +2,10 @@
-
+

{{ $t('promo.lifetime.header.title') }}

-

- $69.99 - / {{ $t('promo.lifetime.common.lifetime') }} -

@@ -28,11 +24,34 @@
+ +
+

+ {{ $t('promo.lifetime.header.choose_subscription') }} +

+ +
+ + Lifetime Premium (1 {{ $t('common.user') }}) + +
+ +
+ + Lifetime Family (6 {{ $t('common.users') }}) + +
+
+
+ +
-

Lifetime Premium

-

$69.99 USD

+

Price

+

+ ${{ result.price | formatNumber }} {{ result.currency }} +

@@ -68,9 +87,11 @@ v-model="form.promo_code" :placeholder="$t('data.plans.payment_step.enter_code')" class="mr-2" + @keyup.native.enter="!!form.promo_code && calcPrice()" /> @@ -87,7 +108,6 @@

${{ result.price | formatNumber }} {{ result.currency }}

-

$69.99 USD

@@ -342,7 +362,8 @@ export default { agreed: false, promo_code: '' }, - result: {} + result: {}, + selectedPlan: 'pm_lifetime_premium' } }, @@ -390,7 +411,8 @@ export default { !this.form.confirmPassword || !this.form.fullName || !this.form.agreed || - this.form.password !== this.form.confirmPassword + this.form.password !== this.form.confirmPassword || + !this.result.price ) } return !this.form.email @@ -405,8 +427,15 @@ export default { } }, + watch: { + selectedPlan () { + this.calcPrice() + } + }, + mounted () { this.$recaptcha.init() + this.calcPrice() }, methods: { @@ -426,11 +455,15 @@ export default { }, calcPrice: debounce(function () { + if (this.loadingCalc) { + return + } this.loadingCalc = true - const url = 'cystack_platform/pm/payments/calc' + this.result = {} + const url = 'cystack_platform/pm/lifetime/payments/calc' this.$axios .$post(url, { - plan_alias: 'pm_lifetime_premium', + plan_alias: this.selectedPlan, promo_code: this.form.promo_code, currency: 'USD' }) @@ -464,7 +497,8 @@ export default { email: this.form.email, token_card: tokenId, request_code: token, - promo_code: this.form.promo_code + promo_code: this.form.promo_code, + plan_alias: this.selectedPlan } if (this.needCreateAccount) { payload.full_name = this.form.fullName