diff --git a/.idea/workspace.xml b/.idea/workspace.xml index 6dbd10c..c4489e3 100644 --- a/.idea/workspace.xml +++ b/.idea/workspace.xml @@ -2,24 +2,10 @@ - - - - + - - - - - - - - - - - - + - + @@ -43,6 +29,49 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + @@ -61,29 +90,11 @@ - - - - - - - - - - - - - - - - - - - - + + @@ -91,15 +102,6 @@ - - - - - - - - - @@ -118,15 +120,6 @@ - - - - - - - - - @@ -171,7 +164,6 @@ @@ -198,9 +192,9 @@ - @@ -224,8 +218,7 @@ - - + @@ -243,33 +236,41 @@ - + - + + - + + - - + + - - + + + + + + + + @@ -278,6 +279,13 @@ + + + + + + + @@ -388,7 +396,14 @@ @@ -401,10 +416,9 @@ - - + - + @@ -419,7 +433,7 @@ - + @@ -443,14 +457,6 @@ - - - - - - - - @@ -620,13 +626,6 @@ - - - - - - - @@ -684,13 +683,6 @@ - - - - - - - @@ -736,16 +728,6 @@ - - - - - - - - - - @@ -786,5 +768,50 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/web/controllers/account/Account.py b/web/controllers/account/Account.py index 7b8f8c0..1acef2c 100644 --- a/web/controllers/account/Account.py +++ b/web/controllers/account/Account.py @@ -1,12 +1,15 @@ # -*- coding: utf-8 -*- from flask import Blueprint from common.libs.Helper import ops_render - +from common.models.User import User route_account = Blueprint( 'account_page',__name__ ) @route_account.route( "/index" ) def index(): - return ops_render( "account/index.html" ) + resp_data={} + list = User.query.order_by(User.uid.desc()).all() + resp_data['list']=list + return ops_render( "account/index.html" ,resp_data) @route_account.route( "/info" ) def info(): diff --git a/web/templates/account/index.html b/web/templates/account/index.html index e554423..7dcb1c7 100644 --- a/web/templates/account/index.html +++ b/web/templates/account/index.html @@ -45,7 +45,7 @@ - +
@@ -56,24 +56,37 @@ + {% if list %} + {% for item in list %} - - - - + + + + + {% endfor %} + {% else %} + + {% endif %}
序号
1编程浪子211012031511apanly@163.com{{ item.uid }}{{ item.nickname }}{{ item.mobile }}{{ item.email }} - + - + + {% if item.status == 1 %} + - + + {% else %} + + + + {% endif %}
暂无数据~~
diff --git a/web/templates/common/pagenation.html b/web/templates/common/pagenation.html new file mode 100644 index 0000000..a2d6305 --- /dev/null +++ b/web/templates/common/pagenation.html @@ -0,0 +1,25 @@ +
+
+ 共{{ pages.total }}条记录 | 每页{{pages.page_size}}条 + +
+