本科毕业设计论文
基于微信小程序的生活助手的设计与实现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
阿里云国际版注册认证教程-免绑卡-免实名买服务器安全、便宜、可靠、良心,支持人民币充值,提供代理折扣简介SunthyCloud成立于2015年,是阿里云国际版正规战略级渠道商,也是阿里云国际版最大的分销商,专业为全球企业客户提供阿里云国际版开户注册、认证、充值等服务,通过SunthyCloud开通阿里云国际版只需要一个邮箱,不需要PayPal信用卡就可以帮你开通、充值、新购、续费阿里云国际版,服务...
v5net当前对香港和美国机房的走优质BGP+CN2网络的云服务器进行7折终身优惠促销,每个客户进线使用优惠码一次,额外有不限使用次数的终身9折优惠一枚!V5.NET Server提供的都是高端网络线路的机器,特别优化接驳全世界骨干网络,适合远程办公、跨境贸易、网站建设等用途。 官方网站:https://v5.net/cloud.html 7折优惠码:new,仅限新客户,每人仅限使用一次 9...
快云科技: 11.11钜惠 美国云机2H5G年付148仅有40台,云服务器全场7折,香港云服务器年付388仅不到五折 公司介绍:快云科技是成立于2020年的新进主机商,持有IDC/ICP/ISP等证件资质齐全主营产品有:香港弹性云服务器,美国vps和日本vps,香港物理机,国内高防物理机以及美国日本高防物理机官网地址:www.345idc.com活动截止日期为2021年11月13日此次促销活动提供...