From 120a4529a5dedb88fa880910e4fa62609c380a9c Mon Sep 17 00:00:00 2001 From: sion123 <450702724@qq.com> Date: Thu, 26 Feb 2026 20:04:09 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E5=8A=9F=E8=83=BD=E4=BC=98=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../app/web-gold/src/views/kling/IdentifyFace.vue | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) diff --git a/frontend/app/web-gold/src/views/kling/IdentifyFace.vue b/frontend/app/web-gold/src/views/kling/IdentifyFace.vue index aa4e545b56..38024f9cd7 100644 --- a/frontend/app/web-gold/src/views/kling/IdentifyFace.vue +++ b/frontend/app/web-gold/src/views/kling/IdentifyFace.vue @@ -193,7 +193,7 @@
预计消耗积分 - 150 积分 + {{ estimatedPoints }} 积分
当前余额 @@ -218,6 +218,7 @@ import { ref, computed, onMounted } from 'vue' import { CloudUploadOutlined, CrownFilled, PictureOutlined } from '@ant-design/icons-vue' import { useVoiceCopyStore } from '@/stores/voiceCopy' import { useUserStore } from '@/stores/user' +import { usePointsConfigStore } from '@/stores/pointsConfig' import VideoSelector from '@/components/VideoSelector.vue' import VoiceSelector from '@/components/VoiceSelector.vue' import ResultPanel from '@/components/ResultPanel.vue' @@ -228,6 +229,7 @@ import { useDigitalHumanStore } from './stores/useDigitalHumanStore' const store = useDigitalHumanStore() const voiceStore = useVoiceCopyStore() const userStore = useUserStore() +const pointsConfigStore = usePointsConfigStore() // ==================== 本地状态 ==================== const dragOver = ref(false) @@ -248,6 +250,12 @@ const progressStatus = computed(() => { return 'active' }) +// 预计消耗积分(从配置获取 kling 模型积分) +const estimatedPoints = computed(() => { + const points = pointsConfigStore.getConsumePoints('kling') + return points ?? 150 // 默认 150 积分 +}) + // ==================== 方法 ==================== function triggerFileSelect() { fileInput.value?.click() @@ -288,7 +296,8 @@ function getVideoPreviewUrl(video: any): string { onMounted(async () => { await Promise.all([ voiceStore.refresh(), - userStore.fetchUserProfile() + userStore.fetchUserProfile(), + pointsConfigStore.loadConfig() ]) })