68 lines
2.2 KiB
Plaintext
68 lines
2.2 KiB
Plaintext
import { Service } from '@/Service/Service';
|
|
/*****订单接口*****/
|
|
class CNRiderOrderService {
|
|
private static GetRiderOrderListPath : string = '/Rider/GetRiderOrderList';
|
|
/*****首页新订单*****/
|
|
static GetRiderOrderList(page : number) {
|
|
var result = Service.Request(this.GetRiderOrderListPath, "GET", {page});
|
|
return result;
|
|
}
|
|
|
|
private static RiderTakeOrderPath : string = '/Rider/RiderTakeOrder';
|
|
/*****骑手接单*****/
|
|
static RiderTakeOrder(orderId : string) {
|
|
var result = Service.Request(this.RiderTakeOrderPath, "POST", {orderId});
|
|
return result;
|
|
}
|
|
|
|
private static GetRiderTakeOrderListPath : string = '/Rider/GetRiderTakeOrderList';
|
|
/*****首页 待取餐/配送中*****/
|
|
static GetRiderTakeOrderList(status: number,page : number) {
|
|
var result = Service.Request(this.GetRiderTakeOrderListPath, "GET", {status,page});
|
|
return result;
|
|
}
|
|
|
|
|
|
private static GetUnitOrderInfoPath : string = '/Order/GetUnitOrderInfo';
|
|
/*****获取订单详情*****/
|
|
static GetUnitOrderInfo(orderId: string) {
|
|
var result = Service.Request(this.GetUnitOrderInfoPath, "GET", {orderId});
|
|
return result;
|
|
}
|
|
|
|
private static UpdateRiderOrderTakePath : string = '/Rider/UpdateRiderOrderTake';
|
|
/*****取餐*****/
|
|
static UpdateRiderOrderTake(orderId: string,status:number) {
|
|
var result = Service.Request(this.UpdateRiderOrderTakePath, "POST", {orderId,status});
|
|
return result;
|
|
}
|
|
|
|
private static GetRiderAccLogPath : string = '/Rider/GetRiderAccLog';
|
|
/*****收入列表*****/
|
|
static GetRiderAccLog(time: string,page:number) {
|
|
var result = Service.Request(this.GetRiderAccLogPath, "GET", {time,page});
|
|
return result;
|
|
}
|
|
|
|
private static AddRiderWithPath : string = '/Rider/AddRiderWith';
|
|
/*****骑手提现*****/
|
|
static AddRiderWith(amount: number,payway:string,name:string,account:string) {
|
|
var result = Service.Request(this.AddRiderWithPath, "POST", {amount,payway,name,account});
|
|
return result;
|
|
}
|
|
|
|
|
|
private static GetRiderWithListPath : string = '/Rider/GetRiderWithList';
|
|
/*****骑手提现列表*****/
|
|
static GetRiderWithList(page:number) {
|
|
var result = Service.Request(this.GetRiderWithListPath, "GET", {page});
|
|
return result;
|
|
}
|
|
|
|
|
|
|
|
}
|
|
export {
|
|
Service,
|
|
CNRiderOrderService
|
|
} |