162 lines
3.9 KiB
JavaScript
162 lines
3.9 KiB
JavaScript
import {
|
|
req
|
|
} from '../../utils/req.js';
|
|
export default {
|
|
// 商品首页
|
|
goodsIndex(param) {
|
|
return req.get("farm/app/IndexGoods/goodsIndex", param)
|
|
},
|
|
// 店铺列表
|
|
indexStoreList(param) {
|
|
return req.get("farm/app/IndexGoods/indexStoreList", param)
|
|
},
|
|
// 热门商品列表
|
|
hotGoodsList(param) {
|
|
return req.get("shop/app/IndexGoods/hotGoodsList", param)
|
|
},
|
|
// 商品列表
|
|
goodsList(param) {
|
|
return req.get("farm/app/IndexGoods/goodsList", param)
|
|
},
|
|
// 商品详情
|
|
goodsInfo(param) {
|
|
return req.get("farm/app/IndexGoods/goodsInfo", param)
|
|
},
|
|
// 购物车
|
|
carInfo(param) {
|
|
return req.get("farm/app/IndexGoods/carInfo", param)
|
|
},
|
|
// 加入购物车
|
|
addCar(param) {
|
|
return req.post("farm/app/IndexGoods/addCar", param)
|
|
},
|
|
// 删除购物车数量
|
|
delCar(param) {
|
|
return req.post("farm/app/IndexGoods/delCar", param)
|
|
},
|
|
//清空购物车
|
|
delSomeCar(param) {
|
|
return req.post("farm/app/IndexGoods/delSomeCar", param)
|
|
},
|
|
// 编辑购物车数据
|
|
carUpdate(param) {
|
|
return req.post("farm/app/IndexGoods/carUpdate", param)
|
|
},
|
|
//获取下单信息
|
|
payOrderInfo(param) {
|
|
return req.get("farm/app/IndexOrder/payOrderInfo", param)
|
|
},
|
|
//下单
|
|
payOrder(param) {
|
|
return req.post("farm/app/IndexOrder/payOrder", param)
|
|
},
|
|
//订阅消息
|
|
tmplList(param) {
|
|
return req.get("farm/app/IndexOrder/tmplList", param)
|
|
},
|
|
//订单列表
|
|
orderList(param) {
|
|
return req.get("farm/app/IndexOrder/orderList", param)
|
|
},
|
|
//订单详情
|
|
orderInfo(param) {
|
|
return req.get("farm/app/IndexOrder/orderInfo", param)
|
|
},
|
|
//刷新二维码
|
|
refreshQr(param) {
|
|
return req.post("farm/app/IndexOrder/refreshQr", param)
|
|
},
|
|
//取消订单
|
|
cancelOrder(param) {
|
|
return req.post("farm/app/IndexOrder/cancelOrder", param)
|
|
},
|
|
//确认收货
|
|
endOrder(param) {
|
|
return req.post("farm/app/IndexOrder/endOrder", param)
|
|
},
|
|
//重新支付
|
|
rePayOrder(param) {
|
|
return req.post("farm/app/IndexOrder/rePayOrder", param)
|
|
},
|
|
//申请退款
|
|
applyOrder(param) {
|
|
return req.post("farm/app/IndexOrder/applyOrder", param)
|
|
},
|
|
//我的售后
|
|
refundOrderList(param) {
|
|
return req.get("farm/app/IndexOrder/refundOrderList", param)
|
|
},
|
|
//售后详情
|
|
refundOrderInfo(param) {
|
|
return req.get("farm/app/IndexOrder/refundOrderInfo", param)
|
|
},
|
|
//取消退款
|
|
cancelRefundOrder(param) {
|
|
return req.post("farm/app/IndexOrder/cancelRefundOrder", param)
|
|
},
|
|
// 卡券列表
|
|
couponList(param) {
|
|
return req.get("farm/app/Index/couponList", param)
|
|
},
|
|
// 可使用卡券
|
|
canUseCouponList(param) {
|
|
return req.get("farm/app/IndexOrder/couponList", param)
|
|
},
|
|
// 用户领取卡券
|
|
userGetCoupon(param) {
|
|
return req.post("farm/app/Index/userGetCoupon", param)
|
|
},
|
|
// 秒杀活动
|
|
killAtvList(param) {
|
|
return req.get("shop/app/IndexGoods/killAtvList", param)
|
|
},
|
|
// 秒杀商品
|
|
killGoodsList(param) {
|
|
return req.get("shop/app/IndexGoods/killGoodsList", param)
|
|
},
|
|
// 秒杀订阅
|
|
killNotice(param) {
|
|
return req.post("shop/app/IndexGoods/killNotice", param)
|
|
},
|
|
// 积分个人信息
|
|
userInfo(param) {
|
|
return req.get("shop/app/IndexUser/userInfo", param)
|
|
},
|
|
// 积分商品
|
|
integralGoodsList(param) {
|
|
return req.get("shop/app/IndexUser/integralGoodsList", param)
|
|
},
|
|
// 积分明细
|
|
integralList(param) {
|
|
return req.get("shop/app/IndexUser/integralList", param)
|
|
},
|
|
// 签到首页
|
|
signinIndex(param) {
|
|
return req.get("shop/app/IndexUser/signinIndex", param)
|
|
},
|
|
// 用户签到
|
|
signin(param) {
|
|
return req.post("shop/app/IndexUser/signin", param)
|
|
},
|
|
// 签到记录
|
|
signinRecordList(param) {
|
|
return req.get("shop/app/IndexUser/signinRecordList", param)
|
|
},
|
|
// 抽奖活动
|
|
luckInfo(param) {
|
|
return req.get("shop/app/IndexGoods/luckInfo", param)
|
|
},
|
|
// 抽奖
|
|
luckDraw(param) {
|
|
return req.post("shop/app/IndexGoods/luckDraw", param)
|
|
},
|
|
// 中奖记录
|
|
luckRecord(param) {
|
|
return req.get("shop/app/IndexGoods/luckRecord", param)
|
|
},
|
|
// 抽奖记录
|
|
userLuckRecord(param) {
|
|
return req.get("shop/app/IndexGoods/userLuckRecord", param)
|
|
}
|
|
}
|