congzc 1 year ago
parent
commit
dce2408af9
4 changed files with 30 additions and 26 deletions
  1. +1
    -0
      src/layout/components/Navbar.vue
  2. +0
    -2
      src/types/auto-imports.d.ts
  3. +20
    -19
      src/views/createVideo/index.vue
  4. +9
    -5
      src/views/myAccount/index.vue

+ 1
- 0
src/layout/components/Navbar.vue View File

@@ -15,6 +15,7 @@
</div> </div>
<!--语言选择--> <!--语言选择-->
<el-tooltip <el-tooltip
style="cursor: pointer; z-index: 999"
class="box-item" class="box-item"
effect="dark" effect="dark"
:content="$t('navbar.LanguageChange')" :content="$t('navbar.LanguageChange')"


+ 0
- 2
src/types/auto-imports.d.ts View File

@@ -2,7 +2,6 @@
export {} export {}
declare global { declare global {
const EffectScope: typeof import('vue')['EffectScope'] const EffectScope: typeof import('vue')['EffectScope']
const ElForm: typeof import('element-plus/es')['ElForm']
const ElMessage: typeof import('element-plus/es')['ElMessage'] const ElMessage: typeof import('element-plus/es')['ElMessage']
const ElMessageBox: typeof import('element-plus/es')['ElMessageBox'] const ElMessageBox: typeof import('element-plus/es')['ElMessageBox']
const asyncComputed: typeof import('@vueuse/core')['asyncComputed'] const asyncComputed: typeof import('@vueuse/core')['asyncComputed']
@@ -271,7 +270,6 @@ import { UnwrapRef } from 'vue'
declare module 'vue' { declare module 'vue' {
interface ComponentCustomProperties { interface ComponentCustomProperties {
readonly EffectScope: UnwrapRef<typeof import('vue')['EffectScope']> readonly EffectScope: UnwrapRef<typeof import('vue')['EffectScope']>
readonly ElForm: UnwrapRef<typeof import('element-plus/es')['ElForm']>
readonly ElMessage: UnwrapRef<typeof import('element-plus/es')['ElMessage']> readonly ElMessage: UnwrapRef<typeof import('element-plus/es')['ElMessage']>
readonly ElMessageBox: UnwrapRef<typeof import('element-plus/es')['ElMessageBox']> readonly ElMessageBox: UnwrapRef<typeof import('element-plus/es')['ElMessageBox']>
readonly asyncComputed: UnwrapRef<typeof import('@vueuse/core')['asyncComputed']> readonly asyncComputed: UnwrapRef<typeof import('@vueuse/core')['asyncComputed']>


+ 20
- 19
src/views/createVideo/index.vue View File

@@ -251,7 +251,6 @@
<!-- <span>GPT</span> --> <!-- <span>GPT</span> -->
<img src="../../assets/img/gpttotext.png" alt="" /> <img src="../../assets/img/gpttotext.png" alt="" />
</div> </div>

<el-tabs @tab-click="clickTab4" type="border-card" class="tabs"> <el-tabs @tab-click="clickTab4" type="border-card" class="tabs">
<!-- ----------------------------- 1 --> <!-- ----------------------------- 1 -->
<el-tab-pane :label="$t('createVideo.typeScript')"> <el-tab-pane :label="$t('createVideo.typeScript')">
@@ -301,10 +300,11 @@
:placeholder="$t('createVideo.select')" :placeholder="$t('createVideo.select')"
style="width: 100%" style="width: 100%"
> >
<!-- :label="lanChange == 'zh-cn' ? item.chineseName : item.name" -->
<el-option <el-option
v-for="item in languageOptions" v-for="item in languageOptions"
:key="item.value" :key="item.value"
:label="item.name"
:label="lanChange == 'zh-cn' ? item.chineseName : item.name"
:value="item.id" :value="item.id"
> >
<img <img
@@ -316,7 +316,9 @@
vertical-align: text-top; 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-option>
</el-select> </el-select>
<p>{{ $t("createVideo.voices") }}</p> <p>{{ $t("createVideo.voices") }}</p>
@@ -723,7 +725,7 @@ const overLoadUser = ref(false); //禁用个人相册加载更多
//系统相册触底加载更多 //系统相册触底加载更多
function loadMoreAiFaceSystem() { function loadMoreAiFaceSystem() {
pageNumSystem.value += 1; pageNumSystem.value += 1;
personPhotoList(pageNumSystem.value, 10, 1)
personPhotoList(pageNumSystem.value, 20, 1)
.then((res) => { .then((res) => {
AiFaceList.value.push(...res.data.list); AiFaceList.value.push(...res.data.list);
if (res.data.list.length == 0) { if (res.data.list.length == 0) {
@@ -738,7 +740,7 @@ function loadMoreAiFaceSystem() {
//个人相册触底加载更多 //个人相册触底加载更多
function loadMoreAiFaceUser() { function loadMoreAiFaceUser() {
pageNumUser.value += 1; pageNumUser.value += 1;
personPhotoUserListList(pageNumUser.value, 10, 3)
personPhotoUserListList(pageNumUser.value, 20, 3)
.then((res) => { .then((res) => {
if (res.data.list.length == 0) { if (res.data.list.length == 0) {
overLoadUser.value = true; overLoadUser.value = true;
@@ -927,19 +929,18 @@ const language = ref(""); //选择的语言
const sound = ref(""); // 选择的声音 const sound = ref(""); // 选择的声音
const soundStyle = ref(""); //选择的风格 const soundStyle = ref(""); //选择的风格
// 语言下拉框内容 // 语言下拉框内容
const languageOptions = ref([
{
id: "0",
name: "中文",
},
{
id: "1",
name: "English",
},
]);
const languageOptions = ref([]);
async function voiceTotal() { 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([]); const soundOptions = ref([]);
@@ -1619,9 +1620,9 @@ const t = globalProperties.$t(string);


//#region 页面初始化 //#region 页面初始化
onMounted(async () => { onMounted(async () => {
getAiFaceList(1, 10, 1);
getAiFaceList(1, 20, 1);
if (AccessToken) { if (AccessToken) {
getAiFaceUserList(1, 10, 3);
getAiFaceUserList(1, 20, 3);
await getmusicListPerson( await getmusicListPerson(
musicListPageNumPerson.value, musicListPageNumPerson.value,
musicListPageSize.value musicListPageSize.value


+ 9
- 5
src/views/myAccount/index.vue View File

@@ -520,7 +520,7 @@ function routerTo(url) {


&-two { &-two {
position: relative; position: relative;
height: 80px;
// height: 80px;
text-align: center; text-align: center;
overflow: hidden; overflow: hidden;


@@ -536,12 +536,16 @@ function routerTo(url) {


.getMore { .getMore {
position: absolute; position: absolute;
top: -1px;
right: -1px;
display: flex;
align-items: center;
justify-content: space-around;
top: 0px;
right: 0px;
padding: 5px; padding: 5px;
width: 80px; width: 80px;
height: 80px;
line-height: 70px;
// height: 80px;
height: 100%;
// line-height: 70px;
text-align: center; text-align: center;
background-color: #000; background-color: #000;
color: #fff; color: #fff;


Loading…
Cancel
Save