Developing technical documents based on the final graduation project of the WeChat points mall applet (3)

Introduction to the blogger: Author of the books "Introduction to Vue.js and Practical Mall Development" and "WeChat Mini Program Mall Development", CSDN blog expert, online education expert, CSDN Diamond Lecturer; focusing on graduation design education and tutoring 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 WeChat mini-program mall system. Front-end users use mini-programs, and mini-programs are developed using WeChat developer tools; back-end management uses a B/S architecture based on PP+MySql, and development tools are used. phpstorm; add products through the background, and users log in through the mini program to view products, purchase, place orders, etc.

Significance: The WeChat Mini Program Mall system is a product of the combination of computer technology and mall management. Through the WeChat Mini Program Mall system, efficient management of the mall is achieved. With the continuous improvement of computer technology, computers have penetrated into every corner of social life. The manual sales method is not only inefficient, error-prone, cumbersome, but also consumes a lot of manpower. In order to meet the requirements of efficient management of goods, quantity, settlement, etc., on the premise that the staff have certain computer operation capabilities, this WeChat mini-program mall system is specially compiled to improve the management efficiency of the mall.

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

image.png

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/ shezhi

Advertising and message setting management

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

Commodity Center

caidan_1ji.php

Product classification management

sp_add.php

Product entry page

sp_add_act.php

Product entry process

sp_list.php

Product list

sp_del.php

Product deletion

sp_xiugai.php

Product modification page

sp_xiugai_act.php

Product modification procedure processing

dd_list.php

Order List

dd_chuli.php

Order processing

ht/ cp

Product Points Center

caidan_1ji.php

Points product classification management

cp_add.php

Points product entry page

cp_add_act.php

Points product entry procedure

cp_list.php

Points product list

cp_del.php

Points product deletion

cp_xiugai.php

Points product modification page

cp_xiugai_act.php

Points product modification procedures

jifen_dingdan_list.php

Points product order list

jifen_dingdan_chuli.php

Points product order processing

Mini program interface file

Mini program interface

Program name

Include

front page

wx_lunbo.php

Get the top carousel image

wx_news_list.php

Get 3 latest news

wx_CpList_top2.php

Latest products on the shelves (2)

wx_CpList_tuijian2.php

Latest recommended products (2)

Product reservation

wx_fenlei.php

Load the left category

wx_api_CpList_All.php

Load category products

All goods

查询

wx_CpList.php

加载所有商品

wx_CpList_top2.php

最新上架商品(2)条

wx_fenlei.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_dizhi_list.php

获取地址列表

wx_dizhi_add.php

录入下单地址

wx_gwc_xiadan.php

提交下单信息

评论页面

wx_AddPinLun.php

提交评论

积分兑换

wx_jifen_fenlei.php

加载积分产品分类

wx_jifen_CpList_All.php

加载积分产品

积分产品

wx_jifen_cp_info_a.php

加载积分商品简介

wx_jifen_cp_info_b.php

加载积分产品详情

wx_jifen_dingdan_add.php

积分兑换

wx_jifen_zong_byuid.php

根据用户id获取积分信息

资讯信息

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_jifen_dingdan_list.php

获取用户积分订单列表

wx_jifen_dingdan_fukuan.php

积分订单确认

wx_jifen_dingdan_del.php

取消积分订单兑换

wx_jifen_dingdan_shouhuo.php

积分订单收货

wx_huiyuan_xinxi_byid.php

读取会员信息

wx_huiyuan_xinxi_update_byid.php

更新会员信息

wx_huiyuan_mima_act.php

密码修改

数据库表

积分产品:cp

字段名

类型

备注

id

Int(11)

自动递增;菜单的id(主键),不允许空

xinxi_lxid1

int(11)

外键:积分产品类型,对应积分类型表id

xinxi_biaoti

varchar(250)

积分产品名称

Jifen

int

积分,需要多少积分兑换

xinxi_riqi

