fix: index page
This commit is contained in:
@@ -74,13 +74,15 @@
|
||||
</button>
|
||||
<view class="progress-section">
|
||||
<view class="progress-info">
|
||||
<text>已开启 2026 鸿运周期</text>
|
||||
<text>{{ progressDays }} / 15</text>
|
||||
<text>已连续领好运 {{ continuousDays }} 天</text>
|
||||
<text>{{ currentMonthDays }} / {{ totalMonthDays }}</text>
|
||||
</view>
|
||||
<view class="progress-bar-bg">
|
||||
<view
|
||||
class="progress-bar-fill"
|
||||
:style="{ width: (progressDays / 15) * 100 + '%' }"
|
||||
:style="{
|
||||
width: (currentMonthDays / totalMonthDays) * 100 + '%',
|
||||
}"
|
||||
></view>
|
||||
</view>
|
||||
</view>
|
||||
@@ -238,7 +240,12 @@ const handleLogin = () => {
|
||||
};
|
||||
const luckyScore = ref(98);
|
||||
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");
|
||||
|
||||
// 模拟农历数据
|
||||
|
||||
Reference in New Issue
Block a user