feat: 配额优化
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user