Introduction to the blogger: The author of "Vue.js Introduction and Mall Development" and "WeChat Mini Program Mall Development", CSDN blog expert, online education expert, CSDN diamond lecturer; focusing on graduation design education and counseling for college students.
All projects come with basic knowledge video courses from entry to mastery, free of charge
The project is equipped with corresponding development documents, proposal report, task statement, PPT, thesis template, etc.
Contact details are available at the end of the article
Purpose : The main goal of this topic is to design and implement a takeout ordering system based on WeChat mini program. Front-end users use the mini-program, and back-end management uses a B/S architecture based on PHP+MySql; dishes are added through the back-end, and users log in through the mini program. , view dishes, purchase, place orders, etc.
Significance : The WeChat Mini Program takeaway ordering system is a product of the combination of computer technology and catering management. Through the WeChat Mini Program Takeaway Ordering System, efficient management of catering is achieved. With the continuous improvement of computer technology, computers have penetrated into every corner of social life. The manual ordering method is not only inefficient, error-prone, cumbersome, but also consumes a lot of manpower. In order to meet the needs of catering staff for efficient management of ordering, quantity, settlement, etc., on the premise that the staff have certain computer operation capabilities, this WeChat applet takeout ordering system is specially compiled to improve the management efficiency of restaurant ordering.
Development Summary
Development operating system: windows10 + 4G memory + 500G
Mini program development: WeChat developer tools (MINA framework)
Backend environment: PHPstudy integrated environment
Backend development language: PHP
Backend development tool: Dreamweaver or PhpStorm (choose your own development tool)
Database: mysql8
Database management tool: navicat
Other development languages: html + css +javascript
Database ER diagram
Backend management system files
Path: The background source code ht directory is the background
Green shows the system framework, don’t move it
Location |
Program name |
illustrate |
Source code root directory |
login.php |
Backend login page |
Source code root directory |
check_u_login.php |
Background login handler |
ht Backend root directory |
index.php |
Background Home |
left.php |
Backstage left menu |
|
u_logout.php |
sign out |
|
ht/quanxian Password management |
mima.php |
Password change page |
mima_act.php |
Password change program |
|
ht/zixun Information |
zixun_add.php |
Information entry page |
zixun_add_act.php |
Information entry database program |
|
zixun_list.php |
Information list |
|
zixun_xiugai.php |
Information modification page |
|
zixun_xiugai_act.php |
Information modification procedure |
|
zixun_del.php |
information removal process |
|
ht/guanggao Advertisements and messages |
ad_index_wx.php |
Carousel settings page |
ad_index_wx_baocun |
Carousel chart setting program processing |
|
liuyan_list.php |
Message List |
|
liuyan_delt.php |
Delete message |
|
ht/huiyuan member |
hy_list.php |
member list |
hy_del.php |
Member delete |
|
ht/ shangpin Commodities (dishes) |
caidan_1ji.php |
Dishes classification management |
sp_add.php |
menu entry page |
|
sp_add_act.php |
Dishes input program processing |
|
sp_list.php |
menu list |
|
sp_del.php |
Dishes deleted |
|
sp_xiugai.php |
Menu modification page |
|
sp_xiugai_act.php |
Dishes modification program processing |
|
ht/ dingdan Order |
dd_list.php |
Order List |
dd_chuli.php |
Order processing |
Mini program interface file list
Mini program interface
Program name |
Include |
|
front page |
wx_lunbo.php |
Get the top carousel image array (multiple images) |
wx_news_list.php |
Get 3 latest news |
|
wx_CpList_top4.php |
Latest dishes on the shelves (4) |
|
wx_CpList_paihang.php |
Ranking dishes (4) |
|
order |
wx_fenlei.php |
Load left category |
wx_fenlei_chanpin.php |
Load category products |
|
wx_gwc_feiyong.php |
Get cart cost |
|
All dishes and inquiries |
wx_CpList.php |
Load all dishes |
wx_CpList_top4.php |
Latest dishes on the shelves (4) |
|
wx_fenlei.php |
Load categories |
|
Dishes details page |
wx_sp_info-a.php |
Get product information based on product id |
wx_sp_info-b.php |
Get product details based on product id |
|
wx_gwc_add.php |
add to the cart |
|
wx_gwc_add.php |
Purchase: Add to Cart + Jump to Cart |
|
wx_shoucang_add.php |
录入收藏数据 |
|
购物车 |
wx_gwc_list.php |
获取购物车列表 |
wx_gwc_del.php |
删除购物车 |
|
wx_gwc_shuxiugai.php |
更新购物车数据 |
|
wx_gwc_feiyong.php |
获取购物车费用 |
|
下单页面 |
wx_gwc_list.php |
获取下单购物车商品信息 |
wx_dizhi_list.php |
获取地址列表 |
|
wx_dizhi_add.php |
录入下单地址 |
|
wx_gwc_xiadan.php |
提交下单信息 |
|
评论页面 |
wx_AddPinLun.php |
提交评论 |
资讯信息 |
wx_news_list_byid.php |
获取资讯列表 |
wx_news_info.php |
获取资讯信息详情 |
|
留言 |
wx_api_liuyan.php |
提交留言 |
会员 |
wx_check_reg_yonghu.php |
普通用户注册 |
wx_check_login_yonghu.php |
普通用户登录 |
|
wx_check_reg_yonghu-weixin.php |
微信登录 |
|
wx_dingdan_list.php |
加载订单列表 |
|
wx_dingdan_fukuan.php |
模拟付款 |
|
wx_dingdan_del.php |
取消订单 |
|
wx_dingdan_shouhuo.php |
收货 |
|
wx_dizhi_list.php |
加载收货地址 |
|
wx_dizhi_moren.php |
设置默认收货地址 |
|
wx_dizhi_Del.php |
收货地址删除 |
|
wx_dizhi_add.php |
录入收货地址 |
|
wx_dizhi_info.php |
读取收货地址 |
|
wx_dizhi_edit.php |
更新收货地址 |
|
wx_shoucang_list.php |
获取收藏列表 |
|
wx_shoucang_del.php |
删除收藏 |
|
wx_huiyuan_xinxi_byid.php |
读取会员信息 |
|
wx_huiyuan_xinxi_update_byid.php |
更新会员信息 |
|
wx_huiyuan_mima_act.php |
密码修改 |
数据库表
广告表:guanggao
字段名 |
类型 |
备注 |
id |
Int |
自动递增;菜单的id(主键),不允许空 |
wz1 |
longtext |
广告1的文字 |
tpdz1 |
longtext |
广告1的图片地址 |
ljdz1 |
longtext |
广告1的链接地址 |
wz2 |
longtext |
广告2的文字 |
tpdz2 |
longtext |
广告2的图片地址 |
ljdz2 |
longtext |
广告2的链接地址 |
wz3 |
longtext |
广告3的文字 |
tpdz3 |
longtext |
广告3的图片地址 |
ljdz3 |
longtext |
广告3的链接地址 |
会员表:huiyuan
字段名 |
类型 |
备注 |
id |
int |
自动递增;菜单的id(主键),不允许空 |
shouji |
varchar |
手机号:用户名 |
mima |
varchar |
密码 |
xingming |
varchar |
姓名 |
|
varchar |
QQ号 |
|
varchar |
|
wx_openid |
varchar |
登录微信的openid |
wx_nicheng |
varchar |
微信昵称 |
wx_touxiang |
varchar |
微信头像图片地址 |
add_riqi |
date |
写入数据库日期 |
add_shijian |
datetime |
写入数据库时间 |
beizhu |
text |
备注 |
会员地址表:huiyuan_dizhi
字段名 |
类型 |
备注 |
id |
int(11) |
自动递增;菜单的id(主键),不允许空 |
xingming |
varchar(50) |
收货人:姓名 |
shouji |
varchar(50) |
收货人:手机 |
diqu1 |
varchar(50) |
收货人:1级地区 |
diqu2 |
varchar(50) |
收货人:2级地区 |
diqu3 |
varchar(50) |
收货人:3级地区 |
dizhi |
varchar(250) |
收货人:详细地址 |
yn_moren |
tinyint |
是否默认收货人,0普通,1表示默认 |
u_id |
int(11) |
用户id 外键,是哪个用户的收货人信息,是用户表的id |
留言表:liuyan
字段名 |
类型 |
备注 |
id |
Int |
自动递增;菜单的id(主键),不允许空 |
xingming |
varchar |
姓名 |
dianhua |
varchar |
电话 |
youxiang |
varchar |
邮箱 |
zhuti |
varchar |
主题 |
neirong |
longtext |
内容 |
riqi |
datetime |
留言录入数据库的日期 |
shijian |
datetime |
留言录入数据库的时间 |
资讯表:zixun
字段名 |
类型 |
备注 |
id |
Int(11) |
自动递增;菜单的id(主键),不允许空 |
xinxi_lxid1 |
int(11) |
外键:信息1级类型的id,参考资讯类型表的id |
xinxi_biaoti |
varchar(250) |
信息标题 |
xinxi_riqi |
date |
信息日期 |
xinxi_neirong |
text |
内容: |
add_riqi |
date |
写入数据库日期 |
add_shijian |
datetime |
写入数据库时间 |
资讯分类表:zixun_fenlei
字段名 |
类型 |
备注 |
id |
Int(11) |
自动递增;菜单的id(主键),不允许空 |
caidan_mingcheng |
varchar(50) |
菜单名称,允许空 |
paixu_id |
int(11) |
排序数字,数字大的在前面,允许空 |
订单表:dingdan
字段名 |
类型 |
备注 |
id |
Int(11) |
自动递增;菜单的id(主键),不允许空 |
danhao |
Int(11) |
单号; |
u_id |
Int(11) |
用户id; |
u_ip |
varchar(50) |
ip地址;用户注册时候的ip地址;允许空 |
dizhi_id |
Int(11) |
地址id;外键,对应地址表的id; |
beizhu_dingdan |
varchar(250) |
订单备注;允许空 |
feiyong_chengjiao |
double |
成交费用; |
zt |
Int(11) |
订单状态; 状态值:1在购物车;2下单未付款;3已付款,还没发货;4已经发货;5用户已收货 |
shijian_xiadan |
datetime |
下单时间; |
shijian_fukuan |
datetime |
订单付款时间; |
shijian_fahuo |
datetime |
订单发货时间; |
shijian_shouhuo |
datetime |
订单收货时间; |
beizhu_fahuo |
varchar(250) |
订单发货备注信息; 后台管理员可见,用户不可见 |
beizhu_caozuo |
varchar(250) |
订单操作信息 后台管理员可见,用户不可见 |
pinglun_yn |
varchar(50) |
是否评论,默认是否 值:是|否 |
pinglun_id |
int(11) |
评论id,外键,默认是0 刚下单的订单该值是0,只有用户确认收货然后评论后该值对应评论表的id |
商品分类表:shangpin_fenlei
字段名 |
类型 |
备注 |
id |
Int(11) |
自动递增;菜单的id(主键),不允许空 |
caidan_mingcheng |
varchar(50) |
菜单名称,允许空 |
paixu_id |
int(11) |
排序数字,数字大的在前面,允许空 |
商品表:shangpin
字段名 |
类型 |
备注 |
id |
intA(11) |
自动递增;菜单的id(主键),不允许空 |
mingcheng |
varchar(250) |
商品名称 |
lx_id1 |
int(11) |
商品1级类型的id,参考商品类型表的id |
kucun |
int(11) |
库存 |
yixiaoshou |
int(11) |
已销售 |
jiage1 |
double |
整数价格 |
cp_tupian |
varchar(250) |
产品主图 |
cp_tupian_yn |
tinyint(4) |
产品是否有附图 |
cp_tupian1 |
varchar(250) |
产品附图1 |
cp_tupian2 |
varchar(250) |
产品附图2 |
cp_tupian3 |
varchar(250) |
产品附图3 |
cp_tupian4 |
varchar(250) |
产品附图4 |
zhuangtai_yn |
tinyint(4) |
商品状态:0正常上架,1下架, |
jianjie_yn |
tinyint(4) |
是否有简介:0普通,1有简介 |
jianjie |
text |
简介内容 |
neirong |
text |
内容:商品详细介绍 |
fabu_riqi |
date |
发布日期: |
add_riqi |
date |
|
add_shijian |
datetime |
购物车表:gouwuche
字段名 |
类型 |
备注 |
id |
int(11) |
自动递增;菜单的id(主键),不允许空 |
u_id |
int(11) |
用户id; |
cp_id |
int(11) |
产品id |
cp_mingcheng |
varchar(255) |
产品名称 |
jiage_shichang |
double |
市场价格 |
jiage_chengjiao |
double |
成交价格 |
cp_shuliang |
int(11) |
产品(购买)数量 |
zt |
Int(11) |
订单状态; 状态值:1在购物车;2下单未付款;3已付款,还没发货;4已经发货;5用户已收货 |
shijian_gouwuche |
datetime |
加入购物车时间 |
shijian_xiadan |
datetime |
order time |
danhao |
Int(11) |
Tracking number, which order the shopping cart currently belongs to, the tracking number will only be available after the order is placed |
pinglun_in |
varchar(50) |
Whether to comment, the default is no Value: Yes|No |
Member evaluation form: huiyuan_pingjia
Field name |
type |
Remark |
id |
int(11) |
Automatically increment; menu id (primary key), empty is not allowed |
danhao |
int(11) |
Order number The foreign key is the evaluation of the product in which order number |
cpid |
int(11) |
product id Foreign key, which product is the evaluation? |
|
int(11) |
How many stars Value: 1-5 |
Neirong |
longtext |
comment content |
u_id |
int(11) |
user id The foreign key is which user's evaluation is the id of the user table |
hold |
datetime |
Date of review |
shijian |
datetime |
Evaluation time |
Member collection list: huiyuan_shoucang
Field name |
type |
Remark |
id |
int(11) |
Automatically increment; menu id (primary key), empty is not allowed |
cpid |
int(11) |
product id Foreign key, which product is the favorite, corresponding to the id of the product table |
u_id |
int(11) |
user id Foreign key, which user's favorite is the id of the user table |
hold |
datetime |
Date of favorited item |
shijian |
datetime |
Time to collect items |
Reference source: https://www.hzyaoyi.cn/pc_jiaocheng_tushu_index.php?/42/1536.html