fix: rank

This commit is contained in:
zzc
2026-02-25 21:01:21 +08:00
parent 5e0da973af
commit 4c53fa9f65
2 changed files with 10 additions and 3 deletions

View File

@@ -53,6 +53,13 @@ export const getRecommendList = async (page = 1) => {
});
};
export const getRankList = async (scene) => {
return request({
url: `/api/blessing/rank/resource-list?scene=${scene}`,
method: "get",
});
};
export const msgCheckApi = async (content) => {
return request({
url: "/api/common/msg-check?content=" + content,

View File

@@ -153,12 +153,12 @@
<view class="title-left-decor"></view>
<text class="section-title">排行榜单</text>
<view class="rank-tabs-mini">
<view
<!-- <view
class="rank-tab-mini"
:class="{ active: currentTab === 'all' }"
@tap="switchTab('all')"
>全部</view
>
> -->
<view
class="rank-tab-mini"
:class="{ active: currentTab === 'wallpaper' }"
@@ -311,7 +311,7 @@ const totalMonthDays = computed(() => {
const date = new Date();
return new Date(date.getFullYear(), date.getMonth() + 1, 0).getDate();
}); // 当前月总天数
const currentTab = ref("all");
const currentTab = ref("wallpaper");
// 模拟农历数据
const lunarDate = ref({