[更新数据]

This commit is contained in:
张慢慢
2020-12-28 11:29:09 +08:00
parent c56fd8b471
commit e05ff7dedf
34 changed files with 231 additions and 109 deletions

View File

@@ -5,12 +5,22 @@
import {req} from "../request"
const index = () => req({url: "orders"}) //登录
const index = () => req({url: "orders"}) //全部订单
const unpaid = () => req({url: "orders/unpaid"}) //待付款
const paid = () => req({url: "orders/paid"}) //待发货
const delive = () => req({url: "orders/delivered"}) //待收货
const refund = () => req({url: "orders/refunds"}) //退款
const cancel = (orderId) => req({url: "orders/cancel/" + orderId}) //取消订单
const orders = (orderId) => req({url: "orders/" + orderId}) //订单-详情
const paymen = (orderId) => req({url: "payments/order/" + orderId}) //订单支付-详情
export default({
index,
unpaid,
paid,
delive,
refund,
cancel,
orders
orders,
paymen
})