修改段位图标

This commit is contained in:
田岩
2025-12-03 14:02:37 +08:00
parent f37d40b1bc
commit 35ceef086a
4 changed files with 11 additions and 14 deletions
+7 -11
View File
@@ -36,11 +36,13 @@
<view class="dan" @click="common.navigateTo('/pages/pointsAndRank/rank')">
<view class="dan_img">
<image-preview
v-if="statistics_data['currentRankAddr']"
class="img_100"
:src="statistics_data['currentRankAddr']"
mode="heightFix"
alt="当前徽章"
></image-preview>
<image v-else src="@/static/images/me/default_rank.png" class="img_100" mode="heightFix"/>
</view>
</view>
<view class="fl1"></view>
@@ -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');
});
</script>
<style scoped lang="scss">
@@ -471,7 +467,7 @@
font-size: 16rpx;
padding-left: 20rpx;
.dan_img {
height: 46rpx;
height: 44rpx;
}
}
}
+2 -1
View File
@@ -21,7 +21,7 @@
<view class="my-rank">
<view class="left">
<view class="fl1"></view>
<view class="note">当前段位{{dataInfo.currentRankName}}</view>
<view class="note">当前段位{{dataInfo.currentRankName || '无'}}</view>
<view class="note">
我的累计积分
<text class="score">{{dataInfo.countPoints}}</text>
@@ -86,6 +86,7 @@
});
onMounted(() => {
uni.$emit("update_me_data", true);
pagingRef.value.reload();
});
onUnload(() => {});
Binary file not shown.

After

Width:  |  Height:  |  Size: 8.3 KiB