fix: index page

This commit is contained in:
zzc
2026-02-24 15:54:13 +08:00
parent 1d84e34cb3
commit 5e8a3db6d9

View File

@@ -74,13 +74,15 @@
</button> </button>
<view class="progress-section"> <view class="progress-section">
<view class="progress-info"> <view class="progress-info">
<text>开启 2026 鸿运周期</text> <text>连续领好运 {{ continuousDays }} </text>
<text>{{ progressDays }} / 15</text> <text>{{ currentMonthDays }} / {{ totalMonthDays }}</text>
</view> </view>
<view class="progress-bar-bg"> <view class="progress-bar-bg">
<view <view
class="progress-bar-fill" class="progress-bar-fill"
:style="{ width: (progressDays / 15) * 100 + '%' }" :style="{
width: (currentMonthDays / totalMonthDays) * 100 + '%',
}"
></view> ></view>
</view> </view>
</view> </view>
@@ -238,7 +240,12 @@ const handleLogin = () => {
}; };
const luckyScore = ref(98); const luckyScore = ref(98);
const luckyColor = ref("赤金朱红"); const luckyColor = ref("赤金朱红");
const progressDays = ref(1); const continuousDays = ref(1); // 连续天数
const currentMonthDays = ref(new Date().getDate()); // 当前月签到天数(模拟为当天日期)
const totalMonthDays = computed(() => {
const date = new Date();
return new Date(date.getFullYear(), date.getMonth() + 1, 0).getDate();
}); // 当前月总天数
const currentTab = ref("all"); const currentTab = ref("all");
// 模拟农历数据 // 模拟农历数据