Commit 1cafe725 by zhanghaozhe

Merge branch 'ai-test' into dev

parents ccace4d8 978fd5a2
......@@ -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