| With the rapid development of society and economy,people get used to buy things through the internet.As an indispensable commodity in people's daily life,fresh agricultural products have also appeared in the"Internet + e-commerce platform"business sales model,which can solve the agricultural product sales dilemma to a certain extent.In order to overcome the weakness of the e-commerce website's poor mobility and solve the"last one mile"problem of distribution,the community-based 020 fresh selling model will solve the above drawbacks to a certain extent.This topic uses hierarchical design to build Android end architecture,which divides the system into presentation layer,business logic layer,model layer and data persistence layer.The presentation layer includes various pages of Android client,such as product information interface and shopping cart page.The business logic layer is divided into two modules:core business and tool class.The core business includes commodity display,commodity search,shopping cart management,order management and evaluation management.The tool class module includes dialog boxes for Android clients to interact with users,image loading processing tools,JSON data processing tools for data interaction,and network request tools.The model layer includes the main entity objects of the system,such as commodities,orders,order details,commodity classifications,etc.The database persistence layer,or DAO layer,is responsible for accessing and storing system data.The fresh agricultural products mall system is realized by MVC design mode.The system mainly includes six modules:user management module,shopping cart management module,commodity display module,order management module,attention management module and evaluation management module.Among them,Andriod uses Material Design UI elements,mainly including user management,shopping cart management and other major functions.User management module includes registration,login,user information management and so on.The shopping cart management module is for registered users,including three main functions:adding shopping cart,viewing shopping cart and editing shopping cart.Service and background management are implemented by using lightweight framework SSH under J2EE platform.System administrators complete background management,including order management,commodity management,evaluation/attention management,etc.Among them,the commodity display module mainly includes the functions of commodity addition,search,commodity details and commodity display.For registered users,commodities are recommended according to collaborative filtering algorithm. |