Commit 08042fa7 authored by 周成波's avatar 周成波

补充en版本功能,但不大改

parent 63fa9cb1
...@@ -78,7 +78,7 @@ export const useManyValues = () => { ...@@ -78,7 +78,7 @@ export const useManyValues = () => {
const en_vertical_data = { const en_vertical_data = {
task_id: "20240225222232784", task_id: "20240225222232784",
chatgpt_prompt: `Generate a 50 words science fiction short story, Avatar series`, chatgpt_prompt: `Generate a 50 words science fiction short story, Avatar series`,
chatgpt_answer: ``, chatgpt_answer: `In a futuristic world, humans have developed the ability to upload their consciousness into virtual avatars. These avatars explore distant planets, collecting information for their creators. One day, a group of avatars stumble upon a planet inhabited by sentient beings who are also able to upload their consciousness. A new alliance is formed.`,
chatgpt_answer_roles: [], chatgpt_answer_roles: [],
adapt_result_json: [], adapt_result_json: [],
final_video: ``, final_video: ``,
......
...@@ -52,8 +52,9 @@ const bgm_volume = ref(0.3) ...@@ -52,8 +52,9 @@ const bgm_volume = ref(0.3)
const pwdCheckDialogVisible = ref(false); const pwdCheckDialogVisible = ref(false);
const pwdCheckValue = ref("") const pwdCheckValue = ref("")
const sub_font_color = ref("#FFFF00") const sub_font_color = ref("#FFFF00")
const sub_bg_color = ref()
const sub_font_size = ref(25) const sub_font_size = ref(25)
const sub_position = ref(0.4) const sub_position = ref(0.3)
onMounted(() => { onMounted(() => {
...@@ -372,6 +373,10 @@ const onGenVideo = () => { ...@@ -372,6 +373,10 @@ const onGenVideo = () => {
sub_font_size: String(sub_font_size.value), sub_font_size: String(sub_font_size.value),
sub_font_color: sub_font_color.value, sub_font_color: sub_font_color.value,
sub_position: String(1 - sub_position.value), sub_position: String(1 - sub_position.value),
sub_bg_color: "",
}
if (sub_bg_color.value) {
video_param.sub_bg_color = sub_bg_color.value;
} }
text2videoService text2videoService
.submitGenVideo(video_param) .submitGenVideo(video_param)
...@@ -489,7 +494,7 @@ const onPwdCheckDialog = () => { ...@@ -489,7 +494,7 @@ const onPwdCheckDialog = () => {
<template> <template>
<main class="home-container"> <main class="home-container">
<!-- 标题 --> <!-- 标题 -->
<el-divider content-position="left">text2video</el-divider> <el-divider content-position="left">text2video for En</el-divider>
<el-form :model="form" label-width="114px" v-loading="loading"> <el-form :model="form" label-width="114px" v-loading="loading">
<el-form-item> <el-form-item>
<div> <div>
...@@ -666,6 +671,8 @@ const onPwdCheckDialog = () => { ...@@ -666,6 +671,8 @@ const onPwdCheckDialog = () => {
<div v-if="JSON.parse(form.if_need_subtitle.toLowerCase())"> <div v-if="JSON.parse(form.if_need_subtitle.toLowerCase())">
<span style="margin-left:30px;">字体颜色:</span> <span style="margin-left:30px;">字体颜色:</span>
<el-color-picker v-model="sub_font_color"/> <el-color-picker v-model="sub_font_color"/>
<span style="margin-left:30px;">字体背景:</span>
<el-color-picker v-model="sub_bg_color" />
<span style="margin-left:30px;">字体大小:</span> <span style="margin-left:30px;">字体大小:</span>
<el-input-number v-model="sub_font_size" :min="1" :max="50" controls-position="right" /> <el-input-number v-model="sub_font_size" :min="1" :max="50" controls-position="right" />
<span style="margin-left:30px;">在屏幕上的位置:</span> <span style="margin-left:30px;">在屏幕上的位置:</span>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment