65 lines
1.3 KiB
JavaScript
65 lines
1.3 KiB
JavaScript
import http from '../utils/http'
|
|
import config from '../config/config'
|
|
|
|
/**
|
|
* 获取订单列表
|
|
* @author Seven
|
|
* @data 2025-3-28
|
|
* @param
|
|
* @returns { }
|
|
* @see https://mall.gpxscs.cn/mobile/shop/userOrder/mch/order/list
|
|
*/
|
|
|
|
export function GetOrderList (params){
|
|
return new Promise((resolve, reject) => {
|
|
http({
|
|
url:'/shop/userOrder/mch/order/list',
|
|
method:'post',
|
|
data:params,
|
|
}).then(res=>{
|
|
resolve(res)
|
|
}).catch(e => reject(console.warn(e)))
|
|
})
|
|
}
|
|
|
|
/**
|
|
* 获取订单列表 模拟数据
|
|
**/
|
|
|
|
// 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)))
|
|
// })
|
|
// }
|
|
|