基于微信小程序的家具购物小程序的设计与实现

基于微信小程序的家具购物小程序的设计与实现 摘要

随着信息技术在管理上越来越深入而广泛的应用,管理信息系统的实施在技术上已逐步成熟。本文介绍了基于微信小程序的家具购物小程序的设计与实现的开发全过程。通过分析基于微信小程序的家具购物小程序的设计与实现管理的不足,创建了一个计算机管理基于微信小程序的家具购物小程序的设计与实现的方案。文章介绍了基于微信小程序的家具购物小程序的设计与实现的系统分析部分,包括可行性分析等,系统设计部分主要介绍了系统功能设计和数据库设计。
本基于微信小程序的家具购物小程序有管理员和用户两个角色。管理员功能主要在后台浏览器操作,有个人中心,用户管理,家具分类管理,家具新品管理,订单管理和系统管理。用户主要在微信小程序注册与登录,可以查看管理员发布的家具信息并且可以购买操作。因而具有一定的实用性。
本站后台采用PHP的TP5框架进行后台管理开发,可以在浏览器上登录进行后台数据方面的管理,MySQL作为本地数据库,微信小程序用到了微信开发者工具,充分保证系统的稳定性。系统具有界面清晰、操作简单,功能齐全的特点,使得基于微信小程序的家具购物小程序的设计与实现管理工作系统化、规范化。

关键词:基于微信小程序的家具购物小程序的设计与实现;TP5框架;MYSQL数据库

Abstract

With the more and more in-depth and extensive application of information technology in management, the implementation of management information system has gradually matured in technology. This paper introduces the entire development process of the design and implementation of the furniture shopping applet based on the WeChat applet. By analyzing the deficiencies of the design and implementation management of the furniture shopping applet based on the WeChat applet, a computer management scheme for the design and implementation of the furniture shopping applet based on the WeChat applet is created. The article introduces the system analysis part of the design and implementation of the furniture shopping applet based on WeChat applet, including feasibility analysis, etc. The system design part mainly introduces the system function design and database design.
This furniture shopping applet based on WeChat applet has two roles of administrator and user. The administrator function is mainly operated in the background browser, including personal center, user management, furniture classification management, new furniture management, order management and system management. Users mainly register and log in in the WeChat applet, can view the furniture information released by the administrator and can purchase the operation. Therefore, it has certain practicality.
The background of this site adopts the TP5 framework of PHP for background management and development. You can log in on the browser to manage the background data. MySQL is used as the local database, and the WeChat applet uses the WeChat developer tool to fully ensure the stability of the system. The system has the characteristics of clear interface, simple operation and complete functions, which makes the design and implementation of furniture shopping applet based on WeChat applet systematized and standardized.
Keywords:Design and implementation of furniture shopping applet based on WeChat applet; TP5 framework; MYSQL database

目录

1系统概述 1
1.1 研究背景 1
1.2研究目的 1
1.3系统设计思想 1
2相关技术 3
2.1微信小程序 3
2.2 MYSQL数据库 3
2.3 uni-app 4
2.4 TP5框架简介 4
3系统分析 4
3.1可行性分析 4
3.1.1技术可行性 5
3.1.2经济可行性 5
3.1.3操作可行性 5
3.2系统性能分析 5
3.2.1 系统安全性 5
3.2.2 数据完整性 6
3.3系统界面分析 6
3.4系统流程和逻辑 7
4系统概要设计 8
4.1概述 8
4.2系统结构 9
4.3.数据库设计 9
4.3.1数据库实体 9
4.3.2数据库设计表 11
5系统详细实现 14
5.1 管理员模块的实现 14
5.1.1 用户管理 14
5.1.2 家具分类管理 15
5.1.3 家具新品管理 16
5.1.4 家具广告管理 16
5.2 小程序用户模块的实现 17
5.2.1 首页 17
5.2.2 家具信息 17
5.2.3 我的 18
6系统测试 20
6.1概念和意义 20
6.2特性 20
6.3重要性 21
6.4测试方法 21
6.5 功能测试 21
6.6可用性测试 22
6.7性能测试 22
6.8测试分析 23
6.9测试结果分析 23
结论 23
致谢语 24
参考文献 24

1 系统概要设计

4.1概述
本系统后台采用B/S结构(Browser/Server,浏览器/服务器结构)和基于Web服务两种模式,是一个适用于Internet环境下的模型结构。只要用户能连上Internet,便可以在任何时间、任何地点使用。系统工作原理图如图4-1所示:
在这里插入图片描述

图4-1系统工作原理图
4.2系统结构
设计的管理员主要是提供的一些基础信息服务。设计的管理员功能结构图如下图所示:
在这里插入图片描述

图4-2管理员功能结构图

4.3.数据库设计
4.3.1数据库实体
概念设计的目标是设计出反映某个组织部门信息需求的数据库系统概念模式,数据库系统的概念模式独立于数据库系统的逻辑结构、独立于数据库管理系统(DBMS)、独立于计算机系统。
概念模式的设计方法是在需求分析的基础上,用概念数据模型(例如E-R模型)表示数据及数据之间的相互联系,设计出反映用户信息需求和处理需求的数据库系统概念模式。概念设计的目标是准确描述应用领域的信息模式,支持用户的各种应用,这样既容易转换为数据库系统逻辑模式,又容易为用户理解。数据库系统概念模式是面向现实世界的数据模型,不能直接用于数据库系统的实现。在此阶段,用户可以参与和评价数据库系统的设计,从而有利于保证数据库系统的设计与用户的需求相吻合。在概念模式的设计中,E-R模型法是最常见的设计方法。本系统的E-R图如下图所示:
(1) 用户信息的实体属性图如下:
在这里插入图片描述

