mall.js 3.4 KB

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