| @@ -98,7 +98,7 @@ export default { | |||||
| generationSucceed: "Succeed", | generationSucceed: "Succeed", | ||||
| manuscriptText: "Manuscript", | manuscriptText: "Manuscript", | ||||
| generatingText: "The video is generating, Please wait a moment", | generatingText: "The video is generating, Please wait a moment", | ||||
| generationFailedText: "Video generation failed, you can click the button below to edit the generation again ,Error cause:", | |||||
| generationFailedText: "Video generation failed, you can click the button below to edit the generation again ", | |||||
| edit:'Edit' | edit:'Edit' | ||||
| }, | }, | ||||
| @@ -98,7 +98,7 @@ export default { | |||||
| generationSucceed: "生成成功", | generationSucceed: "生成成功", | ||||
| manuscriptText: "草稿", | manuscriptText: "草稿", | ||||
| generatingText: "视频正在生成中,请稍等哦", | generatingText: "视频正在生成中,请稍等哦", | ||||
| generationFailedText: "视频生成失败,您可以点击下方按钮重新编辑生成,错误原因:", | |||||
| generationFailedText: "视频生成失败,您可以点击下方按钮重新编辑生成", | |||||
| edit:'编辑' | edit:'编辑' | ||||
| }, | }, | ||||
| @@ -935,7 +935,8 @@ async function getPreviewAudio() { | |||||
| ); | ); | ||||
| } | } | ||||
| previewAudioUrl.value = res.data.data; | previewAudioUrl.value = res.data.data; | ||||
| document.getElementById("audio").play(); | |||||
| let audioA = document.getElementById("audio").play(); | |||||
| audioA.play(); | |||||
| } catch (error) { | } catch (error) { | ||||
| ElMessage.error( | ElMessage.error( | ||||
| lanChange.value == "zh-cn" | lanChange.value == "zh-cn" | ||||
| @@ -1439,6 +1440,11 @@ function createWS() { | |||||
| } | } | ||||
| // 点击发送需求 | // 点击发送需求 | ||||
| async function sendRequirement() { | async function sendRequirement() { | ||||
| // loading | |||||
| if (sendLoading.value) { | |||||
| return; | |||||
| } | |||||
| // 无需求时 | |||||
| if (!problemContent.value) { | if (!problemContent.value) { | ||||
| mySocket.close(); | mySocket.close(); | ||||
| return; | return; | ||||
| @@ -2132,9 +2138,7 @@ onUnmounted(() => { | |||||
| overflow: hidden; | overflow: hidden; | ||||
| transition: all 0.3s; | transition: all 0.3s; | ||||
| box-shadow: #00000026 2px 2px 2px 2px; | box-shadow: #00000026 2px 2px 2px 2px; | ||||
| &:hover { | |||||
| transform: translateY(-10px); | |||||
| } | |||||
| text-align: center; | text-align: center; | ||||
| margin-bottom: 20px; | margin-bottom: 20px; | ||||
| height: 100px; | height: 100px; | ||||
| @@ -2148,6 +2152,7 @@ onUnmounted(() => { | |||||
| width: 100%; | width: 100%; | ||||
| height: 100%; | height: 100%; | ||||
| opacity: 0; | opacity: 0; | ||||
| cursor: pointer; | |||||
| } | } | ||||
| } | } | ||||
| .musicList { | .musicList { | ||||
| @@ -2276,6 +2281,7 @@ onUnmounted(() => { | |||||
| background-color: #000; | background-color: #000; | ||||
| text-align: center; | text-align: center; | ||||
| line-height: 50px; | line-height: 50px; | ||||
| cursor: pointer; | |||||
| } | } | ||||
| } | } | ||||
| :deep(.el-tabs__item.is-active) { | :deep(.el-tabs__item.is-active) { | ||||
| @@ -134,7 +134,13 @@ | |||||
| ></video> | ></video> | ||||
| <div v-else class="insteadVideo"> | <div v-else class="insteadVideo"> | ||||
| {{ $t("myCreating." + presentItem.statusName + "Text") }} | {{ $t("myCreating." + presentItem.statusName + "Text") }} | ||||
| {{ presentItem.videoMsg }} | |||||
| <p v-if="lanChange == 'zh-cn'"> | |||||
| 错误原因: {{ presentItem.videoMsg }} | |||||
| </p> | |||||
| <p v-if="lanChange == 'en'"> | |||||
| Error cause: {{ presentItem.videoMsg }} | |||||
| </p> | |||||
| <!-- <span v-if="presentItem.videoStatus == 3">{{ | <!-- <span v-if="presentItem.videoStatus == 3">{{ | ||||
| presentItem.videoMsg | presentItem.videoMsg | ||||
| }}</span> --> | }}</span> --> | ||||
| @@ -639,10 +645,13 @@ onMounted(() => { | |||||
| } | } | ||||
| .insteadVideo { | .insteadVideo { | ||||
| font-size: 20px; | font-size: 20px; | ||||
| font-weight: 600; | |||||
| font-weight: 400; | |||||
| margin: 20px auto; | margin: 20px auto; | ||||
| text-align: center; | text-align: center; | ||||
| } | } | ||||
| p { | |||||
| font-weight: 700; | |||||
| } | |||||
| } | } | ||||
| .dialog-footer { | .dialog-footer { | ||||