Blogger introduction: 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 beginners to masters, free of charge
The project is equipped with corresponding development documents, opening reports, task books, PPT, paper templates, etc.
Contact information is available at the end of the article
Purpose: The main goal of this topic is to design and realize a company website system based on WeChat applets. Front-end users use applets, background management uses PHP-based development, and storage uses Mysql database; add company information, information, products, etc. through the background. Users log in through the applet to view company information, news, products, cases, etc.
Product and case database tables
Product case type table: chanpin_leixing
field name |
type |
Remark |
id |
Int |
Auto-increment; the id (primary key) of the menu, empty is not allowed |
caidan_mingcheng |
varchar |
menu name, empty is allowed |
paixu_id |
int |
Sort the numbers, the bigger numbers come first, empty is allowed |
Product Case Sheet: chanpin
field name |
type |
Remark |
id |
Int |
Auto-increment; the id (primary key) of the menu, empty is not allowed |
xinxi_lxid1 |
int |
The id of the information level 1 type, refer to the id of the information type table |
xinxi_biaoti |
varchar |
information title |
xinxi_riqi |
date |
message date |
xinxi_jianjie_yn |
tiny |
Is there a profile |
xinxi_jianjie |
text |
Introduction content |
xinxi_tupian |
varchar |
Information picture address |
xinxi_ding |
tinyint |
1 means it belongs to the case, 0 means it only belongs to the product |
xinxi_neirong |
text |
information |
add_riqi |
date |
Date the information was released |
add_shijian |
datetime |
when the information was published |
daemon
ht/ chanpin Products and Cases |
caidan_1ji.php |
Case and product category management |
chanpin_add.php |
Case and product entry page |
|
chanpin_add_act.php |
Case and product entry program processing |
|
chanpin_list.php |
Case and Product List |
|
chanpin_xiugai.php |
Case and Product Modification Pages |
|
chanpin_xiugai_act.php |
Case and product modification program handling |
|
chanpin_del.php |
Case and Product Removal |
applet interface
Product column |
wx_api_CpFenlei.php |
get category |
wx_api_CpList_All.php |
get all products |
|
Case column |
wx_api_CpFenlei.php |
get category |
wx_api_AnLi_All.php |
Get all cases |
|
Case and product information |
wx_api_CpXinxi.php |
Get cases and product information |
get category
Interface: http://localhost:500/wx_api_CpFenlei.php
Parameters: none
1 2 3 4 5 6 7 |
|
get product
Interface: http://localhost:500/wx_api_CpList_All.php
Parameter: cs_lxid is not required, if it is empty, it will display all; if it has a value, it will display the corresponding category product
Interface with parameters: http://localhost:500/wx_api_CpList_All.php?cs_lxid=266
1 2 3 4 |
|
Get a case
Interface: http://localhost:500/wx_api_AnLi_All.php
Parameter: cs_lxid is not required, if it is empty, it will display all; if it has a value, it will display the corresponding category product
Get cases and product information
Interface: http://localhost:500/wx_api_CpXinxi.php
Parameters: id product or case id, required
Interface sample: http://localhost:500/wx_api_CpXinxi.php?id=45
1 |
|
Reference source: https://www.hzyaoyi.cn/pc_jiaocheng_tushu_index.php?/37/1440.html