feat(aigc): implement travel AIGC feature and clean up legacy assets

- Replace all local static AIGC assets with OSS hosted URLs to reduce bundle size
- Add travelAIGC command to ChatModel and update quick access menu to link to AIGC home
- Implement AIGC user consent flow with local storage persistence for compliance
- Refactor Discovery page layout, remove unused HeritageDiscoverySection component
- Update ChatTopNavBar to support dynamic navigation bar height based on system info
- Restructure ChatMainList layout for better discovery panel interaction
- Remove deprecated local asset files and clean up unused imports across codebase
This commit is contained in:
duanshuwen
2026-07-06 22:40:36 +08:00
parent bfda50e14a
commit 191ba48b9d
20 changed files with 268 additions and 383 deletions

16
src/constant/aigc.js Normal file
View File

@@ -0,0 +1,16 @@
import { currentClientType } from "@/constant/base";
const CLIENT_TYPE = currentClientType();
const AIGC_CONSENT_AGREED = `${CLIENT_TYPE}_AIGC_CONSENT_AGREED`;
export const getAigcConsentAgreed = () => {
return uni.getStorageSync(AIGC_CONSENT_AGREED);
};
export const setAigcConsentAgreed = (agreed = true) => {
return uni.setStorageSync(AIGC_CONSENT_AGREED, agreed);
};
export const removeAigcConsentAgreed = () => {
return uni.removeStorageSync(AIGC_CONSENT_AGREED);
};