index.js
2.3 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
import {
request
} from '@/utils/request.js'
// 轮播图 /api/index/banner
export const getBanner = () => request({url: 'index/banner',method: 'post',data: {}})
//首页分类
export const sortList = (type) => request({url: 'index/sort_index',method: 'post',data: {type}})
// 首页相关资讯列表 /api/index/arc_list
export const arcList = () => request({url: 'index/arc_list',method: 'post',data: {}})
// 首页产品列表
export const product_list = (data) => request({url: 'product/product_list',method: 'post',data: data})
// 首页产品详情
export const product_detail = (product_id,url) => request({url: 'product/product_detail',method: 'post',data: {product_id,url}})
// 首页产品下单
export const product_buy = (data) => request({url: 'product/product_buy',method: 'post',data: data})
// 产品收藏/取消
export const product_favorite = (product_id) => request({url: 'product/product_favorite',method: 'post',data: {product_id}})
// 产品举报原因
export const report_list = (data) => request({url: 'product/report_list',method: 'post',data: data})
// 产品举报
export const product_report = (data) => request({url: 'product/product_report',method: 'post',data: data})
// 获取买家填写的信息
export const last_buy_data = (data) => request({url: 'product/last_buy_data',method: 'post',data: data})
// 实名认证
export const user_cert = (data) => request({url: 'user/user_cert',method: 'post',data: data})
// 历史记录
export const search_list = (data) => request({url: 'product/search_list',method: 'post',data: data})
// 清空历史记录
export const search_clear = (data) => request({url: 'product/search_clear',method: 'post',data: data})
// 资讯分类
export const sort_list = (data) => request({url: 'arc/sort_list',method: 'post',data: data})
// 分类资讯
export const arc_list = (data) => request({url: 'arc/arc_list',method: 'post',data: data})
// 详情资讯
export const arc_detail = (arc_id,url) => request({url: 'arc/arc_detail',method: 'post',data: {arc_id,url}})
// 全部分类
export const sort_all = (keyword) => request({url: 'product/sort_all',method: 'post',data: {keyword}})
//搜索弹窗分类
export const sort_search = (keyword) => request({url: 'product/sort_search',method: 'post',data: {keyword}})