feat(排行榜): 添加首选榜单的功能
This commit is contained in:
parent
6a8c10012c
commit
66de070e54
@ -273,6 +273,8 @@ import { isInApp, closePage } from '@/utils/appBridge.js'
|
||||
import { computed, onMounted, ref, watch, watchEffect } from 'vue'
|
||||
import TopUser from '@/components/Ranking/topUser.vue'
|
||||
import { getWealthRanking, getCharmRanking, getRoomRanking, getMyRanking } from '@/api/ranking'
|
||||
import { useRoute } from 'vue-router'
|
||||
const route = useRoute()
|
||||
|
||||
//vite动态批量导入图片
|
||||
const imageModules = import.meta.glob('@/assets/images/Ranking/*.{png,jpg,svg}', { eager: true })
|
||||
@ -285,7 +287,7 @@ const images = Object.fromEntries(
|
||||
)
|
||||
|
||||
const isInAppEnvironment = ref(false) // 检测是否在APP环境中
|
||||
const rankingType = ref('Wealth') //榜单类型
|
||||
const rankingType = ref(route.query.first || 'Wealth') //榜单类型
|
||||
const selectedTimeTab = ref('Hourly') //时间标签
|
||||
|
||||
// 接口参数
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user