图4.12 用户信息实体属性图
(2)管理员实体属性图如图4.13所示:
在这里插入图片描述

图4.13 管理员实体属性图
(3)家具分类信息实体属性图如图4.14所示:
在这里插入图片描述

图4.14 家具分类信息实体属性图
4.3.2数据库设计表
基于微信小程序的家具购物小程序的设计与实现需要后台数据库,下面介绍数据库中的各个表的详细信息:

1家具新品评论表
序号 列名 数据类型 说明 允许空
1 Id Int id 否
2 addtime Date 创建时间 是
3 refid Integer 关联表id 是
4 userid Integer 用户id 是
5 nickname String 用户名 是
6 content String 评论内容 是
7 reply String 回复内容 是
2家具广告表
序号 列名 数据类型 说明 允许空
1 Id Int id 否
2 addtime Date 创建时间 是
3 title String 标题 是
4 introduction String 简介 是
5 picture String 图片 是
6 content String 内容 是
3地址表
序号 列名 数据类型 说明 允许空
1 Id Int id 否
2 addtime Date 创建时间 是
3 userid Integer 用户id 是
4 address String 地址 是
5 name String 收货人 是
6 phone String 电话 是
7 isdefault String 是否默认地址[是/否] 是
4家具新品表
序号 列名 数据类型 说明 允许空
1 Id Int id 否
2 addtime Date 创建时间 是
3 jiajumingcheng String 家具名称 是
4 jiajufenlei String 家具分类 是
5 jiajutupian String 家具图片 是
6 jiajuxiangqing String 家具详情 是
7 thumbsupnum Integer 赞 是
8 crazilynum Integer 踩 是
9 price float 价格 是
5用户表
序号 列名 数据类型 说明 允许空
1 Id Int id 否
2 addtime Date 创建时间 是
3 zhanghao String 账号 是
4 mima String 密码 是
5 yonghu String 用户 是
6 xingbie String 性别 是
7 shouji String 手机 是
8 youxiang String 邮箱 是
9 touxiang String 头像 是
10 money float 余额 是
6家具分类表
序号 列名 数据类型 说明 允许空
1 Id Int id 否
2 addtime Date 创建时间 是
3 jiajufenlei String 家具分类 是
7订单表
序号 列名 数据类型 说明 允许空
1 Id Int id 否
2 addtime Date 创建时间 是
3 orderid String 订单编号 是
4 tablename String 商品表名 是
5 userid Integer 用户id 是
6 goodid Integer 商品id 是
7 goodname String 商品名称 是
8 picture String 商品图片 是
9 buynumber Integer 购买数量 是
10 price float 价格/积分 是
11 discountprice float 折扣价格 是
12 total float 总价格/总积分 是
13 discounttotal float 折扣总价格 是
14 type Integer 支付类型 是
15 status String 状态 是
16 address String 地址 是
17 tel String 电话 是
18 consignee String 收货人 是
8收藏表
序号 列名 数据类型 说明 允许空
1 Id Int id 否
2 addtime Date 创建时间 是
3 userid Integer 用户id 是
4 refid Integer 收藏id 是
5 tablename String 表名 是
6 name String 收藏名称 是
7 picture String 收藏图片 是
9配置文件表
序号 列名 数据类型 说明 允许空
1 Id Int id 否
2 name String 配置参数名称 是
3 value String 配置参数值 是
10购物车表
序号 列名 数据类型 说明 允许空
1 Id Int id 否
2 addtime Date 创建时间 是
3 tablename String 商品表名 是
4 userid Integer 用户id 是
5 goodid Integer 商品id 是
6 goodname String 商品名称 是
7 picture String 图片 是
8 buynumber Integer 购买数量 是
9 price float 单价 是
10 discountprice float 会员价 是
11用户表
序号 列名 数据类型 说明 允许空
1 Id Int id 否
2 username String 用户名 是
3 password String 密码 是
4 role String 角色 是
5 addtime Date 新增时间 是

2 系统详细实现

5.1 管理员模块的实现
5.1.1 用户管理
管理员可以管理用户信息,可以查看用户信息,删除用户信息。具体界面的展示如图5.1所示。
在这里插入图片描述

图5.1 用户管理界面
5.1.2 家具分类管理
管理员可以对家具分类进行添加,修改,查询或删除操作。具体界面如图5.2所示。
在这里插入图片描述

图5.3 家具分类管理界面
5.1.3 家具新品管理
管理员可以对家具新品信息进行添加,修改,删除,查询操作。界面如下图所示:
在这里插入图片描述

图5.4 家具新品信息界面
5.1.4 家具广告管理
管理员可以对家具广告信息进行添加,修改,删除,查询操作。界面如下图所示:
在这里插入图片描述

图5.4 家具广告管理界面

5.2 小程序用户模块的实现
5.2.1 首页
小程序用户可以在首页查看家具新品信息,下面是导航栏。界面如下图所示:

在这里插入图片描述

图5.5 首页界面
5.2.2 家具信息
用户可以查看家具信息,可以对家具信息进行添加到购物车,收藏,立即订购操作。
在这里插入图片描述

图5.6 家具信息界面
5.2.3 我的
用户在我的界面可以充值,查看自己的购物车和订单信息。界面如下图所示:
在这里插入图片描述

图5.7 我的界面

  • 28
    点赞
  • 21
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值