Based on WeChat company's small program system graduation project finished product (12) product and case interface description

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

    { "fenlei_id" : 265, "fenlei_mc" : "产品分类1" } , 

    { "fenlei_id" : 266, "fenlei_mc" : "产品分类2" } , 

    { "fenlei_id" : 267, "fenlei_mc" : "产品分类3" } , 

    { "fenlei_id" : 268, "fenlei_mc" : "产品分类4" } , 

    { "fenlei_id" : 269, "fenlei_mc" : "产品分类5" } 

]

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

    { "id" : 27, "title" : "案例产品6", "shijian" : "2023-12-12", "shuoming" : "产品分类2", "img" : "http://localhost:500/up/tupian/201909271023250000004901.jpg", "yeshu" : 1 } , 

    { "id" : 21, "title" : "测试产品a001", "shijian" : "2023-12-12", "shuoming" : "产品分类1", "img" : "http://localhost:500/up/tupian/201909271025380000004068.jpg", "yeshu" : 1 } 

]

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

<p>3333333</p><p><img width='100%' src='http://localhost:500/ueditor/php/upload/image/20200424/1587708158.jpg' title='1587708158.jpg' alt='005.jpg'/></p><p>11111111111</p>

Reference source: https://www.hzyaoyi.cn/pc_jiaocheng_tushu_index.php?/37/1440.html

Guess you like

Origin blog.csdn.net/u013818205/article/details/132650487
Recommended