排行榜新增本月排行及上月排行筛选

This commit is contained in:
2022-08-31 10:33:36 +08:00
parent 347e9a05e0
commit 68df0a014f
8 changed files with 789 additions and 581 deletions

View File

@@ -9,8 +9,8 @@ import router from '../router'
// 基础配置
const config = {
// apiUrl : 'https://api.gongli.vip/api/', // 正式环境
apiUrl: 'http://api.gl.shangkelian.cn/api/', // 测试
apiUrl : 'https://api.gongli.vip/api/', // 正式环境
// apiUrl: 'http://api.gl.shangkelian.cn/api/', // 测试
timeout: 60000
}
@@ -46,7 +46,6 @@ const request = (parameter, hideLoding = true) => {
data: parameter.data || {},
method: parameter.method || 'GET',
success: res => {
console.log(res)
if (res.header.Authorization) {
updateToken('token', res.header.Authorization)
}

View File

@@ -39,9 +39,25 @@ const totaluser = () => {
})
}
// 月度推荐会员排行榜
const monthVip = () => {
return request({
url: 'user/rank/month_vip'
})
}
// 月度推荐用户排行榜
const monthUser = () => {
return request({
url: 'user/rank/month_user'
})
}
export {
week_mul,
week,
total,
totaluser
totaluser,
monthVip,
monthUser
}