diff --git a/uniapp/src/packages_community/components/post-card.vue b/uniapp/src/packages_community/components/post-card.vue
index 5e153ec..a059813 100644
--- a/uniapp/src/packages_community/components/post-card.vue
+++ b/uniapp/src/packages_community/components/post-card.vue
@@ -85,19 +85,7 @@
{{ formatCount(post.like_count) }}
-
- AI
- {{ post._ai_loading ? '分析中' : (aiAnalyzed ? '已分析' : 'AI 分析') }}
-
-
-
-
-
-
@@ -105,15 +93,12 @@
import { computed, ref, watch } from 'vue'
import { translatePost } from '@/api/community'
import { getToken } from '@/utils/auth'
-import SharePopup from '@/components/share-popup/share-popup.vue'
const props = defineProps<{ post: any }>()
-const emit = defineEmits(['tap', 'unlock', 'like', 'avatar-tap', 'ai-analysis'])
-const showSharePopup = ref(false)
+defineEmits(['tap', 'unlock', 'like', 'avatar-tap'])
const translatedText = ref('')
const cachedContent = ref(props.post.translated_content || '')
const autoTranslateStarted = ref(false)
-const LIUHE_TAGS = ['旧澳六合', '新澳六合']
const rawContent = computed(() => String(props.post?.content_short || props.post?.content || '').trim())
const contentParts = computed(() => {
@@ -127,7 +112,6 @@ const contentParts = computed(() => {
const contentTitle = computed(() => contentParts.value.title)
const contentSummary = computed(() => contentParts.value.summary)
const isLotteryPost = computed(() => Array.isArray(props.post?.tags) && props.post.tags.includes('彩票'))
-const isLiuhePost = computed(() => LIUHE_TAGS.some((tag) => props.post?.tags?.includes(tag)))
const isTrumpPost = computed(() => Array.isArray(props.post?.tags) && props.post.tags.includes('特朗普'))
const trumpSourceUrl = computed(() => {
if (props.post?.source_url) return props.post.source_url
@@ -137,9 +121,7 @@ const trumpSourceUrl = computed(() => {
return postId ? `https://truthsocial.com/@realDonaldTrump/${postId}` : ''
})
const displayTranslatedText = computed(() => translatedText.value || cachedContent.value || props.post?.translated_content || '')
-const aiAnalyzed = computed(() => !!displayTranslatedText.value)
-const handleShareTap = () => { showSharePopup.value = true }
const openSourceUrl = () => trumpSourceUrl.value && uni.navigateTo({ url: `/pages/webview/webview?url=${encodeURIComponent(trumpSourceUrl.value)}` })
const previewImage = (index: number) => {
const images = props.post?.images || []
@@ -156,15 +138,6 @@ const requestTranslate = async () => {
} catch (_error) { }
}
-const handleAiAnalysis = () => {
- if (props.post._ai_loading) return
- if (!getToken()) {
- uni.showToast({ title: '请先登录', icon: 'none' })
- return
- }
- emit('ai-analysis', props.post)
-}
-
watch(() => props.post?.translated_content, (value) => {
if (value) {
cachedContent.value = value
@@ -500,36 +473,22 @@ const formatCount = (value: any) => {
&__actions {
display: flex;
align-items: center;
- gap: 42rpx;
margin-top: 22rpx;
padding-top: 18rpx;
border-top: 1rpx solid #edf0f4;
}
&__action {
+ flex: 1;
display: flex;
align-items: center;
+ justify-content: center;
gap: 7rpx;
color: #7a8494;
font-size: 24rpx;
line-height: 1;
&--active { color: #1468f5; }
- &--share { margin-left: auto; }
- &--loading { opacity: 0.6; }
- }
-
- &__ai-icon {
- width: 29rpx;
- height: 29rpx;
- display: inline-flex;
- align-items: center;
- justify-content: center;
- border-radius: 8rpx;
- color: #fff;
- font-size: 17rpx;
- font-weight: 800;
- background: #1468f5;
}
}
diff --git a/uniapp/src/pages/community/community.vue b/uniapp/src/pages/community/community.vue
index 42f9cfa..b54da30 100644
--- a/uniapp/src/pages/community/community.vue
+++ b/uniapp/src/pages/community/community.vue
@@ -57,8 +57,7 @@
+ @unlock="handleUnlock(post)" @avatar-tap="goUserProfile" @like="handleLike(post)" />