mall.js 3.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263
  1. // var WxApiRoot = 'http://localhost:19110/jzworkerapiservice/wx/';
  2. // uat环境使用
  3. var WxApiRoot = 'https://uat.servant.lifejingzhi.com/jzworkerapiservice/wx/';
  4. var WxApiRootMall = 'https://servant.lifejingzhi.com/jzworkerapiservice/wxservant/';
  5. // 云平台上线时使用
  6. // var WxApiRoot = 'https://servant.lifejingzhi.com/jzworkerapiservice/wx/';
  7. const app = getApp();
  8. module.exports = {
  9. AuthRegister: WxApiRoot + 'auth/register', //账号注册
  10. CatalogList: WxApiRoot + 'catalog/index', //分类目录全部分类数据接口
  11. CatalogCurrent: WxApiRoot + 'catalog/current', //分类目录当前分类数据接口
  12. GoodsCount: WxApiRoot + 'goods/count', //统计商品总数
  13. GoodsL1Category:WxApiRoot+'goods/categoryGoods',//类目下所有商品
  14. OrderList: WxApiRoot + 'order/list', //订单列表
  15. OrderPrepay: WxApiRoot + 'order/prepay', // 订单的预支付会话
  16. OrderDelete: WxApiRoot + 'order/delete', //删除订单
  17. OrderCancel: WxApiRoot + 'order/cancel', //取消订单
  18. OrderConfirm: WxApiRoot + 'order/confirm', //确认收货
  19. OrderRefund: WxApiRoot + 'order/refund', //退款取消订单
  20. QrGoodsCodeCreate:WxApiRoot+'qrcode/createshare',//商品分享链接 会员和普通用于一致 在分享用户注册时区分
  21. GroupOnJoin: WxApiRoot + 'groupon/join', //团购API-详情
  22. GoodsDetail: WxApiRoot + 'goods/detail', //获得商品的详情
  23. GoodsRelated: WxApiRoot + 'goods/related', //商品详情页的关联商品(大家都在看)
  24. CollectAddOrDelete: WxApiRoot + 'collect/addordelete', //添加或取消收藏
  25. CartFastAdd: WxApiRoot + 'cart/fastadd', // 立即购买商品
  26. CartAdd: WxApiRoot + 'cart/add', // 添加商品到购物车
  27. CartCheckout: WxApiRoot + 'cart/checkout', // 下单前信息确认
  28. OrderCheck:WxApiRoot+ 'order/check',
  29. OrderSubmit: WxApiRoot + 'order/submit', // 提交订单
  30. OrderPrepay: WxApiRoot + 'order/prepay', // 订单的预支付会话
  31. OrderAppoint: WxApiRoot + 'orderbook/estimate', // POST 预约服务人员结果预估
  32. SearchIndex: WxApiRoot + 'search/index', //搜索关键字
  33. SearchResult: WxApiRoot + 'search/result', //搜索结果
  34. SearchHelper: WxApiRoot + 'search/helper', //搜索帮助
  35. SearchClearHistory: WxApiRoot + 'search/clearhistory', //搜索历史清楚
  36. GoodsList: WxApiRoot + 'goods/list', //获得商品列表
  37. CartList: WxApiRoot + 'cart/index', //获取购物车的数据
  38. CartChecked: WxApiRoot + 'cart/checked', // 选择或取消选择商品
  39. CartUpdate: WxApiRoot + 'cart/update', // 更新购物车的商品
  40. CartDelete: WxApiRoot + 'cart/delete', // 删除购物车的商品
  41. //请假,商城和服务者crm一起
  42. GetLeaveAllType: WxApiRoot + 'workerLeave/getAllType', // 获取所有请假类型
  43. GetLeavePageList: WxApiRoot + 'workerLeave/getPageList', // 查询请假列表
  44. SubmitLeave: WxApiRoot + 'workerLeave/submitLeave', //发起请假
  45. CancelLeave: WxApiRoot + 'workerLeave/cancelLeave', // 取消请假
  46. StorageUpload:function(){
  47. let durs= WxApiRoot + 'storage/addFile'; //图片上传,
  48. let isUat=wx.getStorageSync('isUat');
  49. if(!isUat){
  50. durs=durs.replace('uat.','')
  51. }
  52. return durs;
  53. },
  54. ToolkitList: WxApiRootMall + 'workerToolkit/list', //工具包待领取
  55. ToolkitToComplete: WxApiRootMall + 'workerToolkit/getWorkerToolInfoToComplete',
  56. ToolkitReceive: WxApiRootMall + 'workerToolkit/receive',
  57. getDetailInfo:WxApiRootMall + 'telecomCard/getDetailInfo',
  58. saveOrder:WxApiRootMall + 'telecomCard/saveOrder',
  59. selectNumber:WxApiRootMall + 'telecomCard/selectNumber',
  60. }