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