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() ]) })