first commit

This commit is contained in:
编码猿
2024-09-27 02:06:13 +08:00
commit 852d94fbb9
36760 changed files with 3274413 additions and 0 deletions

View File

@@ -0,0 +1,75 @@
import http from "../http";
import config from "../config";
export default class IndexServer {
//首页
async getIndex(data = {}, header = {}) {
return await http.get({
url: config.apiList.index,
data: data,
header: header
});
}
//搜索
async search(data = {}, header = {}) {
return await http.post({
url: config.apiList.search,
data: data,
header: header
});
}
//用户手机号码(个人中心)
async tell(data = {}, header = {}) {
return await http.post({
url: config.apiList.tell,
data: data,
header: header
});
}
//商品详情
async goodsDetail(data = {}, header = {}) {
return await http.post({
url: config.apiList.x_goodsDetail,
data: data,
header: header
});
}
//登录
async login (data = {}, header = {}) {
return await http.post({
url: config.apiList.login,
data: data,
headers: header
});
}
//注册
async reg (data = {}, header = {}) {
return await http.post({
url: config.apiList.x_register,
data: data,
headers: header
});
}
// //活动详情
async getActivity(data = {}, header = {}) {
return await http.get({
url: config.apiList.activity,
data: data,
header: header
});
}
//购物车
async cartList(data = {}, header = {}) {
return await http.post({
url: config.apiList.cart,
data: data,
header: header
});
}
}

View File

@@ -0,0 +1,7 @@
import IndexServer from "./IndexServer";
import classServer from "./classServer";
export default {
index: new IndexServer(),
class: new classServer()
}

View File

@@ -0,0 +1,13 @@
import http from "../http";
import config from "../config";
export default class classServer {
//分类
async getClass(data = {}, header = {}) {
return await http.post({
url: config.apiList.classify,
data: data,
header: header
});
}
}