date

信息日期

xinxi_jianjie_yn

tinyint

是否有简介:

xinxi_jianjie

text

简介

xinxi_tupian_yn

tinyint

是否有图片:

xinxi_tupian

varchar

信息图片

xinxi_neirong

text

内容:

add_riqi

date

写入数据库日期

add_shijian

datetime

写入数据库时间

积分产品类型:cp_leixing

字段名

类型

备注

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

购物车表: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

姓名

qq

varchar

QQ号

email

varchar

Email

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

会员评价表:huiyuan_pingjia

字段名

类型

备注

id

int(11)

自动递增;菜单的id(主键),不允许空

danhao

int(11)

单号

外键,是哪个单号中产品的评价

cpid

int(11)

产品id

外键,是哪个产品的评价

xing

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

收藏商品的时间

积分订单:jifen_dingdan

字段名

类型

备注

id

Int(11)

自动递增;菜单的id(主键),不允许空

u_id

int

用户id

cp_id

int

订单的积分产品id

cp_mingcheng

varchar

xingming

varchar

dianhua

varchar

dizhi

varchar

add_riqi

date

写入数据库日期

add_shijian

datetime

写入数据库时间

beizhu_dingdan

varchar(250)

订单备注;允许空

feiyong_chengjiao

double

成交费用;

zt

Int(11)

订单状态;

状态值:1在购物车;2下单未付款;3已付款,还没发货;4已经发货;5用户已收货

jifen

Int

shijian_fukuan

datetime

订单付款时间;

shijian_fahuo

datetime

订单发货时间;

wuliu

varchar

物流信息

fahuo_beizhu

varchar

发货备注

shijian_shouhuo

datetime

订单收货时间;

留言表:liuyan

字段名

类型

备注

id

Int

自动递增;菜单的id(主键),不允许空

xingming

varchar

姓名

dianhua

varchar

电话

youxiang

varchar

邮箱

zhuti

varchar

主题

neirong

longtext

内容

riqi

datetime

留言录入数据库的日期

shijian

datetime

留言录入数据库的时间

商品分类表: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)

The id of the product level 1 type, refer to the id of the product type table

kucun

int(11)

in stock

yixiaoshou

int(11)

sold

jiage1

double

round price

cp_tupian

varchar(250)

Product main picture

cp_tupian_in

tinyint(4)

Does the product have pictures attached?

cp_tupian1

varchar(250)

Product drawing 1

cp_tupian2

varchar(250)

Product drawing 2

cp_tupian3

varchar(250)

Product drawing 3

cp_tupian4

varchar(250)

Product drawing 4

zhuangtai_yn

tinyint(4)

Product status: 0 is on the shelves normally, 1 is off the shelves,

jianjie_yn

tinyint(4)

Whether there is an introduction: 0 normal, 1 with introduction

jianjie

text

Introduction content

neirong

text

Content: Detailed product introduction

fabu_riqi

date

release date:

add_riqi

date

add_shijian

datetime

Information table: zixun

Field name

type

Remark

id

Int(11)

Automatically increment; menu id (primary key), empty is not allowed

xinxi_lxid1

int(11)

Foreign key: the id of the information level 1 type, refer to the id of the information type table

xinxi_biaoti

varchar(250)

Message title

xinxi_riqi

date

Information date

xinxi_neirong

text

content:

add_riqi

date

Write database date

add_shijian

datetime

Write time to database

Information classification table: zixun_fenlei

Field name

type

Remark

id

Int(11)

Automatically increment; menu id (primary key), empty is not allowed

caidan_mingcheng

varchar(50)

Menu name, empty allowed

paixu_id

int(11)

Sort the numbers, with larger numbers in front, allowing empty spaces

Reference source: https://www.hzyaoyi.cn/pc_jiaocheng_tushu_index.php?/51/1672.html

Guess you like

Origin blog.csdn.net/u013818205/article/details/132863067