From 4fca7c831acfb1bc32b1701f81d423e043754768 Mon Sep 17 00:00:00 2001 From: zhangyh Date: Mon, 17 Nov 2025 13:55:44 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E7=94=9F=E6=88=90=E6=97=B6=E6=8F=90?= =?UTF-8?q?=E7=A4=BA=E4=B8=8A=E4=BC=A0=E5=9B=BE=E7=89=87?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/component/home/tools/poseTransfer/index.vue | 11 +++++++---- src/lang/cn.ts | 2 ++ src/lang/en.ts | 5 ++++- 3 files changed, 13 insertions(+), 5 deletions(-) diff --git a/src/component/home/tools/poseTransfer/index.vue b/src/component/home/tools/poseTransfer/index.vue index 9d5bbcb5..aff4367b 100644 --- a/src/component/home/tools/poseTransfer/index.vue +++ b/src/component/home/tools/poseTransfer/index.vue @@ -441,7 +441,6 @@ export default defineComponent({ } } const openSetData = (designList: any) => { - console.log('重置页面------------') if (props.isDesignPage) { //标识design页面打开的tools data.fileList = designList @@ -518,7 +517,12 @@ export default defineComponent({ }, 200) } const getgenerate = async () => { - if (!data.selectImg.minioUrl) return message.info(t('ProductImg.jsContent2')) + if (videoType.value === 3 && !data.lastSelectImg.minioUrl) { + message.info(t('poseTransfer.NeedLastFrame')) + return + } + if (!data.selectImg.minioUrl) return message.info(t('poseTransfer.NeedFirstFrame')) + debugger if (data.isGenerate) return await new Promise((res, reject) => { Modal.confirm({ @@ -952,7 +956,6 @@ export default defineComponent({ lastFrameList.value = store.state.HomeStoreModule.uploadElement.filter( item => item.frameType === 'last' ) - console.log('fileList',data.fileList) // 更新 showFirstFrameList 中项的选中状态 showFirstFrameList.value.forEach((listItem: any) => { if (listItem.id == data.selectImg.id) { @@ -963,7 +966,7 @@ export default defineComponent({ }) }, { - immediate:true + immediate: true } ) diff --git a/src/lang/cn.ts b/src/lang/cn.ts index f574f91f..d3d0c1d3 100644 --- a/src/lang/cn.ts +++ b/src/lang/cn.ts @@ -295,6 +295,8 @@ export default { GeneratedVideo: '生成的视频', hint: '将这张图像转化为一张逼真、达到工作室水准的照片。在生活中真实存在的人', jsContent1: '生成视频预计需要三分钟,请问是否继续', + NeedFirstFrame:'请选择首帧图片', + NeedLastFrame:'请选择尾帧图片', SingleGarment: '专业产品摄影:服装展示于隐形模特上,模特不可见。完整保留设计细节——所有图案、颜色、质地及细节特征。', // 单品样衣 SingleChildTryOn: diff --git a/src/lang/en.ts b/src/lang/en.ts index bda82e84..5a8fe478 100644 --- a/src/lang/en.ts +++ b/src/lang/en.ts @@ -305,6 +305,8 @@ export default { GeneratedVideo: 'Generated Video', hint: 'Transform this image into a realistic, studio-quality photograph. To the real photo real people', jsContent1: 'Video generation will take approximately 3 minutes. Continue?', + NeedFirstFrame: 'Please select the first frame image', + NeedLastFrame: 'Please select the last frame image', SingleGarment: 'Professional product photo: garment on invisible mannequin, no model visible. Preserve exact design - all patterns, colors, textures, details.', // 单品样衣 SingleChildTryOn: @@ -332,7 +334,8 @@ export default { firstAndLastFramePlaceholder1: '[Camera Movement]', firstAndLastFrameText2: 'to follow the motion, under', firstAndLastFramePlaceholder2: '[Light]', - firstAndLastFrameText3: ', maintaining full consistency of model identity, styling, and outfit across all frames.', + firstAndLastFrameText3: + ', maintaining full consistency of model identity, styling, and outfit across all frames.', firstFrameText1: 'Set the', firstFramePlaceholder1: '[Scene]', firstFrameText2: ', where the model',