本科毕业设计论文
基于微信小程序的生活助手的设计与实现Design and Implementation of Life AssistantBased on WeChat Mini Program
院 系 计算机学院
专 业 网络工程
班 级 三班
学 号 16210220315
学生姓名 温维聪
指导教师 黄晴晴
提交日期 2020年04月17日
毕业设计论文原创性声明
本人郑重声明所呈交的毕业设计论文 是本人在指导老师的指导下独立进行的设计研究工作及取得的成果论文中引用他人的文献、数据、图件、资料均已明确标注出论文中的结论和结果为本人独立完成不包含他人已经发表或撰写的作品及成果。对本文的研究作出贡献的个人和集体均已在论文中作了明确的说明。本人完全意识到本声明的法律结果由本人承担。
毕业论文作者签字 签字日期 年 月 日
成绩评定
注毕业设计论文成绩按百分制评定。答辩成绩不及格的评分低于60分的 则该毕业设计论文总评成绩为答辩成绩。
摘 要
本文主要设计并实现了一款基于微信小程序的生活助手开发生活助手的一个方案该设计主要用于解决互联网时代下快节奏的生活对信息获取的日益破解和日益臃肿的应用程序的矛盾 以此来带给人们获取信息更加轻便快捷的体验。
本设计的生活助手小程序的设计和实现包含应用前端和管理后台两个部分其中前端运用了JavaS cript技术并利用微信小程序独有的视图层来完成我们的界面渲染。前端界面主要实现了“天气信息” 、 “股票信息” 、 “笑话阅读” 、 “历史上的今天” 、 “星座运势” 、 “图片备份” 、 “备忘录” 、 “计算器” 、 “事件助手”等功能管理后台使用Django框架通过微信小程序提供的AP I进行前后台数据互连 。从而实现的“个人生活助手”基于“轻”应用的潮流和个人便利生活的需求。
关键词 Django JavaS cript微信小程序
Abstract
This article mainly designs and implements a life as sistant basedon WeChat applet, and develops a solution for life assistant.The designis mainly used to solve the contradiction between the increasinglycracked and increasingly bloated applications of fast-paced life in theInternet era. , In order to give people a more convenient and fasterexperience in obtaining information.
The design and implementation of the designed life assistant appletincludes the application front end and the management back end.Thefront end uses JavaScript technology and uses the unique view layer ofthe WeChat applet to complete our interface rendering.The front-endinterface mainly implements "weather information", "stockinformation", "joke reading", "historical today", "horoscope", "picturebackup", "memo", "calculator", "event as sistant"And other functions;the management background uses the Django framework, and the dataconnection between the front and background is performed through theAPI provided by the WeChat applet.The "personal life assistant" thusrealized is based on the trend of"light" applications and the needs ofp ersonal c onvenienc e.
Key words: Django JavaScript Applet of WeChat
目 录
第一章绪论.....................................................................................1
1. 1项目背景与意义. . . . . . . . . . . . . . . . . . . . . . . . . . . . .1
1.2国内外发展状态. . . . . . . . . . . . . . . . . . . . . . . . . . . . .2
1.2. 1国内外研究现状. . . . . . . . . . . . . . . . . . . . . . . . . . . .2
第二章相关理论与开发技术综述....................................................3
2. 1微信小程序. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .3
2. 1. 1微信小程序简介. . . . . . . . . . . . . . . . . . . . . . . . . . . .3
2. 1.2微信小程序开发工具. . . . . . . . . . . . . . . . . . . . . . . .4
2.2技术开发模式. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .4
2.2. 1MVC设计模式. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .4
2.2. 2MTV设计模式. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .5
2.3技术架构. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .6
2.3. 1小程序框架. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .6
2.3.2小程序API. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .7
2.3.3后端Django框架. . . . . . . . . . . . . . . . . . . . . . . . . . .8
2.4开发环境及配置. . . . . . . . . . . . . . . . . . . . . . . . . . . . .8
2.5本章小结. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .9
第三章需求分析与设计.................................................................10
3. 1需求分析. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .10
3. 1. 1市场需求分析. . . . . . . . . . . . . . . . . . . . . . . . . . . . .10
3. 1.2可行性分析. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .11
3. 1.3功能需求分析. . . . . . . . . . . . . . . . . . . . . . . . . . . . .11
3.2系统设计. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .12
3.2. 1小程序设计原则. . . . . . . . . . . . . . . . . . . . . . . . . . .12
3.2. 2 Django设计原则. . . . . . . . . . . . . . . . . . . . . . . . . .12
3.3系统设计. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .13
3.3. 1系统总体设计. . . . . . . . . . . . . . . . . . . . . . . . . . . . .13
3.3.2系统功能设计. . . . . . . . . . . . . . . . . . . . . . . . . . . . .13
3.4本章小结. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .13
第四章数据库设计与实现.............................................................15
4. 1数据库E-R关系设计. . . . . . . . . . . . . . . . . . . . . . . .16
4.2数据库表设计. . . . . . . . . . . . . . . . . . . . . . . . . . . . .17
4.3本章小结. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .23
第五章程序功能模块实现.............................................................24
5. 1小程序前端界面设计与实现. . . . . . . . . . . . . . . . . . .24
5. 1. 1 “首页”页面. . . . . . . . . . . . . . . . . . . . . . . . . . . . .24
5. 1. 2 “周边”页面. . . . . . . . . . . . . . . . . . . . . . . . . . . . .25
5. 1. 3 “应用功能”页面. . . . . . . . . . . . . . . . . . . . . . . . . .26
5. 1.4 “个人中心”页面. . . . . . . . . . . . . . . . . . . . . . . . . .27
5.2小程序前端核心功能实现. . . . . . . . . . . . . . . . . . . . .29
5.2. 1图片备份功能实现. . . . . . . . . . . . . . . . . . . . . . . . .29
5.2.2计算器功能实现. . . . . . . . . . . . . . . . . . . . . . . . . . .30
5.2.3备忘录功能实现. . . . . . . . . . . . . . . . . . . . . . . . . . .30
5.2.4事件助手功能实现. . . . . . . . . . . . . . . . . . . . . . . . .32
5.3后端核心功能实现. . . . . . . . . . . . . . . . . . . . . . . . . .35
5.3. 1用户状态绑定功能实现. . . . . . . . . . . . . . . . . . . . . .34
5.3.2后端AP I数据调取实现. . . . . . . . . . . . . . . . . . . . . .35
5.3.3后端缓存模块. . . . . . . . . . . . . . . . . . . . . . . . . . . . .36
5.4本章小结. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .38
第六章系统功能测试....................................................................38
6. 1测试目标. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .38
6.2页面及功能测试. . . . . . . . . . . . . . . . . . . . . . . . . . . .38
6.2. 1模拟器调试体验评分. . . . . . . . . . . . . . . . . . . . . . .38
6.2. 2真机调试. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .38
6.3兼容性测试. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .44
6.4本章小结. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .45
第七章总结与展望........................................................................46
7. 1总结. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .46
7.2展望. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .47
参考文献...................................................................................48
致谢...............................................................................................48
ucloud香港服务器优惠降价活动开始了!此前,ucloud官方全球云大促活动的香港云服务器一度上涨至2核4G配置752元/年,2031元/3年。让很多想购买ucloud香港云服务器的新用户望而却步!不过,目前,ucloud官方下调了香港服务器价格,此前2核4G香港云服务器752元/年,现在降至358元/年,968元/3年,价格降了快一半了!UCloud活动路子和阿里云、腾讯云不同,活动一步到位,...
hypervmart怎么样?hypervmart是一家国外主机商,成立于2011年,提供虚拟主机、VPS等,vps基于Hyper-V 2012 R2,宣称不超售,支持linux和windows,有荷兰和英国2个数据中心,特色是1Gbps带宽、不限流量。现在配置提高,价格不变,性价比提高了很多。(数据中心不太清楚,按以前的记录,应该是欧洲),支持Paypal付款。点击进入:hypervmart官方网...
商家介绍:创梦云是来自国内的主机销售商,成立于2018年4月30日,创梦云前期主要从事免备案虚拟主机产品销售,现在将提供5元挂机宝、特惠挂机宝、香港云服务器、美国云服务器、低价挂机宝等产品销售。主打高性价比高稳定性挂机宝、香港云服务器、美国云服务器、香港虚拟主机、美国虚拟主机。官方网站:http://cmy0.vnetdns.com本次促销产品:地区CPU内存硬盘带宽价格购买地址香港特价云服务器1...