提交 fde470de 编写于 作者: 金晖's avatar 金晖

更新前端框架和页面

上级 56e416b9
...@@ -5,6 +5,7 @@ from pywebio.platform.flask import webio_view ...@@ -5,6 +5,7 @@ from pywebio.platform.flask import webio_view
from flask import Flask from flask import Flask
from model.insurance_page import insurance from model.insurance_page import insurance
from model.upload_file_page import upload_file
app = Flask(__name__) app = Flask(__name__)
...@@ -18,6 +19,9 @@ app.add_url_rule('/web/insurance', '保险测试页面', webio_view(insurance), ...@@ -18,6 +19,9 @@ app.add_url_rule('/web/insurance', '保险测试页面', webio_view(insurance),
app.add_url_rule('/web/get_token', '获取用户token', webio_view(get_token), app.add_url_rule('/web/get_token', '获取用户token', webio_view(get_token),
methods=['GET', 'POST', 'OPTIONS']) # need GET,POST and OPTIONS methods methods=['GET', 'POST', 'OPTIONS']) # need GET,POST and OPTIONS methods
app.add_url_rule('/web/upload_file', '上传逾期文件', webio_view(upload_file),
methods=['GET', 'POST', 'OPTIONS']) # need GET,POST and OPTIONS methods
app.run(debug=True, host='0.0.0.0', port=8889) app.run(debug=True, host='0.0.0.0', port=8889)
......
...@@ -16,7 +16,7 @@ def main_page(): ...@@ -16,7 +16,7 @@ def main_page():
# 左上布局 # 左上布局
[ [
# 放置图片 # 放置图片
put_image(open('static/image/pyWebIO.png', 'rb').read()), put_image(open('./static/image/pyWebIO.png', 'rb').read()),
# 左下布局 # 左下布局
put_scrollable( put_scrollable(
......
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册