feat(recharge): add points recharge agreement flow

- add new API request for fetching points top up agreement content
- update recharge footer with agreement checkbox and protocol link
- add agreement popup modal to display full agreement text
- add payment pre-validation to enforce agreement acceptance before payment
- handle loading and error states for agreement retrieval
- adjust recharge footer layout to accommodate new UI elements
This commit is contained in:
duanshuwen
2026-07-16 20:34:01 +08:00
parent 67b1b78f1f
commit 99151bca58
4 changed files with 177 additions and 15 deletions

View File

@@ -36,6 +36,10 @@ function getCreditLedgerPage(args) {
return request.post("/hotelBiz/credit/ledger/page", args);
}
function getPointsTopUpAgreement() {
return request.get("/hotelBiz/mainScene/pointsTopUpAgreement", {});
}
function createAigcGeneratorTaskShare(args) {
return request.post("/hotelBiz/aigcGeneratorTask/share/create", args);
}
@@ -54,6 +58,7 @@ export {
getRechargeOptions,
rechargeCredit,
getCreditLedgerPage,
getPointsTopUpAgreement,
createAigcGeneratorTaskShare,
getAigcGeneratorTaskShareDetail,
};