congzc 1年前
コミット
dce2408af9
4個のファイルの変更30行の追加26行の削除
  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 ファイルの表示

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


+ 0
- 2
src/types/auto-imports.d.ts ファイルの表示

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


+ 20
- 19
src/views/createVideo/index.vue ファイルの表示

@@ -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


+ 9
- 5
src/views/myAccount/index.vue ファイルの表示

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

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

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

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


読み込み中…
キャンセル
保存