import {
	request
} from '@/utils/request.js'


// 轮播图 /api/index/banner
export const getBanner = () => request({url: 'index/banner',method: 'post',data: {}})

// 首页分类 /api/index/sort_index
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) => request({url: 'product/product_detail',method: 'post',data: {product_id}})

// 首页产品下单
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  upload = (data) => request({url: 'common/upload',method: 'post',data: data})