[订单拆分,周五福利添加配送方式]
This commit is contained in:
@@ -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
|
||||
})
|
||||
|
||||
@@ -65,7 +65,7 @@ const newCity = () => req({url: "ajax/all_right_citys"})
|
||||
const newidxCity = (code) => req({url: "ajax/all_right_children", data: {code: code}})
|
||||
|
||||
//周五福利-获取支付信息
|
||||
const fridayInfo = (orderId) => req({url: "welfare/order/" + orderId})
|
||||
const fridayInfo = (werlfare_id, address_id, is_deliver) => req({url: "welfare/order/" + werlfare_id, data: {address_id: address_id || '', is_deliver: is_deliver}})
|
||||
|
||||
//周五福利-支付
|
||||
const fridayPay = (trade_no) => req({url: "payments/welfare/wechat",method: "POST", data: {trade_no: trade_no}})
|
||||
|
||||
Reference in New Issue
Block a user