api.js 11 KB

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