|
|
@@ -251,7 +251,6 @@ |
|
|
|
<!-- <span>GPT</span> --> |
|
|
|
<img src="../../assets/img/gpttotext.png" alt="" /> |
|
|
|
</div> |
|
|
|
|
|
|
|
<el-tabs @tab-click="clickTab4" type="border-card" class="tabs"> |
|
|
|
<!-- ----------------------------- 1 --> |
|
|
|
<el-tab-pane :label="$t('createVideo.typeScript')"> |
|
|
@@ -301,10 +300,11 @@ |
|
|
|
:placeholder="$t('createVideo.select')" |
|
|
|
style="width: 100%" |
|
|
|
> |
|
|
|
<!-- :label="lanChange == 'zh-cn' ? item.chineseName : item.name" --> |
|
|
|
<el-option |
|
|
|
v-for="item in languageOptions" |
|
|
|
:key="item.value" |
|
|
|
:label="item.name" |
|
|
|
:label="lanChange == 'zh-cn' ? item.chineseName : item.name" |
|
|
|
:value="item.id" |
|
|
|
> |
|
|
|
<img |
|
|
@@ -316,7 +316,9 @@ |
|
|
|
vertical-align: text-top; |
|
|
|
" |
|
|
|
/> |
|
|
|
<span style="line-height: 20px">{{ item.name }}</span> |
|
|
|
<span style="line-height: 20px">{{ |
|
|
|
lanChange == "zh-cn" ? item.chineseName : item.name |
|
|
|
}}</span> |
|
|
|
</el-option> |
|
|
|
</el-select> |
|
|
|
<p>{{ $t("createVideo.voices") }}</p> |
|
|
@@ -723,7 +725,7 @@ const overLoadUser = ref(false); //禁用个人相册加载更多 |
|
|
|
//系统相册触底加载更多 |
|
|
|
function loadMoreAiFaceSystem() { |
|
|
|
pageNumSystem.value += 1; |
|
|
|
personPhotoList(pageNumSystem.value, 10, 1) |
|
|
|
personPhotoList(pageNumSystem.value, 20, 1) |
|
|
|
.then((res) => { |
|
|
|
AiFaceList.value.push(...res.data.list); |
|
|
|
if (res.data.list.length == 0) { |
|
|
@@ -738,7 +740,7 @@ function loadMoreAiFaceSystem() { |
|
|
|
//个人相册触底加载更多 |
|
|
|
function loadMoreAiFaceUser() { |
|
|
|
pageNumUser.value += 1; |
|
|
|
personPhotoUserListList(pageNumUser.value, 10, 3) |
|
|
|
personPhotoUserListList(pageNumUser.value, 20, 3) |
|
|
|
.then((res) => { |
|
|
|
if (res.data.list.length == 0) { |
|
|
|
overLoadUser.value = true; |
|
|
@@ -927,19 +929,18 @@ const language = ref(""); //选择的语言 |
|
|
|
const sound = ref(""); // 选择的声音 |
|
|
|
const soundStyle = ref(""); //选择的风格 |
|
|
|
// 语言下拉框内容 |
|
|
|
const languageOptions = ref([ |
|
|
|
{ |
|
|
|
id: "0", |
|
|
|
name: "中文", |
|
|
|
}, |
|
|
|
{ |
|
|
|
id: "1", |
|
|
|
name: "English", |
|
|
|
}, |
|
|
|
]); |
|
|
|
const languageOptions = ref([]); |
|
|
|
async function voiceTotal() { |
|
|
|
const res = await voiceTotalApi(); |
|
|
|
languageOptions.value = res.data; |
|
|
|
try { |
|
|
|
const res = await voiceTotalApi(); |
|
|
|
languageOptions.value = res.data; |
|
|
|
} catch (error) { |
|
|
|
ElMessage.error( |
|
|
|
lanChange.value == "zh-cn" |
|
|
|
? `获取语言列表失败,请稍后重试` |
|
|
|
: `Failed to get the language list, please try again later` |
|
|
|
); |
|
|
|
} |
|
|
|
} |
|
|
|
// 声音下拉框内容 |
|
|
|
const soundOptions = ref([]); |
|
|
@@ -1619,9 +1620,9 @@ const t = globalProperties.$t(string); |
|
|
|
|
|
|
|
//#region 页面初始化 |
|
|
|
onMounted(async () => { |
|
|
|
getAiFaceList(1, 10, 1); |
|
|
|
getAiFaceList(1, 20, 1); |
|
|
|
if (AccessToken) { |
|
|
|
getAiFaceUserList(1, 10, 3); |
|
|
|
getAiFaceUserList(1, 20, 3); |
|
|
|
await getmusicListPerson( |
|
|
|
musicListPageNumPerson.value, |
|
|
|
musicListPageSize.value |
|
|
|