未读
This commit is contained in:
parent
79072bc060
commit
7b0bfa9963
|
|
@ -23,7 +23,7 @@ const ENV = {
|
|||
}
|
||||
|
||||
// 当前环境 - 开发时使用 development,打包时改为 production
|
||||
const CURRENT_ENV = 'development'
|
||||
const CURRENT_ENV = 'production'
|
||||
|
||||
// 导出配置
|
||||
export const config = {
|
||||
|
|
|
|||
|
|
@ -136,7 +136,8 @@
|
|||
|
||||
<script>
|
||||
import { ref, computed, onMounted } from 'vue'
|
||||
import { getFavoritedMe, getMyFavorite } from '@/api/interact.js'
|
||||
import { onShow } from '@dcloudio/uni-app'
|
||||
import { getFavoritedMe, getMyFavorite, markInteractAsRead } from '@/api/interact.js'
|
||||
import { getFullImageUrl } from '@/utils/image.js'
|
||||
import { useUserStore } from '@/store/user.js'
|
||||
import { useConfigStore } from '@/store/config.js'
|
||||
|
|
@ -324,6 +325,15 @@ export default {
|
|||
initPage()
|
||||
})
|
||||
|
||||
// 页面显示时标记"收藏我"为已读
|
||||
onShow(() => {
|
||||
if (activeTab.value === 'favoritedMe') {
|
||||
markInteractAsRead('favoritedMe').catch(err => {
|
||||
console.error('标记收藏我已读失败:', err)
|
||||
})
|
||||
}
|
||||
})
|
||||
|
||||
return {
|
||||
statusBarHeight,
|
||||
pageLoading,
|
||||
|
|
|
|||
|
|
@ -136,7 +136,8 @@
|
|||
|
||||
<script>
|
||||
import { ref, computed, onMounted } from 'vue'
|
||||
import { getUnlockedMe, getMyUnlocked } from '@/api/interact.js'
|
||||
import { onShow } from '@dcloudio/uni-app'
|
||||
import { getUnlockedMe, getMyUnlocked, markInteractAsRead } from '@/api/interact.js'
|
||||
import { getFullImageUrl } from '@/utils/image.js'
|
||||
import { useUserStore } from '@/store/user.js'
|
||||
import { useConfigStore } from '@/store/config.js'
|
||||
|
|
@ -313,6 +314,15 @@ export default {
|
|||
initPage()
|
||||
})
|
||||
|
||||
// 页面显示时标记"解锁我"为已读
|
||||
onShow(() => {
|
||||
if (activeTab.value === 'unlockedMe') {
|
||||
markInteractAsRead('unlockedMe').catch(err => {
|
||||
console.error('标记解锁我已读失败:', err)
|
||||
})
|
||||
}
|
||||
})
|
||||
|
||||
return {
|
||||
statusBarHeight,
|
||||
pageLoading,
|
||||
|
|
|
|||
|
|
@ -137,7 +137,8 @@
|
|||
|
||||
<script>
|
||||
import { ref, computed, onMounted } from 'vue'
|
||||
import { getViewedMe, getMyViewed } from '@/api/interact.js'
|
||||
import { onShow } from '@dcloudio/uni-app'
|
||||
import { getViewedMe, getMyViewed, markInteractAsRead } from '@/api/interact.js'
|
||||
import { getFullImageUrl } from '@/utils/image.js'
|
||||
import { useUserStore } from '@/store/user.js'
|
||||
import { useConfigStore } from '@/store/config.js'
|
||||
|
|
@ -314,6 +315,15 @@ export default {
|
|||
initPage()
|
||||
})
|
||||
|
||||
// 页面显示时标记"看过我"为已读
|
||||
onShow(() => {
|
||||
if (activeTab.value === 'viewedMe') {
|
||||
markInteractAsRead('viewedMe').catch(err => {
|
||||
console.error('标记看过我已读失败:', err)
|
||||
})
|
||||
}
|
||||
})
|
||||
|
||||
return {
|
||||
statusBarHeight,
|
||||
pageLoading,
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user