diff --git a/components.d.ts b/components.d.ts index 180d013..2b659d6 100644 --- a/components.d.ts +++ b/components.d.ts @@ -13,20 +13,22 @@ declare module '@vue/runtime-core' { Backup: typeof import('./src/components/arFrame/backup.vue')['default'] Backup2: typeof import('./src/components/arFrame/backup2.vue')['default'] Brand: typeof import('./src/components/brand/index.vue')['default'] + ChatComposer: typeof import('./src/views/jingdong/components/ChatComposer.vue')['default'] Constants: typeof import('./src/views/douyin/components/image-point-cloud/constants.js')['default'] DyNavBar: typeof import('./src/views/douyin/components/DyNavBar.vue')['default'] ElAlert: typeof import('element-plus/es')['ElAlert'] ElButton: typeof import('element-plus/es')['ElButton'] ElDialog: typeof import('element-plus/es')['ElDialog'] + ElIcon: typeof import('element-plus/es')['ElIcon'] ElImage: typeof import('element-plus/es')['ElImage'] ElInput: typeof import('element-plus/es')['ElInput'] - ElRadioButton: typeof import('element-plus/es')['ElRadioButton'] - ElRadioGroup: typeof import('element-plus/es')['ElRadioGroup'] ElTabPane: typeof import('element-plus/es')['ElTabPane'] ElTabs: typeof import('element-plus/es')['ElTabs'] + GenerationStage: typeof import('./src/views/jingdong/components/GenerationStage.vue')['default'] Gsplat: typeof import('./src/components/arFrame/gsplat.vue')['default'] Hint: typeof import('./src/components/hint/hint.vue')['default'] ImagePointCloud: typeof import('./src/views/douyin/components/ImagePointCloud.vue')['default'] + JdNavBar: typeof import('./src/views/jingdong/components/JdNavBar.vue')['default'] Loading: typeof import('./src/components/loading/index.vue')['default'] LogoCloudCache: typeof import('./src/views/douyin/components/image-point-cloud/logo-cloud-cache.js')['default'] MaskProcessor: typeof import('./src/views/douyin/components/image-point-cloud/mask-processor.js')['default'] @@ -36,6 +38,7 @@ declare module '@vue/runtime-core' { PointCloudSampler: typeof import('./src/views/douyin/components/image-point-cloud/point-cloud-sampler.js')['default'] PointCloudWait: typeof import('./src/views/douyin/components/PointCloudWait.vue')['default'] Renderer: typeof import('./src/views/douyin/components/image-point-cloud/webgl/renderer.js')['default'] + ResultCard: typeof import('./src/views/jingdong/components/ResultCard.vue')['default'] Shaders: typeof import('./src/views/douyin/components/image-point-cloud/webgl/shaders.js')['default'] State: typeof import('./src/views/douyin/components/image-point-cloud/state.js')['default'] SubjectOutline: typeof import('./src/views/douyin/components/image-point-cloud/subject-outline.js')['default'] @@ -44,10 +47,12 @@ declare module '@vue/runtime-core' { TextureManager: typeof import('./src/views/douyin/components/image-point-cloud/webgl/texture-manager.js')['default'] VanActionSheet: typeof import('vant/es')['ActionSheet'] VanAddressEdit: typeof import('vant/es')['AddressEdit'] + VanConfigProvider: typeof import('vant/es')['ConfigProvider'] VanDivider: typeof import('vant/es')['Divider'] VanIcon: typeof import('vant/es')['Icon'] VanList: typeof import('vant/es')['List'] VanLoading: typeof import('vant/es')['Loading'] + VanOverlay: typeof import('vant/es')['Overlay'] VanPullRefresh: typeof import('vant/es')['PullRefresh'] VanStepper: typeof import('vant/es')['Stepper'] VanUploader: typeof import('vant/es')['Uploader'] diff --git a/src/App.vue b/src/App.vue index eab1932..291d916 100644 --- a/src/App.vue +++ b/src/App.vue @@ -14,8 +14,13 @@ const { i18next, t } = useTranslation(); i18n.set(t); const route = useRoute() -/** 仅抖音页使用独立布局壳,避免影响 cartoon / badge 等页面 */ -const isDouyinRoute = computed(() => String(route.path || '').startsWith('/douyin')) +/** 各渠道独立布局壳,互不影响 */ +const shellClass = computed(() => { + const path = String(route.path || '') + if (path.startsWith('/douyin')) return 'app-shell app-shell--douyin' + if (path.startsWith('/jingdong')) return 'app-shell app-shell--jingdong' + return 'app-shell' +}) // 根据 i18next 语言获取对应的 Vant Locale function getVantLocale() { @@ -67,7 +72,7 @@ onMounted(() => {