feat: 配额优化

This commit is contained in:
2026-02-25 21:30:24 +08:00
parent 2e93211697
commit 79a5c1f3ed
29 changed files with 1225 additions and 489 deletions

View File

@@ -6,6 +6,7 @@ import TikhubService, { InterfaceType, MethodType, ParamType } from '@/api/tikhu
import { rewriteStream } from '@/api/forecast'
import { getAgentList } from '@/api/agent'
import { useUserStore } from '@/stores/user'
import { usePointsConfigStore } from '@/stores/pointsConfig'
import { getVoiceText } from '@gold/hooks/web/useVoiceText'
import { copyToClipboard } from '@/utils/clipboard'
@@ -13,6 +14,7 @@ defineOptions({ name: 'ForecastView' })
// 状态管理
const userStore = useUserStore()
const pointsConfigStore = usePointsConfigStore()
const searchKeyword = ref('')
const isLoading = ref(false)
const isGenerating = ref(false)
@@ -368,6 +370,7 @@ async function handleSearch() {
// 初始化
onMounted(() => {
loadAgentList()
pointsConfigStore.loadConfig()
})
</script>
@@ -604,6 +607,7 @@ onMounted(() => {
<span>生成爆款</span>
</template>
</button>
<p class="points-hint">生成爆款文案将消耗积分</p>
<!-- 生成结果 -->
<Transition name="slide-up">
@@ -848,10 +852,6 @@ onMounted(() => {
to { transform: rotate(360deg); }
}
@keyframes spin {
to { transform: rotate(360deg); }
}
// 热点卡片
.topic-list {
display: flex;
@@ -1205,6 +1205,13 @@ onMounted(() => {
}
}
.points-hint {
text-align: center;
font-size: 12px;
color: #94a3b8;
margin: 8px 0 0;
}
// 结果区域
.result-block {
padding-top: 16px;