You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
39 lines
1.0 KiB
39 lines
1.0 KiB
import { Injectable } from '@angular/core';
|
|
import {HttpClient} from "@angular/common/http";
|
|
import {environment} from "../../../environments/environment";
|
|
import {ObjectData} from "../../utils/objectData.service";
|
|
|
|
@Injectable({
|
|
providedIn: 'root'
|
|
})
|
|
export class OrderCouponService {
|
|
|
|
constructor(private http: HttpClient) { }
|
|
|
|
/**
|
|
* 查询订单列表
|
|
* @param param
|
|
* @param callBack
|
|
*/
|
|
public queryList(param: any, callBack:any) {
|
|
param.time = new Date().getTime();
|
|
this.http.get(environment.orderUrl + 'coupon/queryList?'+ObjectData.objectByString(param)).subscribe(data => {
|
|
callBack(data);
|
|
});
|
|
}
|
|
|
|
/**
|
|
* 查询订单详情
|
|
* @param param
|
|
* @param callBack
|
|
*/
|
|
public queryDetail(orderChildNo: string, callBack:any) {
|
|
let params = {
|
|
orderChildNo: orderChildNo,
|
|
time: new Date().getTime()
|
|
};
|
|
this.http.get(environment.orderUrl + 'coupon/queryDetail?'+ObjectData.objectByString(params)).subscribe(data => {
|
|
callBack(data);
|
|
});
|
|
}
|
|
}
|
|
|