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))) // }) // } /** * 获取订单个推 * @author Seven * @data 2025-3-28 * @param channel * @returns { cid:f9da7081a7951cff6d7f1d4e2d2f270b } * @see https://mall.gpxscs.cn/api/mobile/account/login/push/testcase */ export function GetOrderPush(params) { return http({ url: "/account/login/push/testcase", method: "post", data: params, }); }