梁璐雅-前后端交互

# 一、开发配置 **1、操作系统**: Windows 10 **2.开发软件:** [PyCharm](https://www.baidu.com/s?ie=UTF-8&wd=pycharm) **3.开发硬件:** CPU: 英特尔 Core(TM) i5-10210U 内存:8G 储存:512GB **4.调试环境:** PyCharm **5.开发使用的语言:** JavaScript+HTML+CSS+Python3.6 *参考文档:* [百度](https://www.baidu.com) [StackOverflow](https://stackoverflow.com/) [Flask官方文档](https://dormousehole.readthedocs.io/en/latest/) # 二、各文件作用说明: ## 1.项目地址 [GitHub地址](https://github.com/woodykaixa/BJUTLabServer) ## 2.文件框架 │ app.py //启动程序 │ config.py //配置文件 │ Interface Rule.txt //接口规则文件 │ requirements.txt //项目包配置 │ ├─.idea//系统生成 │ ├─main │ │ auth.py //与个人相关的views │ │ decorators.py //装饰器 │ │ experiment.py //与实验相关的views │ │ forms.py //检查表单验证 │ │ hooks.py │ │ index.py //其他主要views │ │ __init__.py │ │ │ ├─common │ │ │ forms.py //表单验证 │ │ │ __init__.py │ ├─static │ ├─common │ │ │ param.js │ │ │ qiniu.js │ │ │ zlajax.js //前后端交互ajax封装 │ │ │ │ │ ├─images │ │ │ logo.png │ │ │ │ │ └─sweetalert //前端弹出框的封装 │ │ alert.js │ │ sweetalert.css │ │ sweetalert.min.js │ │ │ ├─css │ │ bootstrap-grid.css.map │ │ bootstrap-grid.min.css │ │ bootstrap-grid.min.css.map │ │ bootstrap-reboot.css │ │ bootstrap-reboot.css.map │ │ bootstrap-reboot.min.css │ │ bootstrap-reboot.min.css.map │ │ bootstrap.css │ │ bootstrap.css.map │ │ bootstrap.min.css │ │ bootstrap.min.css.map │ │ common.css │ │ index_custom.css │ │ login_custom.css │ │ register_custom.css │ │ │ ├─img │ │ bg.png │ │ 头像.jpg │ │ │ └─js │ │ aexperiment.js │ │ bootstrap.bundle.js │ │ bootstrap.bundle.js.map │ │ bootstrap.bundle.min.js │ │ bootstrap.bundle.min.js.map │ │ bootstrap.js │ │ bootstrap.js.map │ │ bootstrap.min.js │ │ bootstrap.min.js.map │ │ common.js │ │ forgetpassword.js //忘记密码js │ │ index.js │ │ jquery.js │ │ js.cookie.js │ │ js.cookie.min.js │ │ login.js //登录js │ │ register.js //注册js │ │ │ └─utils_js ├─templates │ │ 404.html │ │ auth_base.html │ │ base.html │ │ experiment_order.html │ │ forget_password.html │ │ index.html │ │ index_base.html │ │ index_base2.html │ │ inform.html │ │ inform_page.html │ │ login.html │ │ me.html │ │ preorder.html │ │ preorder_rules.html │ │ register.html │ │ reserve.html │ │ search.html │ │ │ └─common │ _heads.html │ _macros.html │ ├─utils │ │ exts.py //拓展包 导入需要的拓展 │ │ restful.py //http返回值的封装 │ │ safeutils.py //安全http设定 │ │ SMS.py //手机验证码配置 │ │ __init__.py │ │ │ ├─captcha //图形验证码 │ │ Cookie-Regular.ttf │ │ Courgette-Regular.ttf │ │ euphorig.ttf │ │ LHANDW.TTF │ │ Lobster-Regular.ttf │ │ verdana.ttf │ │ __init__.py ## 3.功能说明 每个完成`.py`文件的功能都在tree里标出