diff --git a/apis/interfaces/rank.js b/apis/interfaces/rank.js index d3a7e2e..21d592f 100644 --- a/apis/interfaces/rank.js +++ b/apis/interfaces/rank.js @@ -32,8 +32,16 @@ const total = () => { }) } +// 用户推荐榜 +const totaluser = () => { + return request({ + url: 'user/rank/totaluser' + }) +} + export { week_mul, week, - total + total, + totaluser } diff --git a/pages.json b/pages.json index 04cbae6..1f5df2c 100644 --- a/pages.json +++ b/pages.json @@ -461,7 +461,7 @@ }, { "path": "pages/rank/index", "style": { - "navigationBarTitleText": "会员推荐", + "navigationBarTitleText": "排行榜", "enablePullDownRefresh": false, "navigationBarTextStyle": "white", "navigationBarBackgroundColor": "#34CE98" @@ -542,7 +542,7 @@ "iconPath": "static/tabBar/tabBar_05.png", "selectedIconPath": "static/tabBar/tabBar_show_05.png", "pagePath": "pages/rank/index", - "text": "周排行榜" + "text": "排行榜" }, { "iconPath": "static/tabBar/tabBar_03.png", diff --git a/pages/rank/index.vue b/pages/rank/index.vue index a9004a2..0a3e7b7 100644 --- a/pages/rank/index.vue +++ b/pages/rank/index.vue @@ -12,13 +12,18 @@ - - 上周加成榜 - 本周推荐榜 - 会员推荐榜 - + + 上周加成榜 + + 本周推荐榜 + + 会员推荐榜 + + 用户推荐榜 + + - + 加成{{type === '1'?'结束':'生效'}}倒计时 : @@ -43,7 +48,12 @@ - + + + {{index + 1}} + + {{index + 1}} @@ -56,7 +66,7 @@ {{item.number}} - 推荐会员 + {{type === '4'?'推荐用户':'推荐会员'}} @@ -76,8 +86,9 @@