114 lines
3.9 KiB
Plaintext
114 lines
3.9 KiB
Plaintext
import { Service } from '@/Service/Service';
|
|
/*****社区*****/
|
|
class vpMerchService {
|
|
private static GetMerchListPath: string = '/Merch/GetMerchList';
|
|
/*****商家列表*****/
|
|
static GetMerchList(assId: string,serch:string,lon:number,lat:number ,sort:number,codeSort:number ,page:number) {
|
|
var result = Service.Request(this.GetMerchListPath, 'GET', {assId,serch,lon,lat,sort,codeSort,page});
|
|
return result;
|
|
}
|
|
|
|
|
|
private static GetMerchInfoPath: string = '/Merch/GetMerchInfo';
|
|
/*****店铺详情*****/
|
|
static GetMerchInfo(merchId: string ,lon:number ,lat:number,page:number) {
|
|
var result = Service.Request(this.GetMerchInfoPath, 'GET', {merchId,lon,lat,page});
|
|
return result;
|
|
}
|
|
|
|
|
|
private static GetGoodsInfoPath: string = '/Merch/GetGoodsInfo';
|
|
/*****商品详情*****/
|
|
static GetGoodsInfo(goodsId: string,page:number) {
|
|
var result = Service.Request(this.GetGoodsInfoPath, 'GET', {goodsId,page});
|
|
return result;
|
|
}
|
|
|
|
|
|
private static GetMyMerchInfoPath: string = '/Merch/GetMyMerchInfo';
|
|
/*****获取用户个人绑定商家*****/
|
|
static GetMyMerchInfo() {
|
|
var result = Service.Request(this.GetMyMerchInfoPath, 'GET', {});
|
|
return result;
|
|
}
|
|
|
|
private static UpdateMerchPath: string = '/Merch/UpdateMerch';
|
|
/*****修改用户个人绑定商家*****/
|
|
static UpdateMerch( assortId:string, logo:string, comId:string,name:string,showImg:string,phone:string,price:number,province:string,city:string,county:string,address:string,lon:number,lat:number,busTime:string,tag:string) {
|
|
var result = Service.Request(this.UpdateMerchPath, 'POST', {assortId,logo,comId,name,showImg,phone,price,province,city,county,address,lon,lat,busTime,tag});
|
|
return result;
|
|
}
|
|
|
|
|
|
private static GetMerchGoodsPath: string = '/Merch/GetMerchGoods';
|
|
/*****获取商家商品列表*****/
|
|
static GetMerchGoods(page:number) {
|
|
var result = Service.Request(this.GetMerchGoodsPath, 'GET', {page});
|
|
return result;
|
|
}
|
|
|
|
|
|
private static UpdateGoodsStatusPath: string = '/Merch/UpdateGoodsStatus';
|
|
/*****修改商品上下架*****/
|
|
static UpdateGoodsStatus(goodsId:string) {
|
|
var result = Service.Request(this.UpdateGoodsStatusPath, 'POST', {goodsId});
|
|
return result;
|
|
}
|
|
|
|
|
|
private static UpdateMerchGoodsPath: string = '/Merch/UpdateMerchGoods';
|
|
/*****修改商品*****/
|
|
static UpdateMerchGoods(goodsId:string,name:string,img:string,price:number,brief:string,status:number) {
|
|
var result = Service.Request(this.UpdateMerchGoodsPath, 'POST', {goodsId,name,img,price,brief,status});
|
|
return result;
|
|
}
|
|
|
|
|
|
private static DelGoodsPath: string = '/Merch/DelGoods';
|
|
/*****删除商品*****/
|
|
static DelGoods(goodsId:string) {
|
|
var result = Service.Request(this.DelGoodsPath, 'POST', {goodsId});
|
|
return result;
|
|
}
|
|
|
|
private static GetUnitMerchInfoPath: string = '/Order/GetUnitMerchInfo';
|
|
/*****商家详情*****/
|
|
static GetUnitMerchInfo(merchId:string) {
|
|
var result = Service.Request(this.GetUnitMerchInfoPath, 'GET', {merchId});
|
|
return result;
|
|
}
|
|
|
|
private static GetMerchOrderListPath: string = '/Merch/GetMerchOrderList';
|
|
/*****获取商家订单列表*****/
|
|
static GetMerchOrderList(time:string,page:number) {
|
|
var result = Service.Request(this.GetMerchOrderListPath, 'GET', {time,page});
|
|
return result;
|
|
}
|
|
private static GetMerchAssortPath: string = '/Merch/GetMerchAssort';
|
|
/*****获取商家分类*****/
|
|
static GetMerchAssort() {
|
|
var result = Service.Request(this.GetMerchAssortPath, 'GET', {});
|
|
return result;
|
|
}
|
|
|
|
|
|
|
|
private static GetMerchAccInfoPath: string = '/Merch/GetMerchAccInfo';
|
|
/*****获取商家积分详情*****/
|
|
static GetMerchAccInfo( code:string, page:number) {
|
|
var result = Service.Request(this.GetMerchAccInfoPath, 'GET', { code, page});
|
|
return result;
|
|
}
|
|
|
|
|
|
|
|
private static GetMerchOrderInfoPath: string = '/Merch/GetMerchOrderInfo';
|
|
/*****获取商家订单详情*****/
|
|
static GetMerchOrderInfo( orderId:string) {
|
|
var result = Service.Request(this.GetMerchOrderInfoPath, 'GET', { orderId});
|
|
return result;
|
|
}
|
|
|
|
}
|
|
export { Service, vpMerchService };
|