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",
"style": {
"navigationStyle": "custom"
"navigationStyle": "custom",
"app-plus": {
"bounce": "none"
}
}
},
{
"path": "pages/register/register",
"style": {
"navigationStyle": "custom"
"navigationStyle": "custom",
"app-plus": {
"bounce": "none"
}
}
},
{
"path": "pages/profile/setNickname",
"style": {
"navigationStyle": "custom"
"navigationStyle": "custom",
"app-plus": {
"bounce": "none"
}
}
},
{
"path": "pages/profile/selectRole",
"style": {
"navigationStyle": "custom"
"navigationStyle": "custom",
"app-plus": {
"bounce": "none"
}
}
},
{
"path": "pages/welcome/welcome",
"style": {
"navigationStyle": "custom"
"navigationStyle": "custom",
"app-plus": {
"bounce": "none"
}
}
},
{
@ -122,7 +137,10 @@
{
"path": "pages/castlove/index",
"style": {
"navigationStyle": "custom"
"navigationStyle": "custom",
"app-plus": {
"bounce": "none"
}
}
},
{
@ -201,7 +219,10 @@
{
"path": "pages/castlove/success",
"style": {
"navigationStyle": "custom"
"navigationStyle": "custom",
"app-plus": {
"bounce": "none"
}
}
},
{
@ -216,37 +237,55 @@
{
"path": "pages/support-activity/index",
"style": {
"navigationStyle": "custom"
"navigationStyle": "custom",
"app-plus": {
"bounce": "none"
}
}
},
{
"path": "pages/asset-detail/asset-detail",
"style": {
"navigationStyle": "custom"
"navigationStyle": "custom",
"app-plus": {
"bounce": "none"
}
}
},
{
"path": "pages/discover/discover",
"style": {
"navigationStyle": "custom"
"navigationStyle": "custom",
"app-plus": {
"bounce": "none"
}
}
},
{
"path": "pages/discover/generation-loading",
"style": {
"navigationStyle": "custom"
"navigationStyle": "custom",
"app-plus": {
"bounce": "none"
}
}
},
{
"path": "pages/discover/generation-result",
"style": {
"navigationStyle": "custom"
"navigationStyle": "custom",
"app-plus": {
"bounce": "none"
}
}
},
{
"path": "pages/tasks/revenue",
"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) => {
console.log('领取收益:', item);
uni.showLoading({ title: '领取中...' });
@ -351,27 +350,6 @@ const handleClaimReward = async (item, _index) => {
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 loadLikedAssets();