Commit Graph

4 Commits

Author SHA1 Message Date
duanshuwen
ada88d7b20 feat(aigc): replace mock credit data with backend api fetch
add getCreditLedgerPage API function to fetch credit ledger records
remove local mock ledger data file
update LedgerCard component to adapt to new API response structure
rewrite points details page to use z-paging with empty and error handling
2026-07-16 09:04:04 +08:00
duanshuwen
efe97452e0 feat(aigc): add task detail and image save flow
- Replace global AigcRecord store with task ID URL parameters instead of store state
- Integrate real task detail API to replace static mock result data
- Update ResultActions component with loading state, disabled styles, and native uni-app share support
- Add full image save flow with album permission checking and error handling
- Clean up unused files including the aigcRecord store and static result data
- Adjust RecordList padding and paging component text for better UX
2026-07-13 22:14:50 +08:00
duanshuwen
29bf6afe55 feat(recharge): add recharge package selection flow
- add new getRechargeOptions API endpoint in AigcApi
- replace CustomAmountCard with RechargePackageList component
- implement fetching and selection logic for recharge packages
- update UI to use correct recharge data fields
- add validation for selected recharge option
2026-07-13 10:27:03 +08:00
duanshuwen
cadddb5c3f feat(aigc): fully integrate backend API and replace mock data
- Replace all static mock data with real backend API calls for templates, generation tasks, credit balance and recharge
- Remove deprecated mock data files including templates.js, versionOptions.js, records.js and packages.js
- Add useCurrentCredit composable for fetching and managing user credit balance
- Update all components to align with new backend data shapes (e.g. templateItemId instead of id)
- Add loading and disabled states for interactive UI elements
- Implement full WeChat mini-program payment flow for credit recharge
- Fix template and record card UI styling and media handling
- Set developVersion flag to true for testing environment
2026-07-12 21:14:22 +08:00