Commit 978fd5a2 by zhanghaozhe

date

parent a79c2139
...@@ -23,9 +23,15 @@ class Scores extends Component { ...@@ -23,9 +23,15 @@ class Scores extends Component {
rankList: [], rankList: [],
rankListTabs: [ rankListTabs: [
{title: '日榜'}, {title: '日榜'},
{title: '总榜'},
],
/*
rankListTabs: [
{title: '日榜'},
{title: '周榜'}, {title: '周榜'},
{title: '总榜'}, {title: '总榜'},
], ],
*/
isExpandRankList: false, isExpandRankList: false,
icons: [ icons: [
require('./rank-1.png'), require('./rank-1.png'),
...@@ -92,7 +98,7 @@ class Scores extends Component { ...@@ -92,7 +98,7 @@ class Scores extends Component {
} }
getRankList = (tab, type) => { getRankList = (tab, type) => {
http.get(`${API.home}/sys/at/ranks/${type}`) http.get(`${API.home}/sys/at/ranks/${type === 0 ? 0 : 2}`)
.then(res => { .then(res => {
const {code, msg, data} = res.data const {code, msg, data} = res.data
if (code === 200) { 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