基于微信小程序的天气预报设计与实现
2022-10-25 14:41:58
论文总字数:28046字
摘 要
在本世纪,互联网迎来了巨大的发展,计算机硬件的不断优化,计算机网络技术、计算机软技术的不断成熟。大数据、智能化耳熟能详,与此同时,电脑、手机终端的普及和迅速发展。给电脑、手机应用提供了一个巨大的舞台,无论是国外的苹果还是三星,还是国内的华为和小米都以一个系列平均一年一到两部的更新。手机客户端的迅猛发展,从侧面显示了人们生活水平的提高,文化娱乐方式的更迭。手机客户端必然伴随着手机APP的发展,在互联网的大环境下,各种依附互联网,手机终端的新型文化平台层出不穷。如:淘宝客户端、支付宝、微信等。
手机应用依托强大的终端平台,在简单性、易操作性、安全性都有很大的提高。技术的更新促使人们交往的加深,其中支付宝、微信尤为突出。它们不仅集成了聊天、支付还包含着许许多多的第三方应用。尤其是微信在2018年全面开放,微信是把小程序推向移动互联网舞台焦点的重要推手。微信公众平台的出现推动了自媒体的快速发展,个人就可以注册微信公众平台,发表自己的言论和看法一次经营自己的平台环境。然而微信平台的作用并不如此,退信今年推出的线上移动支付和小程序更是让人们重新定义了支付和程序的概念。只需要添加和授权便可以使用或查询信息,甚至可以玩游戏,看电影,不需要下载和安装。这大大增强了微信的实用性和手机内存的短板问题。
我的微信小程序就是基于微信公众平台设计和实现的,它只需要在手机微信客户端添加和授权就可以添加到微信应用中来,下次查询天气只需要滑动界面便可以查询天气情况。微信小程序的语言和程序框架是微信团队继承和发展Html和JavaScript等语言的结果,所以开发起来并不需要过多的学习,只需要有一定的前段基础便可以开发自己的微信小程序,这种简单易懂的框架设计,和平民化的语言要求无疑鼓励每一个热爱设计和有想法的人尽情的在微信平台上展现自己的想法。
关键字:手机客户端,微信小程序,天气预报;
Design and Implement of Weather Forecast Based
on Wechat Program
Abstract
In this century, the Internet ushered in tremendous development, the continuous optimization of computer hardware, computer network technology, computer software technology continues to mature. Big data, intelligent and well-known, at the same time, the popularity and rapid development of computer and mobile terminal. It provides a huge stage for computer and mobile applications. Whether it's Apple or Samsung abroad or Huawei and Millet in China, they are updated one or two times a year on average in a series. The rapid development of mobile client shows the improvement of people's living standard and the change of culture and entertainment. Mobile client is bound to be accompanied by the development of mobile APP. Under the Internet environment, various new cultural platforms of mobile terminal emerge in endlessly. Such as: Taobao client, Alipay, WeChat and so on..
Mobile application relies on powerful terminal platform, which greatly improves its simplicity, ease of operation and security. The renewal of technology has deepened people's communication, especially Alipay and WeChat. They not only integrate chat and payment, but also contain many third-party applications. In particular, Wechat will be fully open in 2018. Wechat is an important pusher to push small programs to the focus of the mobile Internet stage. The emergence of Wechat public platform promotes the rapid development of self-media. Individuals can register Wechat public platform, express their views and opinions, and run their own platform environment at a time. However, the role of the Wechat platform is not the same. The online mobile payment and small programs launched this year make people redefine the concept of payment and procedures. Only need to add and authorize to use or query information, and even play games, watch movies, do not need to download and install. This greatly enhances the practicability of Wechat and the shortboard problem of mobile memory.
My Wechat applet is designed and implemented based on the Wechat public platform. It can be added to the Wechat application only by adding and authorizing the mobile phone's Wechat client. Next time we query the weather, we only need a sliding interface to query the weather. The language and program framework of Wechat applet is the result of the Wechat team's inheritance and development of Html and JavaScript, so it does not need too much learning to develop it. It only needs a certain foundation of the preceding paragraph to develop its own Wechat applet. This simple and understandable framework design and civilian language requirements undoubtedly encourage everyone who loves design and has ideas to do their best. Emotional on the Wechat platform to show their ideas.
Key words: mobile phone, Wechat, weather forecast;
目录
Abstract II
第一章 引言 1
第二章 程序概述 2
2.1程序简述 2
2.2系统总体思想 2
2.3程序开发意义 2
第三章 程序分析 3
3.1 硬件环境 3
3.2 软件环境 3
3.3 系统设计条件 3
3.4 程序功能分析 3
3.4.1 功能结构图 3
3.4.2程序模块分析 4
第四章 程序设计分析 5
4.1 HTML、CSS、JavaScrip语言和微信小程序框架简介 5
4.1.1 HTML语言特点 5
4.1.2 CSS语法特点 5
4.1.3 JavaScript语法特点 5
4.1.4 微信小程序框架简介 6
4.1.5 微信小程序的API 7
4.1.6 框架分析(MINA) 7
4.1.7 微信小程序的文件结构 9
4.2小程序配置 9
4.2.1 配置 9
4.2.2 注册微信公众平台 14
4.2.3 注册百度地图开方平台账户 16
4.2.4 实现方法 18
第五章 交互模型 21
5.1构建顺序模型 21
5.1.1准备场景 21
5.1.2顺序图 21
5.2构建活动模型 22
5.2.1确定活动 22
5.2.2活动图 23
第六章 系统实现 24
6.1优化模型分析 24
6.2 程序交互设计 24
6.3 用户界面设计 24
6.3.1 程序演示界面 24
6.3.2 搜索输入框 25
6.3.3 搜索框信息反馈 25
6.3.4代码分析 26
第七章 结束语 41
参考文献 42
第一章 引言
剩余内容已隐藏,请支付后下载全文,论文总字数:28046字