123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596 |
- import { requestApi } from '../util/network'
- // 获取用户订单列表
- export const getOrderList =
- (parmas, stateType, orderKey,keyword) =>
- requestApi(
- '/Memberorder/order_list',
- 'POST',
- {
- 'page': parmas.page,
- 'per_page': parmas.per_page,
- 'state_type': stateType,
- 'order_key': orderKey,
- 'keyword':keyword
- },
- 'member'
- )
- // 获取订单信息
- export const getOrderInfo =
- (orderId) =>
- requestApi(
- '/Memberorder/order_info',
- 'POST',
- {
- 'order_id': orderId
- },
- 'member'
- )
- // 订单评价
- export const saveOrderEvaluate =
- (orderId, result) =>
- requestApi(
- '/Memberevaluate/save',
- 'POST',
- Object.assign(
- {
- 'order_id': orderId
- },
- result),
- 'member'
- )
- // 获取评价信息
- export const getOrderEvaluateInfo =
- (orderId) =>
- requestApi(
- '/Memberevaluate/index',
- 'POST',
- {
- 'order_id': orderId
- },
- 'member'
- )
- // 取消订单
- export const cancelOrder =
- (orderId) =>
- requestApi(
- '/Memberorder/order_cancel',
- 'POST',
- {
- 'order_id': orderId
- },
- 'member'
- )
- // 删除订单
- export const deleteOrder =
- (orderId) =>
- requestApi(
- '/Memberorder/order_delete',
- 'POST',
- {
- 'order_id': orderId
- },
- 'member'
- )
- // 订单收货
- export const receiveOrder =
- (orderId) =>
- requestApi(
- '/Memberorder/order_receive',
- 'POST',
- {
- 'order_id': orderId
- },
- 'member'
- )
- // 物流跟踪
- export const getOrderDeliver =
- (orderId) =>
- requestApi(
- '/Memberorder/search_deliver',
- 'POST',
- {
- 'order_id': orderId
- },
- 'member'
- )
|