diff --git a/.env.development b/.env.development index 536cb33..9b9f772 100644 --- a/.env.development +++ b/.env.development @@ -7,5 +7,6 @@ VITE_APP_TITLE = 'Metavatar-PC' VITE_APP_PORT = 3000 ## VITE_APP_BASE_API = 'https://photo.metavatar.cc/C' # VITE_APP_BASE_API = 'https://test.metavatar.cc/C' -VITE_APP_BASE_API = 'https://phototest.metavatar.cc/C' +# VITE_APP_BASE_API = 'https://phototest.metavatar.cc/C' +VITE_APP_BASE_API = 'https://mtest.metavatar.cc/C' diff --git a/dist.zip b/dist.zip new file mode 100644 index 0000000..51c5ce6 Binary files /dev/null and b/dist.zip differ diff --git a/src/layout/index.vue b/src/layout/index.vue index a784e1e..3c2f58e 100644 --- a/src/layout/index.vue +++ b/src/layout/index.vue @@ -23,7 +23,7 @@ {{ $t("myCreating.title") }} -
+
@@ -196,6 +196,7 @@ const updateShowTalkUsDialog = (newValue: any) => { height: calc(100% - 80px); padding: 130px 20px 0; color: #fff; + user-select: none; // color: #868593; .bottomBtx { diff --git a/src/router/index.ts b/src/router/index.ts index 9598aa7..ee79ce6 100644 --- a/src/router/index.ts +++ b/src/router/index.ts @@ -55,6 +55,42 @@ export const constantRoutes: RouteRecordRaw[] = [ }, }, ], + }, // 定制分身 + { + path: "/", + component: Layout, + redirect: "/userModel", + children: [ + { + path: "userModel", + component: () => import("@/views/userModel/index.vue"), + name: "userModel", + meta: { + title: "userModel", + icon: "homepage", + affix: true, + name: "userModel.title", + }, + }, + ], + }, // 定制声纹 + { + path: "/", + component: Layout, + redirect: "/voiceModel", + children: [ + { + path: "voiceModel", + component: () => import("@/views/voiceModel/index.vue"), + name: "voiceModel", + meta: { + title: "voiceModel", + icon: "homepage", + affix: true, + name: "voiceModel.title", + }, + }, + ], }, { path: "/", component: Layout, diff --git a/src/types/auto-imports.d.ts b/src/types/auto-imports.d.ts index 9ea2d5d..e5c7bdb 100644 --- a/src/types/auto-imports.d.ts +++ b/src/types/auto-imports.d.ts @@ -2,6 +2,7 @@ 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'] @@ -270,6 +271,7 @@ import { UnwrapRef } from 'vue' declare module 'vue' { interface ComponentCustomProperties { readonly EffectScope: UnwrapRef + readonly ElForm: UnwrapRef readonly ElMessage: UnwrapRef readonly ElMessageBox: UnwrapRef readonly asyncComputed: UnwrapRef diff --git a/src/types/components.d.ts b/src/types/components.d.ts index 231836d..3ec7dc5 100644 --- a/src/types/components.d.ts +++ b/src/types/components.d.ts @@ -39,6 +39,7 @@ declare module '@vue/runtime-core' { IEpEdit: typeof import('~icons/ep/edit')['default'] IEpGoods: typeof import('~icons/ep/goods')['default'] IEpLoading: typeof import('~icons/ep/loading')['default'] + IEpLock: typeof import('~icons/ep/lock')['default'] IEpMenu: typeof import('~icons/ep/menu')['default'] IEpPhone: typeof import('~icons/ep/phone')['default'] IEpSearch: typeof import('~icons/ep/search')['default'] diff --git a/src/views/myAPI/index.vue b/src/views/myAPI/index.vue index dd75e09..b2669dc 100644 --- a/src/views/myAPI/index.vue +++ b/src/views/myAPI/index.vue @@ -1,22 +1,66 @@ + + diff --git a/src/views/myStore/index.vue b/src/views/myStore/index.vue index 2fc6751..5f6bd2f 100644 --- a/src/views/myStore/index.vue +++ b/src/views/myStore/index.vue @@ -180,11 +180,12 @@
- - + +
-
{{ $t(presentItme.value.title) }}
+ +
{{ $t(presentItme.value.typeDesc) }}
{{ presentItme.value.price }} 元/{{ presentItme.value.priceTime }} @@ -194,7 +195,7 @@ v-for="item in presentItme.value.authority" :key="item" > - {{ item }} + {{ item }}123
@@ -466,6 +467,7 @@ async function getPackageList() { } const showPayDialog = ref(false); //套餐信息dialog显示隐藏 const presentItme = reactive({}); //点击的套餐项 +// const presentItme = ref({}); //点击的套餐项 function clickPayDialog(item) { presentItme.value = item; showPayDialog.value = true; diff --git a/src/views/userModel/index.vue b/src/views/userModel/index.vue new file mode 100644 index 0000000..f102b7d --- /dev/null +++ b/src/views/userModel/index.vue @@ -0,0 +1,944 @@ + + + + + diff --git a/src/views/userModel/videoStatus.js b/src/views/userModel/videoStatus.js new file mode 100644 index 0000000..ec55c90 --- /dev/null +++ b/src/views/userModel/videoStatus.js @@ -0,0 +1,16 @@ +/** +* @description:根据状态返回状态名 +* @param {number} status +* @return: statusName +*/ +export const getStatus = status => { + if (status == 0) { + return "manuscript" + } else if (status == 1 || status == 2 || status == 4 || status == 6) { + return "generating" + } else if (status == 3) { + return "generationFailed" + } else if (status == 5) { + return "generationSucceed" + } +} \ No newline at end of file diff --git a/src/views/voiceModel/index.vue b/src/views/voiceModel/index.vue new file mode 100644 index 0000000..69d9d0b --- /dev/null +++ b/src/views/voiceModel/index.vue @@ -0,0 +1,7 @@ + + +