123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288 |
- /**
- * 这是与购物有关的业务逻辑的服务
- */
- export default class ShopService {
- constructor(AjaxService) {
- Object.assign(this, { AjaxService })
- this.name = 'ShopService'
- }
- /* 小程序-供应商注册第一步 */
- SupplierAppletsRegistered (data = {}) {
- return this.AjaxService.post({
- url:'/user/register/shop',
- data,
- isLoading: true,
-
- })
- }
- /* 小程序-搜索供应商列表 */
- GetSearchSupplierList (data = {}) {
- return this.AjaxService.get({
- url:'/commodity/search/query/shop',
- data,
- isLoading: true ,
-
- })
- }
- /* 小程序供应商个人中心 */
- GetHomePageData (data = {}) {
- return this.AjaxService.get({ url:'/user/shop/personal/data', data, isLoading: true })
- }
- /* 小程序供应商我的商品 */
- GetSupplierPyProduct (data = {}) {
- return this.AjaxService.get({
- url:'/commodity/shop/product/list',
- data,
- isLoading: false ,
-
- })
- }
- /* 小程序供应商操作添加删除主推商品 */
- SupplierSwitchFeaturedyProduct (data = {}) {
- return this.AjaxService.post({
- url:'/commodity/shop/featured/switch',
- data,
- isLoading: true ,
-
- })
- }
- /* 小程序供应商操作下架商品 */
- SupplierSoldOutProduct (data = {}) {
- return this.AjaxService.post({
- url:'/commodity/shop/product/offline',
- data,
- isLoading: true ,
-
- })
- }
- /* 小程序供应商我的店铺详情 */
- GetSupplierHomeDeatils (data = {}) {
- return this.AjaxService.get({
- url:'/user/shop/home/data',
- data,
- isLoading: true ,
- })
- }
- /* 小程序供应商我的店铺banner */
- GetSupplierHomeBanner (data = {}) {
- return this.AjaxService.get({
- url:'/user/shop/home/images',
- data,
- isLoading: true ,
- })
- }
- /* 小程序供应商我的店铺主推商品 */
- GetSupplierHomeProduct (data = {}) {
- return this.AjaxService.get({
- url:'/commodity/shop/product/main',
- data,
- isLoading: true ,
-
- })
- }
- /* 小程序供应商我的店铺全部商品 */
- GetSupplierHomeProductList (data = {}) {
- return this.AjaxService.get({
- url:'/commodity/search/query/product/shop',
- data,
- isLoading: false ,
-
- })
- }
- /* 发货-添加商品资质初始化查询商品 */
- GetSupplierLogisticsRecord (data = {}) {
- return this.AjaxService.get({
- url:'/order/shop/ship/logistics/record',
- data,
- isLoading: false ,
-
- })
- }
- /* 发货-商品资质回显 */
- GetSupplierQualificationData (data = {}) {
- return this.AjaxService.get({
- url:'/order/shop/qualification/list',
- data,
- isLoading: false ,
-
- })
- }
- /* 发货-保存商品资质 */
- GetSupplierQualificationUpdata (data = {}) {
- return this.AjaxService.post({
- url:'/order/shop/qualification/save',
- data,
- isLoading: false ,
-
- })
- }
- /* 小程序供应商我的订单 */
- GetSupplierMyOrderList (data = {}) {
- return this.AjaxService.get({
- url:'/order/shop/list',
- data,
- isLoading: true ,
-
- })
- }
- /* 小程序发货-权限控制 */
- MiniShipments (data = {}) {
- return this.AjaxService.get({
- url:'/order/shop/share/code/check',
- data,
- isLoading: true ,
-
- })
- }
- /* 小程序发货-查询供应商子订单详情 */
- GetShopOrderDetails (data = {}) {
- return this.AjaxService.get({
- url:'/order/shop/detail',
- data,
- isLoading: true ,
-
- })
- }
- /* 小程序发货-供应商订单详情获取订单分享码 */
- ShopOrderShareCode (data = {}) {
- return this.AjaxService.get({
- url:'/order/shop/share/code',
- data,
- isLoading: false ,
-
- })
- }
- /* 小程序发货-供应商订单发货商品查询 */
- ShopOrderShipmentsInfo (data = {}) {
- return this.AjaxService.get({
- url:'/order/shop/ship/info',
- data,
- isLoading: true ,
-
- })
- }
- /* 小程序发货-物流公司查询 */
- GetLogisticsCompany (data = {}) {
- return this.AjaxService.get({
- url:'/order/shop/ship/company',
- data,
- isLoading: true ,
-
- })
- }
- /* 小程序发货-查看发货记录物流信息 */
- GetLogisticsInfo (data = {}) {
- return this.AjaxService.get({
- url:'/order/shop/ship/logistics/info',
- data,
- isLoading: true ,
-
- })
- }
- /* 小程序发货-查看发货记录-添加物流 */
- ShopAddLogisticsInfo (data = {}) {
- return this.AjaxService.post({
- url:'/order/shop/ship/logistics/add',
- data,
- isLoading: true,
-
- })
- }
- /* 小程序发货-扫码获取物流公司信息 */
- GetExpressInformation (data = {}) {
- return this.AjaxService.post({
- url:'/order/shop/ship/logistics/scan',
- data,
- isLoading: false,
-
- })
- }
- /* 小程序发货-确认发货 */
- ShopAddLogistics (data = {}) {
- return this.AjaxService.post({
- url:'/order/shop/ship/delivery',
- data,
- isLoading: true ,
-
- })
- }
- /* 小程序发货-发货记录 */
- ShopShipmentsRecord (data = {}) {
- return this.AjaxService.get({
- url:'/order/shop/ship/delivery/record',
- data,
- isLoading: true ,
-
- })
- }
- /* 小程序发货-撤销发货 */
- ShopCancelShipment (data = {}) {
- return this.AjaxService.post({
- url:'/order/shop/ship/delivery/cancel',
- data,
- isLoading: true ,
-
- })
- }
- /* 一级分类 */
- GetPrimaryClassification (data = {}) {
- return this.AjaxService.get({
- url:'/commodity/type/first',
- 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 ,
- })
- }
- /**
- *@供应商消息通知中心未读消息数量
- */
- getUserAuthShopMessageCount(data = {}) {
- return this.AjaxService.get({
- url: '/user/login/auth/shopMessageCount',
- data,
- isLoading: false,
- })
- }
- /**
- *@供应商消息通知列表
- *@param commonId:供应商shopId
- *@param messageType:消息类型1.交易物流2.账户通知3.服务通知4.优惠促销
- *@param pageNum 页码
- *@param pageSize 条数
- */
- getUserAuthShopMessageList(data = {}) {
- return this.AjaxService.get({
- url: '/user/login/auth/shopMessageList',
- data,
- isLoading: false,
-
- })
- }
- /**
- *@查询供应商未读消息数量
- *@param commonId:供应商clubId
- */
- getAuthShopCount(data = {}) {
- return this.AjaxService.get({
- url: '/user/login/auth/ShopCount',
- data,
- isLoading: false,
- })
- }
-
- }
|