feat: 页面全部添加回弹关闭设置

This commit is contained in:
zerosaturation 2026-05-19 19:02:44 +08:00
parent 7b8fba5701
commit 06c059ebd8
2 changed files with 52 additions and 35 deletions

View File

@ -56,31 +56,46 @@
{ {
"path": "pages/login/login", "path": "pages/login/login",
"style": { "style": {
"navigationStyle": "custom" "navigationStyle": "custom",
"app-plus": {
"bounce": "none"
}
} }
}, },
{ {
"path": "pages/register/register", "path": "pages/register/register",
"style": { "style": {
"navigationStyle": "custom" "navigationStyle": "custom",
"app-plus": {
"bounce": "none"
}
} }
}, },
{ {
"path": "pages/profile/setNickname", "path": "pages/profile/setNickname",
"style": { "style": {
"navigationStyle": "custom" "navigationStyle": "custom",
"app-plus": {
"bounce": "none"
}
} }
}, },
{ {
"path": "pages/profile/selectRole", "path": "pages/profile/selectRole",
"style": { "style": {
"navigationStyle": "custom" "navigationStyle": "custom",
"app-plus": {
"bounce": "none"
}
} }
}, },
{ {
"path": "pages/welcome/welcome", "path": "pages/welcome/welcome",
"style": { "style": {
"navigationStyle": "custom" "navigationStyle": "custom",
"app-plus": {
"bounce": "none"
}
} }
}, },
{ {
@ -122,7 +137,10 @@
{ {
"path": "pages/castlove/index", "path": "pages/castlove/index",
"style": { "style": {
"navigationStyle": "custom" "navigationStyle": "custom",
"app-plus": {
"bounce": "none"
}
} }
}, },
{ {
@ -201,7 +219,10 @@
{ {
"path": "pages/castlove/success", "path": "pages/castlove/success",
"style": { "style": {
"navigationStyle": "custom" "navigationStyle": "custom",
"app-plus": {
"bounce": "none"
}
} }
}, },
{ {
@ -216,37 +237,55 @@
{ {
"path": "pages/support-activity/index", "path": "pages/support-activity/index",
"style": { "style": {
"navigationStyle": "custom" "navigationStyle": "custom",
"app-plus": {
"bounce": "none"
}
} }
}, },
{ {
"path": "pages/asset-detail/asset-detail", "path": "pages/asset-detail/asset-detail",
"style": { "style": {
"navigationStyle": "custom" "navigationStyle": "custom",
"app-plus": {
"bounce": "none"
}
} }
}, },
{ {
"path": "pages/discover/discover", "path": "pages/discover/discover",
"style": { "style": {
"navigationStyle": "custom" "navigationStyle": "custom",
"app-plus": {
"bounce": "none"
}
} }
}, },
{ {
"path": "pages/discover/generation-loading", "path": "pages/discover/generation-loading",
"style": { "style": {
"navigationStyle": "custom" "navigationStyle": "custom",
"app-plus": {
"bounce": "none"
}
} }
}, },
{ {
"path": "pages/discover/generation-result", "path": "pages/discover/generation-result",
"style": { "style": {
"navigationStyle": "custom" "navigationStyle": "custom",
"app-plus": {
"bounce": "none"
}
} }
}, },
{ {
"path": "pages/tasks/revenue", "path": "pages/tasks/revenue",
"style": { "style": {
"navigationStyle": "custom" "navigationStyle": "custom",
"app-plus": {
"bounce": "none"
}
} }
} }
], ],

View File

@ -326,7 +326,6 @@ uni.$on('assetLikeChanged', ({ asset_id, like_count, earnings }) => {
// //
const handleClaimReward = async (item, _index) => { const handleClaimReward = async (item, _index) => {
console.log('领取收益:', item);
uni.showLoading({ title: '领取中...' }); uni.showLoading({ title: '领取中...' });
@ -351,27 +350,6 @@ const handleClaimReward = async (item, _index) => {
uni.showToast({ title: '收益已领取', icon: 'success' }); uni.showToast({ title: '收益已领取', icon: 'success' });
//
if (claimRes?.data?.total_balance !== undefined) {
const userStr = uni.getStorageSync('user')
if (userStr) {
//
let user
if (typeof userStr === 'string') {
user = JSON.parse(userStr)
} else {
//
user = { ...userStr }
}
//
user.crystal_balance = Number(claimRes.data.total_balance) || 0
//
uni.setStorageSync('user', JSON.stringify(user))
uni.$emit('balanceUpdated', { crystal_balance: user.crystal_balance })
}
}
// //
await loadExhibitedAssets(); await loadExhibitedAssets();
await loadLikedAssets(); await loadLikedAssets();