From ad0a90e54544a2866c118f846eead09880f285e9 Mon Sep 17 00:00:00 2001 From: zhangyahui Date: Mon, 9 Mar 2026 15:48:02 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E5=8F=AA=E6=8E=A5=E5=8F=97Mp4=E6=96=87?= =?UTF-8?q?=E4=BB=B6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/lang/en.ts | 6 +++--- src/lang/zh-cn.ts | 4 ++-- src/views/AwardPage/contestants.vue | 4 ++-- 3 files changed, 7 insertions(+), 7 deletions(-) diff --git a/src/lang/en.ts b/src/lang/en.ts index 7e08397..0f85017 100644 --- a/src/lang/en.ts +++ b/src/lang/en.ts @@ -143,7 +143,7 @@ export default { uploadSuccess: 'Uploaded Successfully', uploadFailed: 'Upload failed', pdfFileTip: 'PDF file, max 20MB', - videoFileTip: 'Video file (MP4, MOV), 1080p, max 100MB', + videoFileTip: 'Video file (MP4), 1080p, max 100MB', wechatTitle: 'WeChat Official Account', wechatDesc: 'Scan the QR code in WeChat' }, @@ -195,7 +195,7 @@ export default { // 视频上传 uploadVideoTitle: 'How will you use AiDA in your design process?', clickToUploadVideo: 'Click to upload or drag and drop', - videoFileLimit: 'Video file (MP4, MOV), 1080p, max 100MB', + videoFileLimit: 'Video file (MP4), 1080p, max 100MB', // 条款与条件 termsAndConditions: 'Terms & Conditions', conditionFirst: 'I confirm that all submitted work is original and created by me.', @@ -240,7 +240,7 @@ export default { pleaseUploadPdf: 'Please upload your PDF', pleaseUploadVideo: 'Please upload your video', uploadPdfOnly: 'Please upload a PDF file only.', - uploadVideoOnly: 'Please upload a MP4 or MOV file only.', + uploadVideoOnly: 'Please upload a MP4 file only.', fileSizeExceeds: 'File size exceeds {sizeLimit} limit. Please upload a smaller file.', videoDurationExceeds: 'Video duration exceeds 60 seconds limit. Please upload a shorter video.', uploadFailed: 'Upload failed' diff --git a/src/lang/zh-cn.ts b/src/lang/zh-cn.ts index 77efdbd..1d43c7c 100644 --- a/src/lang/zh-cn.ts +++ b/src/lang/zh-cn.ts @@ -133,7 +133,7 @@ export default { uploadSuccess: '上传成功', uploadFailed: '上传失败', pdfFileTip: 'PDF文件,不超过20MB', - videoFileTip: '视频文件(MP4, MOV),1080p,不超过100MB', + videoFileTip: '视频文件(MP4),1080p,不超过100MB', wechatTitle: '微信公众号', wechatDesc: '请使用微信扫描二维码' }, @@ -226,7 +226,7 @@ export default { pleaseUploadPdf: '请上传您的PDF文件', pleaseUploadVideo: '请上传您的视频文件', uploadPdfOnly: '请仅上传 PDF 文件。', - uploadVideoOnly: '请仅上传 MP4 或 MOV 文件。', + uploadVideoOnly: '请仅上传 MP4 文件。', fileSizeExceeds: '文件大小超过 {sizeLimit} 限制。请上传较小的文件。', videoDurationExceeds: '视频时长不可超过60秒', uploadFailed: '上传失败' diff --git a/src/views/AwardPage/contestants.vue b/src/views/AwardPage/contestants.vue index 3f6202b..1014bd2 100644 --- a/src/views/AwardPage/contestants.vue +++ b/src/views/AwardPage/contestants.vue @@ -215,7 +215,7 @@ :customRequest="handleUploadVideo" :beforeUpload="beforeUploadVideo" @remove="handleRemoveFile('video')" - accept=".mp4,.mov" + accept=".mp4" > { errorMessage = t('AwardApply.uploadPdfOnly') } else if (type === 'video') { maxSize = 100 * 1024 * 1024 // 100MB - allowedExtensions = ['mp4', 'mov'] + allowedExtensions = ['mp4'] allowedMimeTypes = ['video/mp4', 'video/quicktime'] errorMessage = t('AwardApply.uploadVideoOnly') } else {