diff --git a/src/pages/components/news/news.vue b/src/pages/components/news/news.vue index 8101ac1..f35a638 100644 --- a/src/pages/components/news/news.vue +++ b/src/pages/components/news/news.vue @@ -43,7 +43,7 @@ {{ post.time }} - + 查看全文 查看全文图标 @@ -172,6 +172,10 @@ const fetchPostData = async () => { } } +// 处理点击查看全文 +const handleInteraction = () => { + common.openapp(); +} // 组件挂载时获取数据 onMounted(() => { fetchPostData() diff --git a/src/pages/components/videopage/videopage.vue b/src/pages/components/videopage/videopage.vue index 8ce84f8..db35b59 100644 --- a/src/pages/components/videopage/videopage.vue +++ b/src/pages/components/videopage/videopage.vue @@ -32,25 +32,25 @@ - - + {{ formatCount(videoData.likesum) }} - + {{ formatCount(videoData.commentsum) }} - + {{ formatCount(videoData.sharesum) }} @@ -81,7 +81,6 @@ const formatDate = common.formatDate // 折叠展开状态 const isExpanded = ref(false) const videoRef = ref(null) -const ctx = ref(null) // 静音状态 const isMuted = ref(false) // 播放状态 @@ -209,23 +208,8 @@ const pausevideo = () => { } } -// 关注 -const toggleFollow = () => { - common.openapp(); -} - -// 点赞 -const toggleLike = () => { - common.openapp(); -} - -// 打开评论 -const openComments = () => { - common.openapp(); -} - -// 分享视频 -const shareVideo = () => { +// 统一处理交互操作 +const handleInteraction = () => { common.openapp(); }