diff --git a/frontend/src/components/poster/PosterStepPreview.vue b/frontend/src/components/poster/PosterStepPreview.vue index f67735d..cb2c829 100644 --- a/frontend/src/components/poster/PosterStepPreview.vue +++ b/frontend/src/components/poster/PosterStepPreview.vue @@ -1,16 +1,12 @@ diff --git a/frontend/src/components/poster/PosterStepTemplate.vue b/frontend/src/components/poster/PosterStepTemplate.vue index d046cb6..b0a888c 100644 --- a/frontend/src/components/poster/PosterStepTemplate.vue +++ b/frontend/src/components/poster/PosterStepTemplate.vue @@ -1,98 +1,189 @@ diff --git a/frontend/src/pages/PosterPage.vue b/frontend/src/pages/PosterPage.vue index 9d0259b..4cdbe91 100644 --- a/frontend/src/pages/PosterPage.vue +++ b/frontend/src/pages/PosterPage.vue @@ -11,7 +11,7 @@ - + @@ -29,6 +29,7 @@ const caseUploadId = ref(null) const selectedTemplateId = ref(null) const copyContent = ref(null) const aiRawContent = ref(null) +const selectedSize = ref('1024x1792') function onStep1Next(productId: string) { selectedProductId.value = productId @@ -40,10 +41,11 @@ function onStep2Next(id: number) { currentStep.value++ } -function onStep3Next(data: { templateId: number; copyContent: any; aiRawContent: any }) { +function onStep3Next(data: { templateId: number; copyContent: any; aiRawContent: any; size?: string }) { selectedTemplateId.value = data.templateId copyContent.value = data.copyContent aiRawContent.value = data.aiRawContent + if (data.size) selectedSize.value = data.size currentStep.value++ } @@ -51,7 +53,7 @@ function onStep3Next(data: { templateId: number; copyContent: any; aiRawContent: diff --git a/frontend/src/pages/components/ppt/PptResult.vue b/frontend/src/pages/components/ppt/PptResult.vue index 910400e..a00f021 100644 --- a/frontend/src/pages/components/ppt/PptResult.vue +++ b/frontend/src/pages/components/ppt/PptResult.vue @@ -1,44 +1,76 @@