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:
@@ -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,
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user