随着“互联网+”的大潮兴起,平台型应用再受热捧。其中,微信小程序凭借其强大的用户基础及其应用时的便捷而深受欢迎。在此基础上,以小程序为载体的社群电商,将具有相同兴趣的社群成员组织在一起,推广与之需求高度匹配的产品或服务,轻松实现流量变现。因此,结合以上优势设计并实现基于JavaWeb的小程序商城,具有一定的研究意义和商业价值,符合我国互联网精准化营销和个性化服务的趋势。
本系统主要由微信小程序客户端、服务器、数据管理端构成,前端代码基于Layui,封装工具类,使用的是H-ui Admin。客户端的页面实现通过网络与服务器REST API接口通信获取 MySQL数据。本人重点参与网上购物系统客户端、服务器以及数据库的设计、开发、测试工作。
在系统的设计与实现过程中,对客户端的代码进行全局的MVC模式设计控制,采用template模板增加代码的复用性,并创建客户端用户的token管理机制进行用户身份验证与权限分级。本文重点阐述小程序商城客户端的商品信息展示、商品分类、购物车、下单支付,个人信息管理及数据库设计六大模块的设计和实现过程。 采用了JavaWeb和SSM框架作为后台开发,HTML+JS+CSS和微信web开发工具作为前端开发,遵守微信的开发规范,完成了小程序商城的基本功能,系统运行流畅,可以正常使用。
关键词:电商;JavaWeb;小程序商城;购物;
With the rise of "Internet ",platform-based applications are becoming more popular. Among them,WeChat Mini Program with its strong user base and its application when convenient and popular. On the basis of this,the community e-commerce with the small program as the carrier,will have the same interest community members to organize together,promotes the product or the service which is highly matched with its demand,realizes the flow realization easily. Therefore,combining the above advantages to design and implement the Mini Programs Mall based on Java Web has certain research significance and commercial value,which is in line with the trend of precision marketing and personalized service of the Internet in China.
The system is mainly composed of WeChat Mini Program client,server,data management,front-end code based on Layui,encapsulating tool class,using H-ui Admin. The client's page implementation acquires MySQL data by communicating with the server REST API interface through the network. I focus on the online shopping system client,server and database design,development,testing work.
In the design and implementation of the system,the client's code is controlled by the global MVC pattern design,the template template is used to increase the reusability of the code,and the client's token management mechanism is created for user authentication and permission classification. This paper focuses on the design and implementation of the six modules of the small program mall client's commodity information display,commodity classification,shopping cart,order payment,personal information management and database design. Using Java Web and SSM framework as background development,HTML JSCSS and WeChat web development tool as front-end development Send,abide by the development specifications of WeChat,completed the basic functions of Mini Programs Mall,the system runs smoothly,can be used normally.
Keywords: E-commerce;Java Web;Mini Programs Mall;Shopping;
目 录