From 5039f5710e4575ecbd9c5bfcc2e349dbe6025bfa Mon Sep 17 00:00:00 2001 From: huangdan <2741654266@qq.com> Date: Mon, 8 May 2023 14:33:48 +0800 Subject: [PATCH] =?UTF-8?q?AJAX=E8=BD=BD=E5=85=A5=E6=96=87=E7=AB=A0?= =?UTF-8?q?=E6=95=B0=E6=8D=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/templates/userpage_get.html | 58 +++++++++++++++++++++++++++++---- app/user_service.py | 30 +++++++---------- 2 files changed, 62 insertions(+), 26 deletions(-) diff --git a/app/templates/userpage_get.html b/app/templates/userpage_get.html index ae11a1c..90c6114 100644 --- a/app/templates/userpage_get.html +++ b/app/templates/userpage_get.html @@ -50,22 +50,22 @@ {# {% endfor %}#} {% if result_of_generate_article != "had read all articles" %} - 下一篇 Next Article + {% endif %} {% if session.get('visited_articles') and session.get('visited_articles')['index']>0 %} - 上一篇 Previous Article + {% endif %}

阅读文章并回答问题

{% if result_of_generate_article == 'found' %} - -

Article added on: {{ today_article["date"] }}


+ +

Article added on: {{ today_article["date"] }}



-

{{ today_article["article_title"] }}


+

{{ today_article["article_title"] }}


{{ today_article["article_body"] }}


-

{{ today_article['source'] }}


-

{{ today_article['question'] }}


+

{{ today_article['source'] }}


+

{{ today_article['question'] }}


{% endfor %} {% endif %} +