api.js 12 KB

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