diff --git a/.env.development b/.env.development index 9a63819e..b6488f90 100644 --- a/.env.development +++ b/.env.development @@ -5,7 +5,7 @@ ENV = 'development' # VITE_APP_BASE_API_Url = 'https://aits.jlbank.com.cn:7001' -VITE_APP_BASE_API_Url = 'https://aitstest.jlbank.com.cn:7002' +# VITE_APP_BASE_API_Url = 'https://aitstest.jlbank.com.cn:7002' @@ -19,7 +19,7 @@ VITE_APP_BASE_API_Url = 'https://aitstest.jlbank.com.cn:7002' # VITE_APP_BASE_API_Url = 'http://25.18.122.65:7001' # sit -# VITE_APP_BASE_API_Url = 'http://25.18.122.91:9786' +VITE_APP_BASE_API_Url = 'http://25.18.122.91:9786' # UAT # VITE_APP_BASE_API_Url = 'http://25.18.122.78:9786' diff --git a/src/pages/me/index.vue b/src/pages/me/index.vue index 0a3a92b3..05e13aac 100644 --- a/src/pages/me/index.vue +++ b/src/pages/me/index.vue @@ -36,11 +36,13 @@ + @@ -210,7 +212,6 @@ }); // 签到打开 const checkInClick = () => { - checkInRef.value.open( user_info.checkInToday === 1, user_info.checkInDays, @@ -219,7 +220,7 @@ user_info.checkInToday = status ? 1 : 2; user_info.checkInDays = days; statistics_data['get_statistics_data'](true); // 强制获取统计数据 - + handlePointsBadgePopup(pointsList, badgesList); } ); @@ -257,7 +258,7 @@ this.currentRankName = points_data.currentRankName; } }, - get_statistics_data: async function (status=false) { + get_statistics_data: async function (status = false) { try { const time_now = Date.now(); let points_data = common.getValue('points_data') || {}; @@ -292,8 +293,6 @@ this.currentPoints = currentPoints; currentPointsRef.value.start(); } - - } catch (error) { console.error('获取统计数据失败:', error); } @@ -305,10 +304,9 @@ uni.$on('update_me_data', (status) => { // 获取了徽章或者积分,把缓存时间重置,以便下次进入me页实时获取 console.log('获取了徽章或者积分,把缓存时间重置,以便下次进入me页实时获取'); - if(status) { + if (status) { statistics_data.request_time = 0; } - }); }); onShow(() => { @@ -327,12 +325,10 @@ onPullDownRefresh(() => { uni.stopPullDownRefresh(); }); - - + onUnload(() => { uni.$off('update_me_data'); }); -