摘 要
现代通信技术与基础设施的不断完善,在电子商务的快速发展下,传统零售生鲜超市面临转型,O2O模式(即线下门店与线上销售结合)是转型的选择路径之一。
本课题采用分层式设计构建了Android端体系结构,将系统分为表现层、业务逻辑层、模型层和数据持久层。表现层包含Android客户端各页面,如商品信息界面和购物车页面等。业务逻辑层分为核心业务和工具类两大模块。核心业务包括商品展示、商品搜索、购物车管理、订单管理和评价管理等功能。工具类模块包括Android客户端与用户交互的对话框、图片加载处理工具、数据交互的JSON数据处理工具以及网络请求工具。模型层包括系统主要实体对象,如商品、订单、订单详情、商品分类等。数据库持久层即DAO层,负责对系统数据的访问与存储。使用MVC设计模式实现了生鲜农产品商城系统,系统主要包含用户管理模块、购物车管理模块、商品展示模块、订单管理模块、评价管理模块等模块。
其中Andriod端使用了Material Design界面UI元素,主要包括用户管理、购物车管理等主要功能。用户管理模块包括注册、登录、用户信息管理等。购物车管理模块面向注册用户,包括加入购物车、查看购物车和编辑购物车三个主要功能。服务与后台管理选用J2EE平台下轻量级框架SSH实现,系统管理员完成后台管理,包括订单管理、商品管理、评价/关注管理等。其中商品展示模块主要包括商品添加、搜索、商品详情以及商品展示等功能,对注册用户,根据协同过滤算法推荐商品。
关键词:Andriod;生鲜APP;购物;商城;SSH
Abstract
With the continuous improvement of modern communication technology and infrastructure, with the rapid development of e-commerce, the traditional retail fresh supermarket is facing the transformation. The O2O mode (that is, the combination of offline stores and online sales) is one of the choice paths for the transformation.
A hierarchical design is used to construct the Android end architecture. The system is divided into presentation layer, business logic layer, model layer and data persistence layer. Presentation layer includes Android client pages, such as commodity information interface and shopping cart pages. The business logic layer is divided into two modules: core business and tool class. The core business includes the functions of commodity display, commodity search, shopping cart management, order management and evaluation management. The tool class module includes dialog box Android client interaction with user, image loading processing tool, JSON data processing tool for data interaction and network request tool. The model layer includes the main entity objects of the system, such as goods, orders, order details, commodity classification, etc. Database persistence layer is DAO layer, which is responsible for accessing and storing system data. By using the MVC design mode, the system of fresh agricultural products mall is realized. The system mainly includes user management module, shopping cart management module, commodity display module, order management module, evaluation management module and so on.
The Andriod end uses Material Design interface UI elements, including user management, shopping cart management and other main functions. User management module includes registration, login, user information management and so on. Shopping cart management module for registered users, including add shopping cart, view shopping cart and edit shopping cart three main functions. Service and background management are implemented J2EE a lightweight framework under SSH platform, and the system administrator completes the background management, including order management, commodity management, evaluation / attention management, etc. The commodity display module mainly includes the functions of commodity addition, search, commodity details and commodity display. For registered users, products are recommended according to collaborative filtering algorithm.
Keywords: Andriod; fresh APP; shopping; mall; SSH