摘要微信公众号的推广下,在微信公众号下面开发了很多相关的程序,因为很多地方都需要基于大屏幕的抽奖互动程序,比如:学校很多地方的主题晚会,或者公司的年会等推广性的活动中,都会出现抽奖程序来活跃程序,所以我开发了一个基于微信公众号的摇一摇抽奖程序。73962
摇一摇抽奖程序在设计的过程中,我想到了摇奖前的留言互动模块,在这个模块中可以为摇一摇抽奖来预热气氛,通过手机可以把自己想要说的话实时的发送到大屏幕上。然后就是摇一摇抽奖,这个是依托于微信公众号,不需要用户的注册和填写信息,就能获取到微信本身的用户信息,然后通过手机的重力感应来完成摇一摇这个互动环节,再通过SingalR来实现前后台的实时通信,让用户在界面上能像赛跑一样来完成一次抽奖。在摇奖结束后能把名次公布出来,实现活跃气氛和抽奖的功能。
在自己本地搭建了测试环境,然后通过花生壳把内网映射到了公网后,经过测试,完成了10个人的摇一摇抽奖的过程,效果非常的好。这个设计可以完成需求。
毕业论文关键字:微信 C# ASP。NET MVC SignalR 摇一摇
WeChat Lottery Program
Abstract Under the promotion of micro-channel public number, in the micro-channel public number following the development of a number of related procedures, because a lot of places need to be based lottery tile big screen, such as: schools in many parts of the theme parties or the company's annual meeting and other promotional activities the program will appear to draw an active program, so I developed based on a micro-channel public numbers shake lottery program。
Shake lottery program in the design process, I think the message interaction module lottery before in this module can shake lottery preheated atmosphere, through the mobile phone can say they want to send real-time on the big screen。 And then shake lottery, this is relying on the micro-channel public number, does not require users to register and fill in the information, you can get to the micro channel itself, user information, and then through the phone's gravity sensor to complete shake this interactive session, then to achieve real-time communication through SingalR front and back, allowing the user interface to be like in the race to finish as a draw。 At the end of the lottery can ranking announced, to achieve active atmosphere and draw functions。
Set up their own local test environment, and then the peanut shells network is mapped to a public network, the tested, 10 people completed the process shake lottery, the effect is very good。 This design can be done needs。
Keywords: WeChat C# ASP。NET MVC SignalR Shake
目录
1绪论 1
1。1研究背景和意义 1
1。2主要工作内容 1
2系统开发的相关技术与工具 2
2。1 C#简介 2
2。2 MICROSOFTVISUALSTUDIO2013 3
2。3 。NETFRAMEWORK框架 3
2。4 ASP。NET 3
2。5 MICROSOFTSQLSERVER简介 4
3系统需求及设计方案 5
3。1数据库设计方案 5
3。2系统设计方案 5
4系统实现 7
4。1程序实现