[订单拆分,周五福利添加配送方式]

This commit is contained in:
zhangjing
2021-06-03 15:41:05 +08:00
parent e4752f75b7
commit cf31e7c5d7
12 changed files with 331 additions and 83 deletions

View File

@@ -1,21 +1,41 @@
import {req} from "../request"
//兑换订单列表
const index = (type) => req({url: "orders/index", data: {type: type}})
//权益商品订单列表
const orders = (type) => req({url: "orders/index", data: {type: type}})
//兑换订单详情
//权益订单列表
const ordersCoupons = (type) => req({url: "orders/coupons", data: {type: type}})
//福利商品订单列表
const welfare = (type) => req({url: "welfares/orders", data: {type: type}})
//福利券订单列表
const welfareCoupons = (type) => req({url: "welfares/coupons", data: {type: type}})
//权益订单详情
const show = (orderid) => req({url: "orders/show?", data: {orderid: orderid}})
//周五福利订单详情
const welfaresShow = (orderid) => req({url: "welfares/orders/show?", data: {orderid: orderid}})
//取消兑换订单
const cancel = (orderid) => req({url: "orders/cancel?orderid=" + orderid , method: "POST"})
//福利取消订单
const welfaresCancel = (orderid) => req({url: "welfares/orders/cancel?orderid=" + orderid , method: "POST"})
//兑换订单支付
const payments = (orderid) => req({url: "payments/order?orderid=" + orderid})
export default({
index,
orders,
ordersCoupons,
welfare,
welfareCoupons,
show,
welfaresShow,
cancel,
welfaresCancel,
payments
})