From a557319b3e5fa49b9aff2adf8df9bd7aa8792dec Mon Sep 17 00:00:00 2001 From: wong <106998207@qq.com> Date: Sat, 6 Dec 2025 17:13:07 +0800 Subject: [PATCH] =?UTF-8?q?=E7=AE=97=E5=8A=9B=E5=8A=9F=E8=83=BD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../DeviceSelection/selectionPopup.tsx | 14 +- Cunkebao/src/components/PopuLayout/footer.tsx | 18 +- .../pages/mobile/mine/content/form/index.tsx | 156 +- .../mobile/mine/recharge/buy-power/api.ts | 4 +- .../pages/mobile/mine/recharge/index/api.ts | 42 + .../mine/recharge/index/index.module.scss | 1512 ++++++++++--- .../mobile/mine/recharge/index/index.tsx | 1952 ++++++++++++++--- .../mobile/mine/recharge/usage-records/api.ts | 1 + .../wechat-accounts/detail/detail.module.scss | 26 +- .../mobile/scenarios/plan/list/index.tsx | 28 +- .../controller/TokensRecordController.php | 22 + .../common/controller/PaymentService.php | 3 +- .../cunkebao/controller/TokensController.php | 57 +- 13 files changed, 3100 insertions(+), 735 deletions(-) diff --git a/Cunkebao/src/components/DeviceSelection/selectionPopup.tsx b/Cunkebao/src/components/DeviceSelection/selectionPopup.tsx index 8dbac0ad..0485f58d 100644 --- a/Cunkebao/src/components/DeviceSelection/selectionPopup.tsx +++ b/Cunkebao/src/components/DeviceSelection/selectionPopup.tsx @@ -121,13 +121,13 @@ const SelectionPopup: React.FC = ({ } } else { // 多选模式:原有的逻辑 - if (tempSelectedOptions.some(v => v.id === device.id)) { - setTempSelectedOptions( - tempSelectedOptions.filter(v => v.id !== device.id), - ); - } else { - const newSelectedOptions = [...tempSelectedOptions, device]; - setTempSelectedOptions(newSelectedOptions); + if (tempSelectedOptions.some(v => v.id === device.id)) { + setTempSelectedOptions( + tempSelectedOptions.filter(v => v.id !== device.id), + ); + } else { + const newSelectedOptions = [...tempSelectedOptions, device]; + setTempSelectedOptions(newSelectedOptions); } } }; diff --git a/Cunkebao/src/components/PopuLayout/footer.tsx b/Cunkebao/src/components/PopuLayout/footer.tsx index a9d09855..3dbf8a52 100644 --- a/Cunkebao/src/components/PopuLayout/footer.tsx +++ b/Cunkebao/src/components/PopuLayout/footer.tsx @@ -34,15 +34,15 @@ const PopupFooter: React.FC = ({ {/* 分页栏 */}
{onSelectAll && ( -
- onSelectAll(e.target.checked)} - className={style.selectAllCheckbox} - > - 全选当前页 - -
+
+ onSelectAll(e.target.checked)} + className={style.selectAllCheckbox} + > + 全选当前页 + +
)}