From 5618d4e2d794f535af47bf5298119ec40c917ed8 Mon Sep 17 00:00:00 2001 From: zhangdongxue Date: Mon, 1 Aug 2022 13:12:06 +0800 Subject: [PATCH] =?UTF-8?q?=E7=94=A8=E6=88=B7=E6=8E=A8=E8=8D=90=E5=B8=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- apis/interfaces/rank.js | 10 +- pages.json | 4 +- pages/rank/index.vue | 59 ++-- .../dist/dev/app-plus/app-config-service.js | 4 +- unpackage/dist/dev/app-plus/app-service.js | 303 ++++++++++++------ unpackage/dist/dev/app-plus/app-view.js | 216 ++++++++----- unpackage/dist/dev/app-plus/manifest.json | 2 +- 7 files changed, 383 insertions(+), 215 deletions(-) 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 @@