Commit 978fd5a2 by zhanghaozhe

date

parent a79c2139
......@@ -23,9 +23,15 @@ class Scores extends Component {
rankList: [],
rankListTabs: [
{title: '日榜'},
{title: '总榜'},
],
/*
rankListTabs: [
{title: '日榜'},
{title: '周榜'},
{title: '总榜'},
],
*/
isExpandRankList: false,
icons: [
require('./rank-1.png'),
......@@ -92,7 +98,7 @@ class Scores extends Component {
}
getRankList = (tab, type) => {
http.get(`${API.home}/sys/at/ranks/${type}`)
http.get(`${API.home}/sys/at/ranks/${type === 0 ? 0 : 2}`)
.then(res => {
const {code, msg, data} = res.data
if (code === 200) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment