merchapp/java-mall-app-shop-admin/api/order.js
2025-06-21 19:10:14 +08:00

66 lines
1.5 KiB
JavaScript
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

import http from "../utils/http";
import config from "../config/config";
/**
* 获取订单列表
* @author Seven
* @data 2025-3-28
* @param {
* storeId: 1, //店铺Id
* keyword: 'DD-', //搜索订单关键字
* pageNum: 1, //页码
* pageSize: 10, //页大小
* delivery: 1, // 1-同城配送2-物流配送
* status: 1, 1-进行中2-超时的订单3-退款的订单
* }
* @returns { }
* @see https://mall.gpxscs.cn/mobile/shop/userOrder/mch/order/list
*/
export function GetOrderList(params) {
return http({
url: "/shop/userOrder/mch/order/list",
method: "post",
data: params,
});
}
/**
* 获取订单列表 模拟数据
**/
// export function GetOrderList (params){
// return new Promise((resolve, reject) => {
// http({
// url:'/mchapp/static/data/order.json',
// method:'get',
// data:params,
// baseURL:''
// }).then(res=>{
// resolve(res)
// }).catch(e => reject(console.warn(e)))
// })
// }
/**
* 获取订单SSE
* @author Seven
* @data 2025-3-28
* @param channel
* @returns { }
* @see https://mall.gpxscs.cn/api/mobile/shop/sf-express/order/status/listening
*/
// export function GetOrderList (params){
// return new Promise((resolve, reject) => {
// http({
// url:'/shop/userOrder/mch/order/list',
// method:'post',
// params,
// baseURL:''
// }).then(res=>{
// resolve(res)
// }).catch(e => reject(console.warn(e)))
// })
// }