api.js 9.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173
  1. // 以下是业务服务器API地址
  2. // var WxApiRoot = 'http://127.0.0.1:8081/wx/';
  3. // uat环境使用
  4. var WxApiRoot = 'https://uat.jzmall.lifejingzhi.com/wx/';
  5. //新版,宅洁士
  6. //var WxApiRoot='https://mall.zhaijieshi.cc/wx/';
  7. // 云平台上线时使用
  8. //var WxApiRoot = 'https://jzmall.lifejingzhi.com/wx/';
  9. module.exports = {
  10. IndexUrl: WxApiRoot + 'home/index', //首页数据接口
  11. AboutUrl: WxApiRoot + 'home/about', //介绍信息
  12. CatalogList: WxApiRoot + 'catalog/index', //分类目录全部分类数据接口
  13. CatalogCurrent: WxApiRoot + 'catalog/current', //分类目录当前分类数据接口
  14. AuthLoginByWeixin: WxApiRoot + 'auth/login_by_weixin', //微信登录--并注册
  15. AuthLogout: WxApiRoot + 'auth/logout', //账号登出
  16. AuthRegister: WxApiRoot + 'auth/register', //账号注册
  17. AuthReset: WxApiRoot + 'auth/reset', //账号密码重置
  18. AuthBindPhone: WxApiRoot + 'auth/bindPhone', //绑定微信手机号
  19. AuthDenPhone: WxApiRoot + 'auth/denPhone', //微信手机号解密
  20. AuthCert:WxApiRoot + 'auth/certification',//实名认证
  21. AuthIsCert:WxApiRoot + 'auth/iscertification',//是否实名认证
  22. GoodsCount: WxApiRoot + 'goods/count', //统计商品总数
  23. GoodsList: WxApiRoot + 'goods/list', //获得商品列表
  24. GoodsList_a2: WxApiRoot + 'goods/list_a2', //获得商品列表
  25. GoodsCategory: WxApiRoot + 'goods/category', //获得分类数据
  26. GoodsDetail: WxApiRoot + 'goods/detail', //获得商品的详情
  27. GoodsRelated: WxApiRoot + 'goods/related', //商品详情页的关联商品(大家都在看)
  28. GoodsL1Category:WxApiRoot+'goods/categoryGoods',//类目下所有商品
  29. GoodsCoupon:WxApiRoot+'goods/couponGoods',//返回优惠券绑定的商品
  30. BrandList: WxApiRoot + 'brand/list', //品牌列表
  31. BrandDetail: WxApiRoot + 'brand/detail', //品牌详情
  32. CartList: WxApiRoot + 'cart/index', //获取购物车的数据
  33. CartAdd: WxApiRoot + 'cart/add', // 添加商品到购物车
  34. CartFastAdd: WxApiRoot + 'cart/fastadd', // 立即购买商品
  35. CartUpdate: WxApiRoot + 'cart/update', // 更新购物车的商品
  36. CartDelete: WxApiRoot + 'cart/delete', // 删除购物车的商品
  37. CartChecked: WxApiRoot + 'cart/checked', // 选择或取消选择商品
  38. CartGoodsCount: WxApiRoot + 'cart/goodscount', // 获取购物车商品件数
  39. CartCheckout: WxApiRoot + 'cart/checkout', // 下单前信息确认
  40. CollectList: WxApiRoot + 'collect/list', //收藏列表
  41. CollectAddOrDelete: WxApiRoot + 'collect/addordelete', //添加或取消收藏
  42. CommentList: WxApiRoot + 'comment/list', //评论列表
  43. CommentCount: WxApiRoot + 'comment/count', //评论总数
  44. CommentPost: WxApiRoot + 'comment/post', //发表评论
  45. TopicList: WxApiRoot + 'topic/list', //专题列表
  46. TopicDetail: WxApiRoot + 'topic/detail', //专题详情
  47. TopicRelated: WxApiRoot + 'topic/related', //相关专题
  48. SearchIndex: WxApiRoot + 'search/index', //搜索关键字
  49. SearchResult: WxApiRoot + 'search/result', //搜索结果
  50. SearchHelper: WxApiRoot + 'search/helper', //搜索帮助
  51. SearchClearHistory: WxApiRoot + 'search/clearhistory', //搜索历史清楚
  52. AddressList: WxApiRoot + 'address/list', //收货地址列表
  53. AddressDetail: WxApiRoot + 'address/detail', //收货地址详情
  54. AddressSave: WxApiRoot + 'address/save', //保存收货地址
  55. AddressDelete: WxApiRoot + 'address/delete', //保存收货地址
  56. ExpressQuery: WxApiRoot + 'express/query', //物流查询
  57. RegionList: WxApiRoot + 'region/list', //获取区域列表
  58. OrderSubmit: WxApiRoot + 'order/submit', // 提交订单
  59. OrderPrepay: WxApiRoot + 'order/prepay', // 订单的预支付会话
  60. OrderList: WxApiRoot + 'order/list', //订单列表
  61. OrderDetail: WxApiRoot + 'order/detail', //订单详情
  62. OrderCancel: WxApiRoot + 'order/cancel', //取消订单
  63. OrderRefund: WxApiRoot + 'order/refund', //退款取消订单
  64. OrderDelete: WxApiRoot + 'order/delete', //删除订单
  65. OrderConfirm: WxApiRoot + 'order/confirm', //确认收货
  66. OrderGoods: WxApiRoot + 'order/goods', // 代评价商品信息
  67. OrderComment: WxApiRoot + 'order/comment', // 评价订单商品信息
  68. OrderCheck:WxApiRoot+ 'order/check',
  69. OrderEdit:WxApiRoot+ 'order/edit',
  70. AftersaleSubmit: WxApiRoot + 'aftersale/submit', // 提交售后申请
  71. AftersaleList: WxApiRoot + 'aftersale/list', // 售后列表
  72. AftersaleDetail: WxApiRoot + 'aftersale/detail', // 售后详情
  73. FeedbackAdd: WxApiRoot + 'feedback/submit', //添加反馈
  74. FootprintList: WxApiRoot + 'footprint/list', //足迹列表
  75. FootprintDelete: WxApiRoot + 'footprint/delete', //删除足迹
  76. GroupOnList: WxApiRoot + 'groupon/list', //团购列表
  77. GroupOnMy: WxApiRoot + 'groupon/my', //团购API-我的团购
  78. GroupOnDetail: WxApiRoot + 'groupon/detail', //团购API-详情
  79. GroupOnJoin: WxApiRoot + 'groupon/join', //团购API-详情
  80. CouponList: WxApiRoot + 'coupon/list', //优惠券列表
  81. CouponMyList: WxApiRoot + 'coupon/mylist', //我的优惠券列表
  82. CouponSelectList: WxApiRoot + 'coupon/selectlist', //当前订单可用优惠券列表
  83. CouponReceive: WxApiRoot + 'coupon/receive', //优惠券领取
  84. CouponExchange: WxApiRoot + 'coupon/exchange', //优惠券兑换
  85. StorageUpload: WxApiRoot + 'storage/upload', //图片上传,
  86. UserIndex: WxApiRoot + 'user/index', //个人页面用户相关信息
  87. IssueList: WxApiRoot + 'issue/list', //帮助信息
  88. QrCodeCreate:WxApiRoot+'qrcode/create',//普通二维码生成
  89. QrStarCodeCreate:WxApiRoot+'qrcode/createstar',//专属二维码
  90. QrGoodsCodeCreate:WxApiRoot+'qrcode/createshare',//商品分享链接 会员和普通用于一致 在分享用户注册时区分
  91. DisCommission:WxApiRoot+'commission/detail',//分佣总表
  92. DisCommissionChildUser:WxApiRoot+'commission/childuser',
  93. DisCommissionDetail:WxApiRoot+'commission/detailList',//已支付订单明细
  94. DisCommissionWaitDetail:WxApiRoot+'commission/detailWaitPayList',//未支付订单明细
  95. DisCashoutList:WxApiRoot+'commission/cashoutlist',//提现明细
  96. DisCashoutApply:WxApiRoot+'commission/cashoutapply',//提现申请
  97. JoinApply:WxApiRoot+'commission/joinapply',//加入申请
  98. JoinApplyList:WxApiRoot+'commission/joinlist',//申请历史
  99. DisCommissionSign:WxApiRoot+ "commission/sign",//签名
  100. PetIndex:WxApiRoot+"pet/index",//获取宠物保险所有拼音
  101. PetBreed:WxApiRoot+"pet/breed",//获取宠物品类
  102. OrderBookGetShop:WxApiRoot+"orderbook/getShop",//根据经纬度获取门店
  103. OrderCheckAddress:WxApiRoot+"orderbook/checkAddress",//收货地址校验
  104. OrderBookDefaultAddress:WxApiRoot+"address/default",//获取默认用户地址
  105. getDefaultCityShop: WxApiRoot + 'address/getDefaultCityShop', //小程序默认系统地址
  106. ActivityOngoing:WxApiRoot+"assistance/ongoing",//当前存在的助力活动
  107. ActivityList:WxApiRoot+"assistance/list",//助力活动历史-我发起的
  108. ActivityParticipate:WxApiRoot+"assistance/participate",//助力活动历史-我参与的
  109. ActivityDetail:WxApiRoot+"assistance/detail",//助力活动明细
  110. ActivityCreate:WxApiRoot+"assistance/create",//创建助力活动
  111. CouponRegister:WxApiRoot+"coupon/register",//进入小程序优惠券
  112. OrderAppoint: WxApiRoot + 'orderbook/estimate', // POST 预约服务人员结果预估
  113. ServiceDetail: WxApiRoot + 'orderbook/detail', //服务详情 预约单明细
  114. ServiceOrderBook: WxApiRoot + 'orderbook/book', // 未预约的权益 重新预约
  115. GetAllCity:WxApiRoot + 'address/getAllCity', //获取系统城市
  116. // ReferrerRidInfo:WxApiRoot + 'commission/referrerRidInfo', //根据分享的rid查询信息
  117. GetDenPhone:WxApiRoot + 'auth/getDenPhone', //获取手机号
  118. RegisterReferrer:WxApiRoot + 'auth/registerReferrer', //引荐人注册提交
  119. addClue:WxApiRoot + 'customerClue/addClue', //信息收集
  120. getServantList:WxApiRoot + 'companyServant/getServantList', //保姆列表
  121. servantResume:WxApiRoot + 'companyServant/servantResume', //查询保姆简历详情
  122. getMemberInfo:WxApiRoot + 'member/getMemberInfo', //会员中心
  123. getMemberBuyRecord:WxApiRoot + 'member/getMemberBuyRecord', //会员购买记录
  124. exchangeMemberCoupon:WxApiRoot + 'member/exchangeMemberCoupon', //兑换会员
  125. memberSubmit:WxApiRoot + 'member/submit', //生成订单
  126. prepayMember:WxApiRoot + 'member/prepayMember', //POST 准备购买会员,提交给微信生成订单
  127. payMemberNotify:WxApiRoot + 'member/payMember-notify', //微信支付通知 POST
  128. RefBcodeInfo:WxApiRoot + 'referee/refBcodeInfo', //根据输入的引荐码查询信息
  129. ReferrerRidInfo:WxApiRoot + 'referee/rInfo', //根据分享的rid查询信息
  130. RefereeIndex:WxApiRoot+'referee/index',//引荐人首页显示内容查询
  131. RefereePoster:WxApiRoot+'referee/poster',//引荐人海报
  132. RefereeOrderList:WxApiRoot+'referee/orderList',//引荐人订单列表
  133. RefereeMyTeamInfo:WxApiRoot+'referee/myteamInfo',//引荐人的团队汇总信息
  134. RefereeMyTeamList:WxApiRoot+'referee/myteam',//引荐人的团队
  135. RefereeMyBlance:WxApiRoot+'referee/myblance',//我的收益
  136. RefereeCashoutList:WxApiRoot+'referee/cashoutList',//我的提现记录
  137. RefereeCashoutApply:WxApiRoot+'referee/cashout',//提现申请
  138. RefereeCashoutAuthCheck:WxApiRoot+'referee/authCheck',//实名认证检查
  139. RefereeCashoutAuth:WxApiRoot+'referee/auth',//实名认证
  140. RefereeMemberPoster:WxApiRoot+'qrcode/createMemberPoster',//生成会员卡赠送海报
  141. RefereeMemberCardReceive:WxApiRoot+'member/cardReceive',//会员卡领取
  142. };