Blogger introduction: Author of the books "Introduction to Vue.js and Mall Development" and "WeChat Mini Program Mall Development", CSDN blog expert, online education expert, CSDN Diamond Lecturer; specializes in graduation design education and coaching 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 project is to design and implement a WeChat-based university canteen dining reservation mini-program system. Front-end users use mini-programs, which are developed using WeChat developer tools; back-end management uses a B/S architecture based on PP+MySql. The development tool uses phpstorm; through the background, the canteen dish classification is entered, the dishes are entered, and orders are managed and processed. The user logs in through the mini program, views the canteen dish classification and dish information, adds it to the shopping cart, and places an order to make a reservation.
Significance : The university canteen dining reservation applet system based on WeChat is a product of the combination of computer technology and university canteen dining management. Through the WeChat applet university cafeteria dining reservation system, efficient management of university canteens is achieved.
With the continuous improvement of computer technology, computers have penetrated into every corner of social life; the manual method of making meal reservations is not only inefficient, error-prone, cumbersome, but also consumes a lot of manpower. In order to meet the needs of consumers for efficient management of dish introductions, dining reservations, etc., on the premise that the staff have certain computer operation capabilities, this WeChat-based university cafeteria dining reservation applet system is specially compiled to improve the dining efficiency of university cafeterias.
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 |
Backend 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/qita 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 Products (dishes) |
caidan_1ji.php |
Product (dish) classification management |
sp_add.php |
Product (dish) entry page |
|
sp_add_act.php |
Product (dish) entry program |
|
sp_list.php |
Product (dish) list |
|
sp_del.php |
Product (dish) delete |
|
sp_xiugai.php |
Product (dish) modification page |
|
sp_xiugai_act.php |
Product (dish) modification procedure |
|
dd_list.php |
Product (dish) order list |
|
dd_chuli.php |
Product (dish) order processing |
Mini program interface file
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 |
Dishes ranking (4) |
|
All dishes |
wx_fenlei.php Get classification |
|
wx_CpList_top4.php |
4 newly launched dishes |
|
wx_CpList.php |
Get all dishes |
|
Ordering section |
wx_fenlei_chanpin.php |
Get classified dishes |
wx_fenlei.php |
加载左侧分类 |
|
wx_gwc_feiyong.php |
获取购物车费用 |
|
wx_gwc_add.php |
加入购物车 |
|
wx_gwc_shuxiugai.php |
更新数量 |
|
wx_gwc_del.php |
删除购物车 |
|
菜品详情页 |
wx_sp_info-a.php |
根据产品id获取产品的信息 |
wx_sp_info-b.php |
根据产品id获取产品的详细信息 |
|
wx_gwc_add.php |
加入购物车 |
|
wx_gwc_add.php |
购买:加入购物车+跳转到购物车 |
|
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_gwc_feiyong.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_shoucang_list.php |
获取收藏列表 |
|
wx_shoucang_del.php |
删除收藏 |
|
wx_huiyuan_xinxi_byid.php |
读取会员信息 |
|
wx_huiyuan_xinxi_update_byid.php |
更新会员信息 |
|
wx_huiyuan_mima_act.php |
密码修改 |
数据库表
订单表: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 |
购物车表: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 |
下单时间 |
danhao |
Int(11) |
单号,该购物车当前属于哪个订单,下单后才会有单号 |
pinglun_yn |
varchar(50) |
是否评论,默认是否 值:是|否 |
广告表: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_pingjia
字段名 |
类型 |
备注 |
id |
int(11) |
自动递增;菜单的id(主键),不允许空 |
danhao |
int(11) |
单号 外键,是哪个单号中产品的评价 |
cpid |
int(11) |
产品id 外键,是哪个产品的评价 |
|
int(11) |
几星 值:1-5 |
neirong |
longtext |
评价内容 |
u_id |
int(11) |
用户id 外键,是哪个用户的评价,是用户表的id |
riqi |
datetime |
评价的日期 |
shijian |
datetime |
评价的时间 |
会员收藏表:huiyuan_shoucang
字段名 |
类型 |
备注 |
id |
int(11) |
自动递增;菜单的id(主键),不允许空 |
cpid |
int(11) |
产品id 外键,是收藏的哪个产品,对应产品表的id |
u_id |
int(11) |
用户id 外键,是哪个用户的收藏,是用户表的id |
riqi |
datetime |
收藏商品的日期 |
shijian |
datetime |
收藏商品的时间 |
留言表: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) |
排序数字,数字大的在前面,允许空 |
商品表: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 |
商品分类表:shangpin_fenlei
字段名 |
类型 |
备注 |
id |
Int(11) |
自动递增;菜单的id(主键),不允许空 |
caidan_mingcheng |
varchar(50) |
菜单名称,允许空 |
paixu_id |
int(11) |
排序数字,数字大的在前面,允许空 |
Reference technical documentation: https://www.hzyaoyi.cn/pc_jiaocheng_tushu_index.php?/55/1736.html