/** * 这是与购物有关的业务逻辑的服务 */ export default class ShopService { constructor(AjaxService) { Object.assign(this, { AjaxService }) this.name = 'ShopService' } /* 小程序-供应商注册第一步 */ SupplierAppletsRegistered (data = {}) { return this.AjaxService.post({ url:'/supplier/appletsRegistered', data, isLoading: true }) } /* 小程序-搜索供应商列表 */ GetSearchSupplierList (data = {}) { return this.AjaxService.get({ url:'/search/query/supplier', data, isLoading: true }) } /* 小程序供应商个人中心 */ GetHomePageData (data = {}) { return this.AjaxService.get({ url:'/supplier/homePageData', data, isLoading: true }) } /* 小程序供应商我的商品 */ GetSupplierPyProduct (data = {}) { return this.AjaxService.get({ url:'/supplier/myProduct', data, isLoading: true }) } /* 小程序供应商操作添加删除主推商品 */ SupplierSwitchFeaturedyProduct (data = {}) { return this.AjaxService.post({ url:'/supplier/switchFeatured', data, isLoading: true }) } /* 小程序供应商操作下架商品 */ SupplierSoldOutProduct (data = {}) { return this.AjaxService.post({ url:'/supplier/soldOut', data, isLoading: true }) } /* 小程序供应商我的店铺详情 */ GetSupplierHomeDeatils (data = {}) { return this.AjaxService.get({ url:'/supplier/home/detail', data, isLoading: true }) } /* 小程序供应商我的店铺banner */ GetSupplierHomeBanner (data = {}) { return this.AjaxService.get({ url:'/supplier/home/images', data, isLoading: true }) } /* 小程序供应商我的店铺主推商品 */ GetSupplierHomeProduct (data = {}) { return this.AjaxService.get({ url:'/supplier/home/products', data, isLoading: true }) } /* 小程序供应商我的店铺全部商品 */ GetSupplierHomeProductList (data = {}) { return this.AjaxService.get({ url:'/search/query/product/supplier', data, isLoading: false }) } /* 小程序供应商我的订单 */ GetSupplierMyOrderList (data = {}) { return this.AjaxService.get({ url:'/supplier/myOrderList', data, isLoading: true }) } /* 小程序发货-权限控制 */ MiniShipments (data = {}) { return this.AjaxService.post({ url:'/supplier/miniShipments', data, isLoading: true }) } /* 小程序发货-查询供应商子订单详情 */ GetShopOrderDetails (data = {}) { return this.AjaxService.get({ url:'/supplier/shopOrderDetails', data, isLoading: true }) } /* 小程序发货-绑供应商运营人员 */ BindShopOperator (data = {}) { return this.AjaxService.post({ url:'/supplier/shopBindingWx', data, isLoading: true }) } /* 小程序发货-供应商订单详情获取订单分享码 */ ShopOrderShareCode (data = {}) { return this.AjaxService.post({ url:'/supplier/shopShareShipments', data, isLoading: false }) } /* 小程序发货-供应商订单发货商品查询 */ ShopOrderShipmentsInfo (data = {}) { return this.AjaxService.get({ url:'/supplier/shipmentsInfo', data, isLoading: true }) } /* 小程序发货-物流公司查询 */ GetLogisticsCompany (data = {}) { return this.AjaxService.get({ url:'/supplier/logisticsCompany', data, isLoading: true }) } /* 小程序发货-查看发货记录物流信息 */ GetLogisticsInfo (data = {}) { return this.AjaxService.get({ url:'/supplier/logisticsInfo', data, isLoading: true }) } /* 小程序发货-查看发货记录-添加物流 */ ShopAddLogisticsInfo (data = {}) { return this.AjaxService.post({ url:'/supplier/addLogisticsInfo', data, isLoading: true }) } /* 小程序发货-扫码获取物流公司信息 */ GetExpressInformation (data = {}) { return this.AjaxService.get({ url:'/supplier/scanLogistics', data, isLoading: false }) } /* 小程序发货-确认发货 */ ShopAddLogistics (data = {}) { return this.AjaxService.post({ url:'/supplier/addLogistics', data, isLoading: true }) } /* 小程序发货-发货记录 */ ShopShipmentsRecord (data = {}) { return this.AjaxService.get({ url:'/supplier/shipmentsRecord', data, isLoading: true }) } /* 小程序发货-撤销发货 */ ShopCancelShipment (data = {}) { return this.AjaxService.post({ url:'/supplier/cancelShipment', data, isLoading: true }) } /* 一级分类 */ GetPrimaryClassification (data = {}) { return this.AjaxService.get({ url:'/supplier/primaryClassification', data, isLoading: false }) } /* 二级级分类 */ GetPrimarySecondaryClassification (data = {}) { return this.AjaxService.get({ url:'/supplier/secondaryClassification', data, isLoading: false }) } /* 三级分类 */ GetPrimaryThreeLevelClassification (data = {}) { return this.AjaxService.get({ url:'/supplier/threeLevelClassification', data, isLoading: false }) } }