From 0cfd371b11801d9871da978b09f58014336d3f64 Mon Sep 17 00:00:00 2001 From: woody Date: Sat, 10 May 2025 20:53:50 +0800 Subject: [PATCH 1/2] =?UTF-8?q?fix(mine):=20=E4=BF=AE=E5=A4=8D=E6=8E=A5?= =?UTF-8?q?=E5=8F=A3500=E5=AF=BC=E8=87=B4=E5=A5=96=E8=A1=94=E5=AD=97?= =?UTF-8?q?=E6=AE=B5undefined=E5=90=8E=E9=A1=B5=E9=9D=A2=E5=90=8E=E7=BB=AD?= =?UTF-8?q?=E4=BA=A4=E4=BA=92=E8=A2=AB=E9=98=BB=E5=A1=9E=E7=9A=84=E9=97=AE?= =?UTF-8?q?=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pages/mine/index.vue | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pages/mine/index.vue b/pages/mine/index.vue index bc525c4..016524c 100644 --- a/pages/mine/index.vue +++ b/pages/mine/index.vue @@ -526,7 +526,7 @@ export default { //获取用户真实奖衔 getUserAwardss() { api.getUserAwards().then((res) => { - this.awards = res.data; + this.awards = res.data || {}; }); }, GetPercent(num, total) { From affc9f316be1bdbc8930c779927dae3d7d7ba467 Mon Sep 17 00:00:00 2001 From: woody Date: Tue, 13 May 2025 17:30:57 +0800 Subject: [PATCH 2/2] =?UTF-8?q?feat(mine):=20=E4=B8=AA=E4=BA=BA=E9=A1=B5?= =?UTF-8?q?=E9=9D=A2=E5=A5=96=E8=A1=94=E7=9B=B8=E5=85=B3=E5=B1=95=E7=A4=BA?= =?UTF-8?q?=E8=B0=83=E6=95=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pages/mine/index.vue | 60 +++++++++++++++++++++++++++++++------------- 1 file changed, 43 insertions(+), 17 deletions(-) diff --git a/pages/mine/index.vue b/pages/mine/index.vue index 016524c..d7bd3b7 100644 --- a/pages/mine/index.vue +++ b/pages/mine/index.vue @@ -59,7 +59,7 @@ - + + + 奖衔晋升 + + + + 晋升 + {{ awards.tarAwardsName }} + 小区仅需 + {{ sprintProgress.achieved }} + + + + 昨日业绩 @@ -117,18 +133,7 @@ > - - 奖衔冲刺 - - - - 已完成 {{ awards.sumRealPv }} / 目标 {{ sprintProgress.target }} - - - + @@ -1325,12 +1330,33 @@ export default { .sprint-progress-text { width: 100%; position: absolute; - top: 60%; + top: 50%; left: 0; - transform: translate(0%, -55%); + transform: translateY(-50%); white-space: nowrap; text-align: center; - font-size: 24rpx; + font-size: 22rpx; color: #333333; + display: flex; + align-items: baseline; + justify-content: center; +} + +.sprint-progress-text span { + margin: 0 3rpx; +} + +.sprint-progress-text .award-name { + font-weight: bold; + color: #005BAC; + font-size: 26rpx; + padding: 0 4rpx; +} + +.sprint-progress-text .award-amount { + font-weight: bold; + color: #D9534F; + font-size: 24rpx; + padding: 0 4rpx; }