Commit Graph

783 Commits

Author SHA1 Message Date
duanshuwen
0883d2b9c9 refactor: replace rounded utility classes and clean up unused scss files
Removed unused text-align.scss, position.scss, and rounded.scss utility files along with their imports from scss/index.scss. Updated all existing uses of the rounded-* utility classes in vue components to use inline border-radius syntax like rounded-[10px] instead.
2026-07-24 21:46:42 +08:00
duanshuwen
5f06d8ef11 refactor: migrate legacy color classes to inline tailwind text utilities
Replace all usages of legacy `.color-*` and `.text-color-*` SCSS utility classes with inline Tailwind `text-[#hexcode]` arbitrary value classes. Remove the deprecated `src/static/scss/colors.scss` file, and fix minor formatting/indentation issues across multiple component files.
2026-07-24 21:38:17 +08:00
duanshuwen
01fdf80a72 refactor: replace custom line-height classes with tailwind leading utils
Remove the deprecated src/static/scss/line-height.scss custom utility file, and update all component template instances of line-height-* classes to use the equivalent tailwind leading-[xxpx] utilities. This standardizes line height styling across the codebase by using native tailwind classes instead of custom SCSS helpers.
2026-07-24 17:00:35 +08:00
duanshuwen
39b91a8d05 refactor: remove gap.scss and inline gap classes
delete the standalone gap.scss utility file, remove its import from src/static/scss/index.scss, and update all component templates to replace predefined gap-* classes with inline gap-[px] notation
2026-07-24 16:54:46 +08:00
duanshuwen
e174e3b726 style: remove redundant box-border utility classes
Remove the unnecessary box-border CSS class from component template class lists across the codebase, cleaning up styling without altering any component functionality.
2026-07-24 16:50:53 +08:00
duanshuwen
cb7054cd90 refactor: replace border-box with box-border and clean up unused scss
Remove the unused box-sizing.scss stylesheet and its import from the main SCSS index file.
Update all Vue component template class references from the custom border-box class to the
native box-border utility class to eliminate redundant custom CSS and align with the project's
utility class conventions.
2026-07-24 16:48:07 +08:00
duanshuwen
79b101978a style: replace legacy padding classes with inline pixel values
Remove the unused padding.scss stylesheet and its import from the main SCSS entrypoint. Update all legacy padding utility class names across every Vue component to use inline pixel-based utility classes (such as replacing `pl-12` with `pl-[12px]`). Also clean up extraneous whitespace and line breaks in component templates for improved readability.
2026-07-24 16:36:44 +08:00
duanshuwen
e57617d2c6 refactor: replace theme color utility classes with direct hex values
remove unused theme color background utility classes from background.scss,
swap all instances of bg-theme-color-50 and bg-theme-color-500 with their
corresponding hex values across vue components, and update bg-liner gradient
to use direct hex colors instead of theme variables
2026-07-24 16:03:00 +08:00
duanshuwen
aa0203819c refactor: convert legacy color classes to tailwind syntax
Replace all custom `bg-*` utility classes across Vue components with Tailwind's arbitrary hex color notation (e.g. `bg-[#f7f7f7]`). Remove redundant hardcoded background color definitions from src/static/scss/background.scss, clean up template formatting, and update gradient button styles to use direct hex values.
2026-07-24 15:56:35 +08:00
duanshuwen
d3d15b1a19 chore: remove unused SCSS and fix component styles
- remove unused z-index and word-break SCSS utility files and their imports from src/static/scss/index.scss
- standardize padding unit notation to [px] format in ChatQuickAccess component
- reformat long class attributes and clean up whitespace in GeneratorPhotoComponent
- fix trailing whitespace and formatting for the navigateTo call in GeneratorPhotoComponent
2026-07-24 15:36:06 +08:00
duanshuwen
4a30777ee0 chore: clean up unused legacy components and assets
remove deprecated unused component implementations, their image assets, prompt, README, demo and style sheet files
update AGENTS.md to remove references to the removed components and refine the project's style guidance
2026-07-24 15:28:10 +08:00
duanshuwen
8048050d02 feat: add weapp-tailwindcss integration for uni-app
Install required dependencies, configure PostCSS and Vite plugin, create global app.css entry file, import styles in main.js, and add postinstall patch script.
2026-07-24 11:54:55 +08:00
duanshuwen
72b7557ecf fix(record-card): set generator cost to 0 for task status 3 2026-07-23 23:27:21 +08:00
duanshuwen
8fae0ed483 fix(aigc detail): add safe area bottom padding
adjust page padding to avoid content overlapping with mobile gesture area
2026-07-23 22:45:06 +08:00
duanshuwen
18e85af78f refactor(TemplateCarousel): remove unnecessary swiper props
remove the unused skip-hidden-item-layout and easing-function attributes from the swiper component, and clean up prop formatting for the child TemplateCard
2026-07-23 22:26:14 +08:00
duanshuwen
2f9ede3993 feat(template-card): add media placeholder and smooth video fade-in
add gradient background media placeholder for empty states
update video to use 0.18s ease opacity fade-in transition
add videoReady state to track when video is ready to display
adjust z-indexes for correct media layer stacking
fix video rendering condition and add state reset watchers
update template media container background color
2026-07-23 22:10:24 +08:00
duanshuwen
3cc95e7f51 style(recharge): format template component props for better readability 2026-07-23 21:54:39 +08:00
duanshuwen
f21bd70b08 feat(aigc): add image preview and improve detail layout
- restructure aigc detail page flex layout to separate preview and control sections
- update ResultPreview styles to fill full width and height
- add click-to-preview functionality for result images
- add auto-hide delay and fix state management for GiftPointsToast component
- adjust video component handling for fullscreen display mode
2026-07-23 21:50:09 +08:00
duanshuwen
34711330bd feat(utils, payment): add execution lock utils and prevent duplicate payment requests
Add two new throttle utility methods: createAsyncThrottle and createExecutionLock for safe async operation locking. Update the existing throttle method's comment to clarify traditional timestamp usage. Replace DebounceUtils usage with ThrottleUtils.createExecutionLock in order footer and booking page payment handlers to prevent duplicate payments. Rewrite uni.requestPayment calls to use Promise wrapping for proper async handling, and add try/catch/finally blocks to ensure loading state is always cleaned up correctly. Fix template formatting and trailing commas across modified files.
2026-07-23 21:10:34 +08:00
duanshuwen
f71f28fe99 refactor(aigc): update aigc consent dialog and apis
- set developVersion to false for production build
- format api request calls for consistent readability
- simplify consent dialog template and remove unused styles
- update default consent text and add ruleClick emit event
- add new getUserAgreement api endpoint and export it
2026-07-23 21:04:54 +08:00
duanshuwen
d71bda5e0b feat(aigc): add user agreement page and update consent dialog
Add new AIGC user agreement page with scrollable markdown rendering, loading and retry states.
Register the new route in pages.json.
Restructure AigcConsentDialog's content into styled sections, and update its rule click handler to navigate directly to the new agreement page.
2026-07-23 20:45:30 +08:00
duanshuwen
021d1fc77d fix(gift-points-toast): update default credited points from 200 to 400 2026-07-23 20:38:58 +08:00
duanshuwen
13d019b191 feat(aigc): pass wechat login code to generator task requests
Refactor the shared wechat login code utility by moving it from the recharge service to a standalone module.
Add the sensitive request flag to the createAigcGeneratorTask POST API call.
Update the aigc detail and template use pages to fetch and pass the wechat login code when creating generation tasks.
Remove the redundant login code implementation from the recharge payment service.
2026-07-23 11:57:09 +08:00
duanshuwen
64c73ad6a6 fix(TopNavBar): update root page back navigation behavior
replace WeChat mini-program specific exit logic with uni.reLaunch to index page for consistent cross-platform behavior when at the root navigation stack
2026-07-22 22:13:42 +08:00
duanshuwen
14defcc5b7 feat(recharge): add full virtual recharge flow for aigc credits
- Replace legacy recharge API endpoints with new dedicated VirtualRechargeApi with sensitive request logging
- Implement pending order tracking, automatic payment reconciliation, and recovery for interrupted payments
- Overhaul recharge component logic to support both pre-defined package and custom amount recharge
- Fix currency price formatting to consistently display 2 decimal places for all monetary values
- Remove unused xiaoqi-avatar asset and related component imports
- Simplify Vite build asset naming configuration
- Switch application to test development mode
2026-07-22 16:17:16 +08:00
duanshuwen
2407a9d941 refactor(aigc): update carousel and video components
- rewrite template carousel from custom scroll to uni swiper
- add video loading, error, and replay states to result preview
- update template card styles and video/poster handling logic
- clean up unused CSS vars and remove unnecessary min-height on detail page
- fix video file regex and add video error recovery
2026-07-18 15:30:06 +08:00
duanshuwen
05edc5666c Merge branch 'home3.0' of https://git.nianxx.cn/zoujing/YGChatCS into aigc 2026-07-18 09:29:22 +08:00
duanshuwen
5fe3dd54b3 feat(aigc): add auto-redirect when generation completes
Add complete event to GeneratingProgressPanel that emits when task status is completed and progress reaches 100%. Add handler in the parent progress page to automatically navigate to task detail page when the complete event is triggered, and stop ongoing task detail polling. Also enhance media download handling in the detail page with proper WeChat mini-program file path handling, error wrapping, temporary file cleanup, and improved error reporting for download failures.
2026-07-17 23:33:12 +08:00
duanshuwen
9b19da2257 fix(GiftPointsToast): update default points to 200 2026-07-17 21:44:46 +08:00
duanshuwen
1a4b320dc5 feat: add aigc regenerate flow and improve task polling
Add reusable RegenerateConfirmPopup component. Implement full regeneration flow in AIGC detail page with balance checks, insufficient point prompt, task creation and progress page navigation. Refine progress page polling logic with lifecycle handling, duplicate request prevention and timer cleanup.
2026-07-17 21:36:08 +08:00
9506a9034a feat: 去掉探索服务 2026-07-17 21:24:14 +08:00
duanshuwen
b04e3a4613 feat(aigc): add shared work top bar and back fixes
- add leftAction prop to AigcTopBar to switch between back arrow and home icon
- pass source=sharedWork query param when reLaunching home from shared work page
- update home page to detect shared work source, adjust top bar and back behavior
- add CSS styling for home top bar icon
- update root page back handler to exit WeChat mini program
2026-07-17 09:29:38 +08:00
duanshuwen
767ecb197b refactor: simplify TopNavBar and update sharedWork back handling
remove leftAction prop and hardcode left icon type in TopNavBar
move home navigation logic out of TopNavBar to parent components
update sharedWork.vue to use new TopNavBar API and implement proper back handling
2026-07-17 08:48:07 +08:00
duanshuwen
dc12b8ba88 feat: update TopNavBar and shared work page navigation
Add leftAction prop to TopNavBar to support back or home left navigation actions, update left icon accordingly. Add optional chaining to shareDetail.templateName to prevent errors. Modify sharedWork page to use home left action and update back handler to use direct home reLaunch.
2026-07-16 22:45:15 +08:00
duanshuwen
cf723e5b93 fix(detail): implement proper recharge navigation
replace placeholder toast with actual recharge page navigation, and add a failure callback to show error toast on navigation fail
2026-07-16 22:32:41 +08:00
7ff5fa6933 Merge branch 'aigc' of https://git.nianxx.cn/zoujing/YGChatCS into home3.0 2026-07-16 22:21:17 +08:00
duanshuwen
f3b4fd04d0 feat(record-card): expand card clickable area
move view event emission from the action button to the root record card component, expanding the clickable area to let the entire card trigger the view event when actionText is present, improving user experience.
2026-07-16 22:16:58 +08:00
ccc927b89f Merge branch 'aigc' of https://git.nianxx.cn/zoujing/YGChatCS into home3.0 2026-07-16 22:14:28 +08:00
e75c83e592 feat: 添加呼叫热线 2026-07-16 22:14:10 +08:00
duanshuwen
0a136c3040 refactor(detail): extract date formatter and clean up complete time
add formatDateOnly utility to extract YYYY-MM-DD part from date strings, and refactor the complete time calculation to use this helper
2026-07-16 22:02:25 +08:00
duanshuwen
52b6722842 feat(aigc): add video save support and improve consent flow
- add support for saving both image and video AIGC generation results
- refactor ResultActions component to accept mediaType prop and use dynamic save button text
- remove AIGC consent dialog from ChatQuickAccess and implement it on AIGC home page
- add WeChat mini-program privacy authorization check before saving media
- create reusable AigcConsentDialog component with proper styling
2026-07-16 21:49:00 +08:00
duanshuwen
38dbf7afc8 fix(aigc): correct generated media preview handling
update ResultPreview component to use proper image and video result URLs
refine isVideo detection logic across detail and shared work pages
add pointer-events none to preview elements to avoid blocking user interactions
standardize media URL usage between AIGC detail and shared work components
2026-07-16 21:24:38 +08:00
bce3e5912f Merge branch 'aigc' of https://git.nianxx.cn/zoujing/YGChatCS into home3.0 2026-07-16 21:16:58 +08:00
39c4e75de5 feat: 路由跳转的优化 2026-07-16 21:16:48 +08:00
duanshuwen
487caf9dbe feat(shared-work): update page ui and navigation
add dynamic template name to top nav bar
set top nav background to white
adjust media container styles and image display mode
remove redundant is-video CSS class and gradient backgrounds
update action button to pill shape with white text
remove scroll-y prop from scroll container
fix scroll container layout and padding
2026-07-16 21:09:22 +08:00
duanshuwen
99151bca58 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
2026-07-16 20:34:01 +08:00
duanshuwen
67b1b78f1f feat(aigc): add shared work page and AIGC sharing
- add new shared work page to view shared AIGC generated images and videos
- add createAigcGeneratorTaskShare and getAigcGeneratorTaskShareDetail APIs
- update ResultActions component to add share preparation state and native share support
- remove deprecated SharePreviewPopup component and its associated styles
- update AIGC detail page to generate share keys and adjust native share metadata
- register the new shared work page in pages.json
2026-07-16 13:28:46 +08:00
duanshuwen
dcf67dedfc feat(aigc/detail): add share preview popup
create reusable SharePreviewPopup component for share preview
update ResultActions to emit share event instead of direct native share
add share preview flow in aigc detail page
update native share config with correct image and fallback title
2026-07-16 11:25:39 +08:00
23f8453868 Merge branch 'aigc' of https://git.nianxx.cn/zoujing/YGChatCS into home3.0 2026-07-16 09:11:01 +08:00
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