From 02d77c754228a8a45dbde984aeefc81f424dc95f Mon Sep 17 00:00:00 2001 From: richie Date: Fri, 28 Jun 2019 11:46:20 +0800 Subject: [PATCH] =?UTF-8?q?=E6=8E=92=E5=90=8D=E5=A2=9E=E5=8A=A0=E9=80=9A?= =?UTF-8?q?=E8=BF=87=E7=8E=87?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- views/ranklist.ejs | 20 ++++---------------- 1 file changed, 4 insertions(+), 16 deletions(-) diff --git a/views/ranklist.ejs b/views/ranklist.ejs index ccb3285..b3e9cf4 100644 --- a/views/ranklist.ejs +++ b/views/ranklist.ejs @@ -13,8 +13,9 @@ # <%- createSortableTitle('username', '用户名', true) %> - 个性签名 <%- createSortableTitle('ac_num', '通过数量', false) %> + <%- createSortableTitle('submit_num', '提交数量', true) %> + <%- createSortableTitle('percent', '通过率', true) %> <%- createSortableTitle('rating', '积分', false) %> @@ -39,22 +40,9 @@ <%= i %> <%= user.username %><% if (user.nameplate) { %><%- user.nameplate %><% } %> - - - <%= user.ac_num %> + <%= user.submit_num %> + <%= user.submit_num == 0 ? 0 : Math.round(user.ac_num / user.submit_num * 10000) / 100.00 + "%" %> <%= user.rating %> <% } %>