From 06c059ebd82c04e1b8da9ce4ec87148fc15fe240 Mon Sep 17 00:00:00 2001 From: zerosaturation Date: Tue, 19 May 2026 19:02:44 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E9=A1=B5=E9=9D=A2=E5=85=A8=E9=83=A8?= =?UTF-8?q?=E6=B7=BB=E5=8A=A0=E5=9B=9E=E5=BC=B9=E5=85=B3=E9=97=AD=E8=AE=BE?= =?UTF-8?q?=E7=BD=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- frontend/pages.json | 65 ++++++++++++++++++++++++------ frontend/pages/profile/myWorks.vue | 22 ---------- 2 files changed, 52 insertions(+), 35 deletions(-) diff --git a/frontend/pages.json b/frontend/pages.json index 4bd3db3..4069c58 100644 --- a/frontend/pages.json +++ b/frontend/pages.json @@ -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" + } } } ], diff --git a/frontend/pages/profile/myWorks.vue b/frontend/pages/profile/myWorks.vue index a109fa7..8b820a6 100644 --- a/frontend/pages/profile/myWorks.vue +++ b/frontend/pages/profile/myWorks.vue @@ -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();