This commit is contained in:
18631081161 2026-01-29 15:43:29 +08:00
parent 79072bc060
commit 7b0bfa9963
4 changed files with 34 additions and 4 deletions

View File

@ -23,7 +23,7 @@ const ENV = {
}
// 当前环境 - 开发时使用 development打包时改为 production
const CURRENT_ENV = 'development'
const CURRENT_ENV = 'production'
// 导出配置
export const config = {

View File

@ -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,

View File

@ -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,

View File

@ -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,