fix: 添加ai生成水印

This commit is contained in:
iHeyTang 2025-09-10 15:48:41 +08:00
parent 9e39ca842c
commit 49ec32e2ac
5 changed files with 24 additions and 15 deletions

View File

@ -72,7 +72,6 @@
} }
.download-tip { .download-tip {
color: #fff;
font-size: 24rpx; font-size: 24rpx;
opacity: 0.8; opacity: 0.8;
} }

View File

@ -123,12 +123,14 @@
/* 模板名称悬浮 - 图片底部 */ /* 模板名称悬浮 - 图片底部 */
.name-overlay { .name-overlay {
position: absolute; position: absolute;
bottom: 24rpx; bottom: 12rpx;
left: 24rpx; left: 24rpx;
right: 24rpx; right: 24rpx;
z-index: 4; z-index: 4;
display: flex; display: flex;
flex-direction: column;
justify-content: center; justify-content: center;
align-items: center;
} }
.name-badge { .name-badge {
@ -143,6 +145,7 @@
text-shadow: 0 2rpx 4rpx rgba(0, 0, 0, 0.3); text-shadow: 0 2rpx 4rpx rgba(0, 0, 0, 0.3);
text-align: center; text-align: center;
max-width: 90%; max-width: 90%;
width: fit-content;
overflow: hidden; overflow: hidden;
text-overflow: ellipsis; text-overflow: ellipsis;
white-space: nowrap; white-space: nowrap;
@ -165,6 +168,8 @@
object-fit: cover; object-fit: cover;
display: block; display: block;
border-radius: 32rpx; border-radius: 32rpx;
position: relative;
z-index: 2;
/* 性能优化:启用硬件加速 */ /* 性能优化:启用硬件加速 */
transform: translateZ(0); transform: translateZ(0);
/* 防止视频闪烁 */ /* 防止视频闪烁 */
@ -183,10 +188,6 @@
border-radius: 32rpx; border-radius: 32rpx;
} }
.single-video {
position: relative;
z-index: 2;
}
/* 视频样式 */ /* 视频样式 */
.full-video { .full-video {
@ -201,3 +202,10 @@
backface-visibility: hidden; backface-visibility: hidden;
} }
.watermark-text {
color: rgba(255, 255, 255, 0.5);
font-size: 20rpx;
font-weight: 400;
text-align: center;
}

View File

@ -105,6 +105,7 @@ export default function TemplateCard({ template, onClick }: TemplateCardProps) {
<Text className='name-badge'> <Text className='name-badge'>
{template.name} {template.name}
</Text> </Text>
<Text className='watermark-text'>AI生成</Text>
</View> </View>
</View> </View>
) : ( ) : (
@ -175,6 +176,7 @@ export default function TemplateCard({ template, onClick }: TemplateCardProps) {
<Text className='name-badge'> <Text className='name-badge'>
{template.name} {template.name}
</Text> </Text>
<Text className='watermark-text'>AI生成</Text>
</View> </View>
</View> </View>
</View> </View>

View File

@ -1,7 +1,7 @@
.result-page { .result-page {
width: 100%; width: 100%;
height: 100vh; height: 100vh;
background: black; background: linear-gradient(180deg, #f8f9fa 0%, #e9ecef 100%);
display: flex; display: flex;
flex-direction: column; flex-direction: column;
} }

View File

@ -336,7 +336,7 @@ const ResultPage: React.FC = () => {
onImageToVideo={handleImageToVideo} onImageToVideo={handleImageToVideo}
loading={adLoading} loading={adLoading}
adAvailable={adAvailable} adAvailable={adAvailable}
showImageToVideo={mediaType === 'image'} showImageToVideo={false}
imageToVideoLoading={loading} imageToVideoLoading={loading}
/> />
</View> </View>