fix: index page
This commit is contained in:
@@ -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");
|
||||||
|
|
||||||
// 模拟农历数据
|
// 模拟农历数据
|
||||||
|
|||||||
Reference in New Issue
Block a user