排行榜新增本月排行及上月排行筛选
This commit is contained in:
@@ -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)
|
||||
}
|
||||
|
||||
@@ -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
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user