From fd7d514828f5a5b21691e519dbd71e049da06964 Mon Sep 17 00:00:00 2001 From: ngfchl Date: Tue, 27 Dec 2022 23:52:24 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96=E8=B0=83=E6=95=B4=E9=A1=B5?= =?UTF-8?q?=E9=9D=A2=E6=8C=89=E9=92=AE=E6=98=BE=E7=A4=BA=E4=B8=8E=E5=8A=9F?= =?UTF-8?q?=E8=83=BD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- auto_pt/views.py | 4 +- templates/auto_pt/status.html | 89 ++++++++++++++++++++++------------- 2 files changed, 57 insertions(+), 36 deletions(-) diff --git a/auto_pt/views.py b/auto_pt/views.py index 5a63d82..68772e0 100644 --- a/auto_pt/views.py +++ b/auto_pt/views.py @@ -563,7 +563,7 @@ def site_status_api(request): 'uploaded': 0, 'downloaded': 0, 'seeding_size': 0, - 'last_active': datetime.strftime(my_site.updated_at, '%Y年%m月%d日%H:%M:%S'), + 'last_active': datetime.strftime(my_site.updated_at, '%Y/%m/%d %H:%M:%S'), } else: # continue site_info = site_info_list.first() @@ -611,7 +611,7 @@ def site_status_api(request): 'uploaded': site_info.uploaded, 'downloaded': site_info.downloaded, 'seeding_size': site_info.seed_vol, - 'last_active': datetime.strftime(site_info.updated_at, '%Y年%m月%d日%H:%M:%S'), + 'last_active': datetime.strftime(site_info.updated_at, '%Y/%m/%d %H:%M:%S'), } status_list.append(site_info) # 按上传量排序 diff --git a/templates/auto_pt/status.html b/templates/auto_pt/status.html index 7f040d3..cd9931b 100644 --- a/templates/auto_pt/status.html +++ b/templates/auto_pt/status.html @@ -16,8 +16,8 @@ .site-logo:hover { cursor: pointer; - transform: scale(1.5); - transition: all 0.2s; + transform: scale(1.3); + transition: all 0.3s; text-underline: #000b16; color: orange; margin-top: -25px; @@ -219,21 +219,28 @@
- + - -
- - + + {# #} + + {# #} + + {# #} + {# 下拉菜单#} + {# #} +
@@ -248,35 +255,46 @@ - - + + - +
- - 签到 - - - + + + 签到 - - - 更新 - - {# 编辑#} - {# #} - 历史 - + + + + + 更新 + + + 历史 + + + 编辑 + + + + +

@@ -545,7 +563,7 @@ site_list: [], addMySiteForm: { id: 0, - site: 0, + site: null, sign_in: true, hr: false, search: true, @@ -799,6 +817,9 @@ }) }, getSiteList(id) { + if (null == id) { + id = 0 + } axios.get( "{% url 'get_site_list' %}" + '?id=' + id ).then(res => {