// 首页相关接口
|
|
|
|
const api = {
|
|
// 获取首页轮播图
|
|
getBanner: {
|
|
url: '/recycle-admin/applet/index/getBanner',
|
|
method: 'GET',
|
|
auth : false,
|
|
},
|
|
|
|
getRiceIconList: {
|
|
url: '/index_common/getRiceIconList',
|
|
method: 'GET',
|
|
},
|
|
// 获取首页新闻详情
|
|
getRiceNewsDetail: {
|
|
url: '/index_common/getCommonNewsDetail',
|
|
method: 'GET',
|
|
},
|
|
// 获取首页新闻列表
|
|
getRiceNewsList: {
|
|
url: '/index_common/getRiceNewsList',
|
|
method: 'GET',
|
|
},
|
|
// 获取首页公告列表
|
|
getRiceNoticeList: {
|
|
url: '/index_common/getRiceNoticeList',
|
|
method: 'GET',
|
|
},
|
|
// 获取首页商品详情
|
|
getRiceProductDetail: {
|
|
url: '/index_common/getRiceProductDetail',
|
|
method: 'GET',
|
|
},
|
|
// 获取首页体验产品
|
|
getRiceProductList: {
|
|
url: '/index_common/getRiceProductList',
|
|
method: 'GET',
|
|
},
|
|
// 查询分类接口
|
|
getCategoryList: {
|
|
url: '/index_common/getCategoryList',
|
|
method: 'GET',
|
|
},
|
|
// 新查询分类以及商品数据接口
|
|
getCategoryPidList: {
|
|
url: '/index_common/getCategoryPidList',
|
|
method: 'GET',
|
|
debounce : 250,
|
|
},
|
|
// 查询一级分类接口
|
|
getPidList: {
|
|
url: '/index_common/getCategoryPidList',
|
|
method: 'GET',
|
|
},
|
|
// 获取分类分页商品列表接口
|
|
getClassShopPageList: {
|
|
url: '/index_common/getClassShopPageList',
|
|
method: 'GET',
|
|
},
|
|
// 加入购物车
|
|
addCart: {
|
|
url: '/index_common/addCart',
|
|
method: 'GET',
|
|
auth: true,
|
|
showLoading: true,
|
|
limit : 500,
|
|
},
|
|
// 删除购物车信息
|
|
deleteCart: {
|
|
url: '/index_common/deleteCart',
|
|
method: 'DELETE',
|
|
auth: true,
|
|
showLoading: true,
|
|
},
|
|
// 修改购物车信息数量
|
|
updateCartNum: {
|
|
url: '/index_common/updateCartNum',
|
|
method: 'POST',
|
|
auth: true,
|
|
debounce: 300,
|
|
},
|
|
// 创建订单
|
|
createOrder: {
|
|
url: '/index_common/createOrder',
|
|
method: 'GET',
|
|
auth: true,
|
|
limit: 1000,
|
|
showLoading: true,
|
|
},
|
|
// 创建订单-再次支付
|
|
createOrderTwo: {
|
|
url: '/index_common/createOrderTwo',
|
|
method: 'GET',
|
|
auth: true,
|
|
limit: 1000,
|
|
showLoading: true,
|
|
},
|
|
// 多商品创建订单
|
|
createSumOrder: {
|
|
url: '/index_common/createSumOrder',
|
|
method: 'POST',
|
|
auth: true,
|
|
limit: 1000,
|
|
showLoading: true,
|
|
},
|
|
// 多商品订单再次支付
|
|
createSumOrderAgain: {
|
|
url: '/index_common/createSumOrderAgain',
|
|
method: 'POST',
|
|
auth: true,
|
|
limit: 1000,
|
|
showLoading: true,
|
|
},
|
|
// 确认收货
|
|
confirmOrder: {
|
|
url: '/index_common/confirmOrder',
|
|
method: 'GET',
|
|
auth: true,
|
|
limit: 1000,
|
|
showLoading: true,
|
|
},
|
|
// 取消订单
|
|
cancelOrder: {
|
|
url: '/index_common/cancelOrder',
|
|
method: 'GET',
|
|
auth: true,
|
|
limit: 1000,
|
|
showLoading: true,
|
|
},
|
|
// 获取首页广告列表
|
|
getRiceProductList: {
|
|
url: '/index_common/getRiceAdList',
|
|
method: 'GET',
|
|
},
|
|
// 获取首页广告列表
|
|
getRiceAdDetail: {
|
|
url: '/index_common/getRiceAdDetail',
|
|
method: 'GET',
|
|
},
|
|
//获取优惠券信息
|
|
getRiceCouponList: {
|
|
url: '/info_common/getRiceCouponList',
|
|
method: 'GET',
|
|
},
|
|
//增加或者修改合伙人申请信息
|
|
addOrUpdateCommonUser: {
|
|
url: '/index_common/addOrUpdateCommonUser',
|
|
method: 'POST',
|
|
},
|
|
//根据用户查询渠合伙人申请信息表单
|
|
getCommonUser: {
|
|
url: '/index_common/getCommonUser',
|
|
method: 'GET'
|
|
},
|
|
//查看最近回收质检报告
|
|
getQualityReport: {
|
|
url: '/recycle-admin/applet/index/getQualityReport',
|
|
method: 'GET',
|
|
auth : false
|
|
},
|
|
// 回收规则
|
|
getGoodsRecycleRule: {
|
|
url: '/recycle-admin/applet/class/getGoodsRecycleRule',
|
|
method: 'GET',
|
|
auth : false
|
|
},
|
|
// 获取用户订单列表
|
|
getOrderListPage: {
|
|
url: '/recycle-admin/applet/order/getOrderListPage',
|
|
method: 'GET',
|
|
auth : true
|
|
},
|
|
// 查询最近回收商品
|
|
getRecentGoodsList: {
|
|
url: '/recycle-admin/applet/index/getRecentGoodsList',
|
|
method: 'GET',
|
|
auth : false
|
|
},
|
|
// 最近回收
|
|
getQualityReport: {
|
|
url: '/recycle-admin/applet/index/getQualityReport',
|
|
method: 'GET',
|
|
auth : false,
|
|
},
|
|
// 1.根据id获取对应商品列表
|
|
getGoodsBrandList: {
|
|
url: '/recycle-admin/applet/class/getGoodsBrandList',
|
|
method: 'GET',
|
|
auth : false
|
|
},
|
|
// 2.根据分类标识获取分类商品列表带分页
|
|
getClassGoodsList: {
|
|
url: '/recycle-admin/applet/class/getClassGoodsList',
|
|
method: 'GET',
|
|
auth : false
|
|
},
|
|
// 获取我的礼品订单
|
|
getPricePreviewClassList: {
|
|
url: '/recycle-admin/applet/class/getPricePreviewClassList',
|
|
method: 'GET',
|
|
auth : false,
|
|
},
|
|
// 获取我的礼品订单详情
|
|
getAreaList: {
|
|
url: '/recycle-admin/applet/index/getAreaList',
|
|
method: 'GET',
|
|
auth : true,
|
|
},
|
|
}
|
|
|
|
export default api
|