api.js 13 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360
  1. // 以下是业务服务器API地址
  2. // var WxApiRoot = 'http://127.0.0.1:8081/wx/';
  3. // uat环境使用
  4. var WxApiRoot = 'https://uat.jzmall.lifejingzhi.com/kao/';
  5. // var WxApiRoot = 'http://192.168.2.200:8081/kao/';
  6. //新版,宅洁士
  7. // var WxApiRoot = 'https://mall.zhaijieshi.cc/kao/';
  8. module.exports = {
  9. IndexUrl: WxApiRoot + 'home/index',
  10. //首页数据接口
  11. AboutUrl: WxApiRoot + 'home/about',
  12. //介绍信息
  13. CatalogList: WxApiRoot + 'catalog/index',
  14. //分类目录全部分类数据接口
  15. CatalogCurrent: WxApiRoot + 'catalog/current',
  16. //分类目录当前分类数据接口
  17. AuthLoginByWeixin: WxApiRoot + 'auth/login_by_weixin',
  18. //微信登录--并注册
  19. AuthLogout: WxApiRoot + 'auth/logout',
  20. //账号登出
  21. AuthRegister: WxApiRoot + 'auth/register',
  22. //账号注册
  23. AuthReset: WxApiRoot + 'auth/reset',
  24. //账号密码重置
  25. AuthBindPhone: WxApiRoot + 'auth/bindPhone',
  26. //绑定微信手机号
  27. AuthDenPhone: WxApiRoot + 'auth/denPhone',
  28. //微信手机号解密
  29. AuthCert: WxApiRoot + 'auth/certification',
  30. //实名认证
  31. AuthIsCert: WxApiRoot + 'auth/iscertification',
  32. //是否实名认证
  33. AuthInfo: WxApiRoot + 'auth/info',
  34. //拿手机
  35. GoodsCount: WxApiRoot + 'goods/count',
  36. //统计商品总数
  37. GoodsList: WxApiRoot + 'goods/list',
  38. //获得商品列表
  39. GoodsList_a2: WxApiRoot + 'goods/list_a2',
  40. //获得商品列表
  41. GoodsCategory: WxApiRoot + 'goods/category',
  42. //获得分类数据
  43. GoodsDetail: WxApiRoot + 'goods/detail',
  44. //获得商品的详情
  45. GoodsRelated: WxApiRoot + 'goods/related',
  46. //商品详情页的关联商品(大家都在看)
  47. GoodsL1Category: WxApiRoot + 'goods/categoryGoods',
  48. //类目下所有商品
  49. GoodsCoupon: WxApiRoot + 'goods/couponGoods',
  50. //返回优惠券绑定的商品
  51. BrandList: WxApiRoot + 'brand/list',
  52. //品牌列表
  53. BrandDetail: WxApiRoot + 'brand/detail',
  54. //品牌详情
  55. CartList: WxApiRoot + 'cart/index',
  56. //获取购物车的数据
  57. CartAdd: WxApiRoot + 'cart/add',
  58. // 添加商品到购物车
  59. CartFastAdd: WxApiRoot + 'cart/fastadd',
  60. // 立即购买商品
  61. CartUpdate: WxApiRoot + 'cart/update',
  62. // 更新购物车的商品
  63. CartDelete: WxApiRoot + 'cart/delete',
  64. // 删除购物车的商品
  65. CartChecked: WxApiRoot + 'cart/checked',
  66. // 选择或取消选择商品
  67. CartGoodsCount: WxApiRoot + 'cart/goodscount',
  68. // 获取购物车商品件数
  69. CartCheckout: WxApiRoot + 'cart/checkout',
  70. // 下单前信息确认
  71. CollectList: WxApiRoot + 'collect/list',
  72. //收藏列表
  73. CollectAddOrDelete: WxApiRoot + 'collect/addordelete',
  74. //添加或取消收藏
  75. CommentList: WxApiRoot + 'comment/list',
  76. //评论列表
  77. CommentCount: WxApiRoot + 'comment/count',
  78. //评论总数
  79. CommentPost: WxApiRoot + 'comment/post',
  80. //发表评论
  81. TopicList: WxApiRoot + 'topic/list',
  82. //专题列表
  83. TopicDetail: WxApiRoot + 'topic/detail',
  84. //专题详情
  85. TopicRelated: WxApiRoot + 'topic/related',
  86. //相关专题
  87. SearchIndex: WxApiRoot + 'search/index',
  88. //搜索关键字
  89. SearchResult: WxApiRoot + 'search/result',
  90. //搜索结果
  91. SearchHelper: WxApiRoot + 'search/helper',
  92. //搜索帮助
  93. SearchClearHistory: WxApiRoot + 'search/clearhistory',
  94. //搜索历史清楚
  95. AddressList: WxApiRoot + 'address/list',
  96. //收货地址列表
  97. AddressDetail: WxApiRoot + 'address/detail',
  98. //收货地址详情
  99. AddressSave: WxApiRoot + 'address/save',
  100. //保存收货地址
  101. AddressDelete: WxApiRoot + 'address/delete',
  102. //保存收货地址
  103. ExpressQuery: WxApiRoot + 'express/query',
  104. //物流查询
  105. RegionList: WxApiRoot + 'region/list',
  106. //获取区域列表
  107. OrderSubmit: WxApiRoot + 'order/submit',
  108. // 提交订单
  109. OrderPrepay: WxApiRoot + 'order/prepay',
  110. // 订单的预支付会话
  111. OrderList: WxApiRoot + 'order/list',
  112. //订单列表
  113. OrderDetail: WxApiRoot + 'order/detail',
  114. //订单详情
  115. OrderCancel: WxApiRoot + 'order/cancel',
  116. //取消订单
  117. OrderRefund: WxApiRoot + 'order/refund',
  118. //退款取消订单
  119. OrderDelete: WxApiRoot + 'order/delete',
  120. //删除订单
  121. OrderConfirm: WxApiRoot + 'order/confirm',
  122. //确认收货
  123. OrderGoods: WxApiRoot + 'order/goods',
  124. // 代评价商品信息
  125. OrderComment: WxApiRoot + 'order/comment',
  126. // 评价订单商品信息
  127. OrderCheck: WxApiRoot + 'order/check',
  128. OrderEdit: WxApiRoot + 'order/edit',
  129. //订单备注
  130. OrderMsg: WxApiRoot + 'order/orderMsg',
  131. AftersaleSubmit: WxApiRoot + 'aftersale/submit',
  132. // 提交售后申请
  133. AftersaleList: WxApiRoot + 'aftersale/list',
  134. // 售后列表
  135. AftersaleDetail: WxApiRoot + 'aftersale/detail',
  136. // 售后详情
  137. AftersaleRefundType: WxApiRoot + 'aftersale/getRefuntType',
  138. //获取退款原因
  139. AftersaleAmount: WxApiRoot + 'aftersale/preCheck',
  140. FeedbackAdd: WxApiRoot + 'feedback/submit',
  141. //添加反馈
  142. FootprintList: WxApiRoot + 'footprint/list',
  143. //足迹列表
  144. FootprintDelete: WxApiRoot + 'footprint/delete',
  145. //删除足迹
  146. GroupOnList: WxApiRoot + 'groupon/list',
  147. //团购列表
  148. GroupOnMy: WxApiRoot + 'groupon/my',
  149. //团购API-我的团购
  150. GroupOnDetail: WxApiRoot + 'groupon/detail',
  151. //团购API-详情
  152. GroupOnJoin: WxApiRoot + 'groupon/join',
  153. //团购API-详情
  154. CouponList: WxApiRoot + 'coupon/list',
  155. //优惠券列表
  156. CouponMyList: WxApiRoot + 'coupon/mylist',
  157. //我的优惠券列表
  158. CouponSelectList: WxApiRoot + 'coupon/selectlist',
  159. //当前订单可用优惠券列表
  160. CouponReceive: WxApiRoot + 'coupon/receive',
  161. //优惠券领取
  162. CouponExchange: WxApiRoot + 'coupon/exchange',
  163. //优惠券兑换
  164. CouponDouyinExchange: WxApiRoot + 'coupon/exchangeDouyin',
  165. //抖音优惠券兑换
  166. CouponPre: WxApiRoot + 'coupon/couponPre',
  167. //团购预售查询
  168. CouponReceiveList: WxApiRoot + 'coupon/recevieList',
  169. //返回优惠券领取列表
  170. StorageUpload: WxApiRoot + 'storage/upload',
  171. //图片上传,
  172. UserIndex: WxApiRoot + 'user/index',
  173. //个人页面用户相关信息
  174. IssueList: WxApiRoot + 'issue/list',
  175. //帮助信息
  176. QrCodeCreate: WxApiRoot + 'qrcode/create',
  177. //普通二维码生成
  178. QrStarCodeCreate: WxApiRoot + 'qrcode/createstar',
  179. //专属二维码
  180. QrGoodsCodeCreate: WxApiRoot + 'qrcode/createshare',
  181. //商品分享链接 会员和普通用于一致 在分享用户注册时区分
  182. DisCommission: WxApiRoot + 'commission/detail',
  183. //分佣总表
  184. DisCommissionChildUser: WxApiRoot + 'commission/childuser',
  185. DisCommissionDetail: WxApiRoot + 'commission/detailList',
  186. //已支付订单明细
  187. DisCommissionWaitDetail: WxApiRoot + 'commission/detailWaitPayList',
  188. //未支付订单明细
  189. DisCashoutList: WxApiRoot + 'commission/cashoutlist',
  190. //提现明细
  191. DisCashoutApply: WxApiRoot + 'commission/cashoutapply',
  192. //提现申请
  193. JoinApply: WxApiRoot + 'commission/joinapply',
  194. //加入申请
  195. JoinApplyList: WxApiRoot + 'commission/joinlist',
  196. //申请历史
  197. DisCommissionSign: WxApiRoot + 'commission/sign',
  198. //签名
  199. PetIndex: WxApiRoot + 'pet/index',
  200. //获取宠物保险所有拼音
  201. PetBreed: WxApiRoot + 'pet/breed',
  202. //获取宠物品类
  203. OrderBookGetShop: WxApiRoot + 'orderbook/getShop',
  204. //根据经纬度获取门店
  205. OrderCheckAddress: WxApiRoot + 'orderbook/checkAddress',
  206. //收货地址校验
  207. OrderBookDefaultAddress: WxApiRoot + 'address/default',
  208. //获取默认用户地址
  209. getDefaultCityShop: WxApiRoot + 'address/getDefaultCityShop',
  210. //小程序默认系统地址
  211. ActivityOngoing: WxApiRoot + 'assistance/ongoing',
  212. //当前存在的助力活动
  213. ActivityList: WxApiRoot + 'assistance/list',
  214. //助力活动历史-我发起的
  215. ActivityParticipate: WxApiRoot + 'assistance/participate',
  216. //助力活动历史-我参与的
  217. ActivityDetail: WxApiRoot + 'assistance/detail',
  218. //助力活动明细
  219. ActivityCreate: WxApiRoot + 'assistance/create',
  220. //创建助力活动
  221. CouponRegister: WxApiRoot + 'coupon/register',
  222. //进入小程序优惠券
  223. OrderAppoint: WxApiRoot + 'orderbook/estimate',
  224. // POST 预约服务人员结果预估
  225. ServiceDetail: WxApiRoot + 'orderbook/detail',
  226. //服务详情 预约单明细
  227. ServiceOrderBook: WxApiRoot + 'orderbook/book',
  228. // 未预约的权益 重新预约
  229. GetAllCity: WxApiRoot + 'address/getAllCity',
  230. //获取系统城市
  231. // ReferrerRidInfo:WxApiRoot + 'commission/referrerRidInfo', //根据分享的rid查询信息
  232. GetDenPhone: WxApiRoot + 'auth/getDenPhone',
  233. //获取手机号
  234. RegisterReferrer: WxApiRoot + 'auth/registerReferrer',
  235. //引荐人注册提交
  236. addClue: WxApiRoot + 'customerClue/addClue',
  237. //信息收集
  238. addClueMs: WxApiRoot + 'customerClue/addClueMs',
  239. //民生银行信息收集
  240. addClueRecommender: WxApiRoot + 'customerClue/checkRecommend',
  241. //推荐人信息
  242. getServantList: WxApiRoot + 'companyServant/getServantList',
  243. //保姆列表
  244. servantResume: WxApiRoot + 'companyServant/servantResume',
  245. //查询保姆简历详情
  246. getMemberInfo: WxApiRoot + 'member/getMemberInfo',
  247. //会员中心
  248. getMemberBuyRecord: WxApiRoot + 'member/getMemberBuyRecord',
  249. //会员购买记录
  250. exchangeMemberCoupon: WxApiRoot + 'member/exchangeMemberCoupon',
  251. //兑换会员
  252. memberSubmit: WxApiRoot + 'member/submit',
  253. //生成订单
  254. prepayMember: WxApiRoot + 'member/prepayMember',
  255. //POST 准备购买会员,提交给微信生成订单
  256. payMemberNotify: WxApiRoot + 'member/payMember-notify',
  257. //微信支付通知 POST
  258. RefBcodeInfo: WxApiRoot + 'referee/refBcodeInfo',
  259. //根据输入的引荐码查询信息
  260. ReferrerRidInfo: WxApiRoot + 'referee/rInfo',
  261. //根据分享的rid查询信息
  262. RefereeIndex: WxApiRoot + 'referee/index',
  263. //引荐人首页显示内容查询
  264. RefereePoster: WxApiRoot + 'referee/poster',
  265. //引荐人海报
  266. RefereeOrderList: WxApiRoot + 'referee/orderList',
  267. //引荐人订单列表
  268. RefereeMyTeamInfo: WxApiRoot + 'referee/myteamInfo',
  269. //引荐人的团队汇总信息
  270. RefereeMyTeamList: WxApiRoot + 'referee/myteam',
  271. //引荐人的团队
  272. RefereeMyBlance: WxApiRoot + 'referee/myblance',
  273. //我的收益
  274. RefereeCashoutList: WxApiRoot + 'referee/cashoutList',
  275. //我的提现记录
  276. RefereeCashoutApply: WxApiRoot + 'referee/cashout',
  277. //提现申请
  278. RefereeCashoutAuthCheck: WxApiRoot + 'referee/authCheck',
  279. //实名认证检查
  280. RefereeCashoutAuth: WxApiRoot + 'referee/auth',
  281. //实名认证
  282. RefereeMemberPoster: WxApiRoot + 'qrcode/createMemberPoster',
  283. //生成会员卡赠送海报
  284. RefereeMemberCardReceive: WxApiRoot + 'member/cardReceive',
  285. //会员卡领取
  286. GetMemberAd: WxApiRoot + 'ad/getMemberAd',
  287. //会员活动广告接口
  288. EveryDayStock: WxApiRoot + '/orderbook/everyDayStock',
  289. //单次卡库存
  290. checkRecommend: WxApiRoot + 'order/checkRecommend',
  291. //推荐码
  292. CPQrCode: WxApiRoot + 'cp/qrCode',
  293. //获取加企微的活码
  294. getTradeOrderList: WxApiRoot + 'customerRerutnApi/getTradeOrderList',
  295. //工单详情,传bookDetailId
  296. getConsoultType: WxApiRoot + 'customerRerutnApi/getConsoultType',
  297. //企业回访数据
  298. saveVisitBatch: WxApiRoot + 'customerRerutnApi/saveVisitBatch',
  299. //提交企业回访数据
  300. getGoodsComment: WxApiRoot + 'goods/getGoodsComment',
  301. //全部评价
  302. everyDayTime: WxApiRoot + 'orderbook/everyDayTime',
  303. //预约时间
  304. ServiceOrderBookV2: WxApiRoot + 'orderbook/bookV2',
  305. //预约服务
  306. OrderBookCancel: WxApiRoot + 'orderbook/cancelBook',
  307. //预约取消
  308. gdUrl: 'https://restapi.amap.com/v3/geocode/regeo',
  309. gdCityUrl: 'https://restapi.amap.com/v3/geocode/geo',
  310. gdSearchUrl: 'https://restapi.amap.com/v3/assistant/inputtips',
  311. gdKey: 'ad9076a2b3efffaf7ff54c2ece9e92c1',
  312. getDiffList: WxApiRoot + 'orderDiff/getDiffList',
  313. //GET 补差订单列表
  314. getDiffDetail: WxApiRoot + 'orderDiff/getDiffDetail',
  315. //GET 获取补差订单详情
  316. prepayDiff: WxApiRoot + 'orderDiff/prepayDiff',
  317. //GET 准备购买会员,提交给微信生成订单
  318. payDiffOrderNotify: WxApiRoot + 'orderDiff/payDiffOrderNotify',
  319. //GET 微信支付成功通知
  320. addCusAddress: WxApiRoot + 'order/addCusAddress',
  321. //POST 添加客户地址
  322. getCusAddressList: WxApiRoot + 'order/getCusAddressList',
  323. //GET 获取客户地址列表
  324. getOrderInfo: WxApiRoot + 'order/getOrderInfo',
  325. //获取订单信息
  326. customerBook: WxApiRoot + 'order/customerBook',
  327. // 客户预约
  328. getBooked: WxApiRoot + 'orderbook/getBooked',
  329. //常见问题查询
  330. getProblems:WxApiRoot+"search/getCommonProblem",
  331. //花王认证
  332. getHwAuthInfo:WxApiRoot+"order/getHwAuthInfo"
  333. };