史景允 贺松 贾龙 任恒怡



【摘 要】随着社会的快速发展,人们对物质生活水平的要求急剧增高,健康意识和疾病防范意识也是不断增强,在这样的形势下,传统医疗应付这样的形势就显得有些相形见绌,互联网医疗应运而生。本论文就是在“互联网+”的背景下,提供一种互联网与医疗的结合方式。网站系统前端基于Extjs MVVM框架,后端基于Thinkphp MVC框架。文章主要介绍以下几部分:框架、开发流程、功能的整体设计、前端功能的实现和后端功能的实现(包括数据库的设计)。
【关键词】互联网医疗;互联网+;Extjs MVVM;Thinkphp MVC
【Abstract】With the rapid development of society, peoples material life level requirement increased sharply, health consciousness and disease awareness is also growing, in such a situation, the traditional medical coping with such a situation is difficulting, Internet medical arises at the historic moment.This thesis is under the background of “Internet +”, providing a way of the combination of the Internet and health care. Website system front-end based on Extjs MVVM framework and back-end based on the Thinkphp MVC framework.The article mainly introduces the following parts: frame, development process, the function of the overall design,The realization of the function of the front-end and back-end(including the design of the database).
【Key words】The health management system; Extjs MVVM; Thinkphp MVC; Medical
1 框架结构简介
1.1 ThinkPHP MVC[1]
MVC英文即Model- View- Controller,它是把一个应用的输入、处理、输出流程按照Model(模型层), View(视图层), Controller(控制层)三层进行强制分离。
View层代表与用户交互的界面,对于Web应用来说,也可以大概概括为HTML界面,但MVC设计模式对于视图的处理仅限于View上数据的采集和处理,相关的业务流程的处理不是在这里实现的。
Model层就是业务流程/状态的处理以及业务规则的制定,是整个MVC的核心。模型层接受View层请求的数据,返回处理结果。数据的处理、逻辑和功能的计算都是在这里完成的。
Controller层用来接受用户的操作并调用模型和视图完成用户的需求。可以理解为从用户接收请求,将模型与视图匹配在一起,共同完成用户的请求。划分控制层的作用也很明显,控制器就是一个分发器,选择什么样的模型,选择什么样的视图,可以完成什么样的用户请求。控制层并不做任何的数据处理,它接受用户的输入并调用模型和视图去完成用户的需求。……