瀏覽代碼

私人定制

ctt_dev
chutingting 1 年之前
父節點
當前提交
952e2d5086
共有 1 個文件被更改,包括 6 次插入6 次删除
  1. +6
    -6
      src/views/createVideo/index.vue

+ 6
- 6
src/views/createVideo/index.vue 查看文件

@@ -376,7 +376,7 @@
<div @click="createVideo" class="customBtn">
<MyLoadingIcon :isLoading="createLoading"></MyLoadingIcon>
<div v-if="!createLoading">
{{ $t("createVideo.generateVideo") }}111
{{ $t("createVideo.generateVideo") }}
</div>
</div>
</div>
@@ -490,6 +490,7 @@
<span style="line-height: 20px">{{
lanChange == "zh-cn" ? item.chineseName : item.name
}}</span>
<span v-if="item.customized === 1" style="color:red">(私人订制)</span>
</el-option>
</el-select>
<p>{{ $t("createVideo.voices") }}</p>
@@ -517,7 +518,6 @@
`&nbsp; (${item.sex == 1 ? 'male' : 'female'})`) +
returnAge(item.ageType)
}}
<span v-if="item.customized === 1" style="color:red">(私人订制)</span>
</el-option>
</el-select>
<p>{{ $t("createVideo.styles") }}</p>
@@ -806,7 +806,7 @@ async function getModeList(sex, pageNum, pageSize, videoType) {
const res = await modeListApi(sex, pageNum, pageSize, videoType);
// 排序 定制分身在前
res.data.list.sort(function(a, b){
return a.customized > b.customized ? 1 : -1
return (b.customized) - (a.customized)
})
modeList.value = res.data.list;
overLoadModel.value = false;
@@ -950,15 +950,15 @@ watch(
const languageOptions = ref([]);
async function voiceTotal() {
const res = await voiceTotalApi();
res.data.sort(function(a, b){
return (b.customized) - (a.customized)
})
languageOptions.value = res.data;
}
// 声音下拉框内容
const soundOptions = ref([]);
async function chooseType() {
const res = await chooseTypeApi(language.value);
res.data.sort(function(a, b){
return a.customized > b.customized ? 1 : -1
})
soundOptions.value = res.data;
sound.value = null;
}


Loading…
取消
儲存