diff --git a/mini-program/src/pages/main/ScriptView.vue b/mini-program/src/pages/main/ScriptView.vue index e85e78f..7d315e4 100644 --- a/mini-program/src/pages/main/ScriptView.vue +++ b/mini-program/src/pages/main/ScriptView.vue @@ -23,9 +23,6 @@ 导入社交数据 - - 我的剧本 - @@ -62,19 +59,6 @@ 发送 - - - 人生素材画像 - {{ socialInsightCopy }} - - - - { return source.length ? source.slice(0, 4) : fallbackRecommendations }) -const socialInsightCopy = computed(() => { - if (!confirmedInsights.value.length) return '未确认画像,点这里导入社交内容' - return `已确认 ${confirmedInsights.value.length} 个,将辅助生成更像你的剧本` -}) - const voiceCopy = computed(() => { if (voiceState.value === 'pressing') return '松开后识别心愿' if (voiceState.value === 'recognizing') return '正在识别你的心愿……' @@ -417,19 +394,10 @@ const normalizeGeneratedScript = (data) => { } const openScriptLibrary = () => { - analytics.track('script_my_scripts_click', {}, { eventType: 'script', pagePath }) + analytics.track('script_history_click', {}, { eventType: 'script', pagePath }) uni.$emit('switchTab', 'mine') } -const openSocialInsights = () => { - analytics.track('script_social_insights_click', { - confirmed_count: confirmedInsights.value.length - }, { eventType: 'social_import', pagePath }) - uni.navigateTo({ - url: confirmedInsights.value.length ? '/pages/social-import/insights' : '/pages/social-import/index' - }) -} - const openSocialImport = () => { analytics.track('script_social_import_entry_click', { source: 'home_head' @@ -739,19 +707,9 @@ const trackTtsClick = () => { ttsPlayer.playSource(currentResult.value?.id || '') } -const loadConfirmedInsights = async () => { - try { - const res = await socialImport.listInsights('confirmed') - confirmedInsights.value = res.data || [] - } catch (error) { - confirmedInsights.value = [] - } -} - onMounted(() => { analytics.track('script_home_view', {}, { eventType: 'script', pagePath }) setupRecorder() - loadConfirmedInsights() }) onUnmounted(() => { @@ -966,21 +924,6 @@ onUnmounted(() => { gap: 14rpx; } -.history-button, -.script-list-btn { - height: 64rpx; - display: flex; - align-items: center; - gap: 12rpx; - padding: 0 22rpx; - border-radius: 999rpx; - color: #e8ccff; - font-size: 28rpx; - background: rgba(43, 19, 83, 0.72); - border: 1rpx solid rgba(168, 85, 247, 0.28); - box-shadow: 0 0 22rpx rgba(116, 52, 202, 0.12); -} - .head-action-row { display: flex; align-items: center; @@ -1169,42 +1112,6 @@ onUnmounted(() => { opacity: 0.45; } -.profile-boost { - min-height: 88rpx; - display: flex; - align-items: center; - gap: 18rpx; - padding: 18rpx 22rpx; - border-radius: 28rpx; - border: 1rpx solid rgba(168, 85, 247, 0.26); - background: rgba(43, 19, 83, 0.44); -} - -.boost-main { - flex: 1; - min-width: 0; - display: flex; - flex-direction: column; - gap: 6rpx; -} - -.boost-title { - color: #fff; - font-size: 28rpx; - font-weight: 800; -} - -.boost-copy { - color: rgba(232, 204, 255, 0.72); - font-size: 23rpx; - line-height: 1.35; -} - -.boost-switch { - transform: scale(0.78); - transform-origin: right center; -} - .inspiration-section { display: flex; flex-direction: column;