api.js 10 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297
  1. // 以下是业务服务器API地址
  2. // var WxApiRoot = 'http://localhost:8081/v2/douyin/';
  3. var WxApiRoot = 'http://192.168.2.107:8081/wx/';
  4. // uat环境使用
  5. // #ifdef MP-TOUTIAO
  6. // var WxApiRoot = 'https://uat.jzmall.lifejingzhi.com/v2/douyin/';
  7. // #endif
  8. // #ifdef MP-ALIPAY
  9. // var WxApiRoot = 'https://uat.jzmall.lifejingzhi.com/zfb/';
  10. // #endif
  11. // #ifdef MP-WEIXIN
  12. // var WxApiRoot = 'https://uat.jzmall.lifejingzhi.com/wx/';
  13. // #endif
  14. //新版,宅洁士
  15. // #ifdef MP-TOUTIAO
  16. // var WxApiRoot = 'https://mall.zhaijieshi.cc/v2/douyin/';
  17. // #endif
  18. // #ifdef MP-ALIPAY
  19. // var WxApiRoot = 'https://mall.zhaijieshi.cc/zfb/';
  20. // #endif
  21. // #ifdef MP-WEIXIN
  22. // var WxApiRoot = 'https://jzmall.lifejingzhi.com/wx/';
  23. // #endif
  24. var appid='tt9019e6a40f261c9a01'//鲸致
  25. // var appid='ttf8798ec467461e4501'//云嘉
  26. var appid='2021004145602252'//支付宝
  27. module.exports = {
  28. appid:appid,
  29. IndexUrl: WxApiRoot + 'home/index',
  30. //首页数据接口
  31. AboutUrl: WxApiRoot + 'home/about',
  32. //介绍信息
  33. CatalogList: WxApiRoot + 'catalog/index',
  34. //分类目录全部分类数据接口
  35. CatalogCurrent: WxApiRoot + 'catalog/current',
  36. //分类目录当前分类数据接口
  37. AuthLoginByWeixin: WxApiRoot + 'auth/login_by_weixin',
  38. //微信登录--并注册
  39. AuthLogout: WxApiRoot + 'auth/logout',
  40. //账号登出
  41. AuthRegister: WxApiRoot + 'auth/register',
  42. //账号注册
  43. AuthReset: WxApiRoot + 'auth/reset',
  44. //获取openid
  45. AuthOpenId: WxApiRoot + 'auth/getOpenId',
  46. //账号密码重置
  47. AuthBindPhone: WxApiRoot + 'auth/bindPhone',
  48. //绑定微信手机号
  49. AuthDenPhone: WxApiRoot + 'auth/denPhone',
  50. //微信手机号解密
  51. AuthCert: WxApiRoot + 'auth/certification',
  52. //实名认证
  53. AuthIsCert: WxApiRoot + 'auth/iscertification',
  54. //是否实名认证
  55. GoodsCount: WxApiRoot + 'goods/count',
  56. //统计商品总数
  57. GoodsList: WxApiRoot + 'goods/list',
  58. //获得商品列表
  59. GoodsList_a2: WxApiRoot + 'goods/list_a2',
  60. //获得商品列表
  61. GoodsCategory: WxApiRoot + 'goods/category',
  62. //获得分类数据
  63. GoodsDetail: WxApiRoot + 'goods/detailV2',
  64. //获得商品的详情
  65. GoodsRelated: WxApiRoot + 'goods/related',
  66. //商品详情页的关联商品(大家都在看)
  67. GoodsL1Category: WxApiRoot + 'goods/categoryGoods',
  68. //类目下所有商品
  69. GoodsCoupon: WxApiRoot + 'goods/couponGoods',
  70. //返回优惠券绑定的商品
  71. BrandList: WxApiRoot + 'brand/list',
  72. //品牌列表
  73. BrandDetail: WxApiRoot + 'brand/detail',
  74. //品牌详情
  75. CartList: WxApiRoot + 'cart/index',
  76. //获取购物车的数据
  77. CartAdd: WxApiRoot + 'cart/add',
  78. // 添加商品到购物车
  79. CartFastAdd: WxApiRoot + 'cart/fastadd',
  80. // 立即购买商品
  81. CartUpdate: WxApiRoot + 'cart/update',
  82. // 更新购物车的商品
  83. CartDelete: WxApiRoot + 'cart/delete',
  84. // 删除购物车的商品
  85. CartChecked: WxApiRoot + 'cart/checked',
  86. // 选择或取消选择商品
  87. CartGoodsCount: WxApiRoot + 'cart/goodscount',
  88. // 获取购物车商品件数
  89. CartCheckout: WxApiRoot + 'order/checkoutV2',
  90. // 下单前信息确认
  91. CollectList: WxApiRoot + 'collect/list',
  92. //收藏列表
  93. CollectAddOrDelete: WxApiRoot + 'collect/addordelete',
  94. //添加或取消收藏
  95. CommentList: WxApiRoot + 'comment/list',
  96. //评论列表
  97. CommentCount: WxApiRoot + 'comment/count',
  98. //评论总数
  99. CommentPost: WxApiRoot + 'comment/post',
  100. //发表评论
  101. TopicList: WxApiRoot + 'topic/list',
  102. //专题列表
  103. TopicDetail: WxApiRoot + 'topic/detail',
  104. //专题详情
  105. TopicRelated: WxApiRoot + 'topic/related',
  106. //相关专题
  107. SearchIndex: WxApiRoot + 'search/index',
  108. //搜索关键字
  109. SearchResult: WxApiRoot + 'search/result',
  110. //搜索结果
  111. SearchHelper: WxApiRoot + 'search/helper',
  112. //搜索帮助
  113. SearchClearHistory: WxApiRoot + 'search/clearhistory',
  114. //搜索历史清楚
  115. AddressList: WxApiRoot + 'address/list',
  116. //收货地址列表
  117. AddressDetail: WxApiRoot + 'address/detail',
  118. //收货地址详情
  119. AddressSave: WxApiRoot + 'address/save2',
  120. //保存收货地址
  121. AddressDelete: WxApiRoot + 'address/delete',
  122. //保存收货地址
  123. LocationSave: WxApiRoot + 'address/saveLocation',
  124. //自定定位地址保存
  125. //收货check
  126. AddressChcek: WxApiRoot + 'address/check',
  127. ExpressQuery: WxApiRoot + 'express/query',
  128. //物流查询
  129. RegionList: WxApiRoot + 'region/list',
  130. //获取区域列表
  131. OrderSubmit: WxApiRoot + 'order/submit',
  132. // 提交订单
  133. OrderPrepay: WxApiRoot + 'order/prepayV2',
  134. // 订单的预支付会话
  135. OrderList: WxApiRoot + 'order/list',
  136. //订单列表
  137. OrderDetail: WxApiRoot + 'order/detail',
  138. //订单详情
  139. OrderCancel: WxApiRoot + 'order/cancel',
  140. //取消订单
  141. OrderRefund: WxApiRoot + 'order/refund',
  142. //退款取消订单
  143. OrderDelete: WxApiRoot + 'order/delete',
  144. //删除订单
  145. OrderConfirm: WxApiRoot + 'order/confirm',
  146. //确认收货
  147. OrderGoods: WxApiRoot + 'order/goods',
  148. // 代评价商品信息
  149. OrderComment: WxApiRoot + 'order/comment',
  150. //订单备注
  151. OrderMsg: WxApiRoot + 'order/orderMsg',
  152. // 评价订单商品信息
  153. OrderPayCheck: WxApiRoot + 'order/payCheck',
  154. OrderEdit: WxApiRoot + 'order/edit',
  155. //订单校验
  156. OrderCheckGoods: WxApiRoot + 'order/checkGoodsV2',
  157. AftersaleSubmit: WxApiRoot + 'aftersale/submit',
  158. // 提交售后申请
  159. AftersaleList: WxApiRoot + 'aftersale/list',
  160. // 售后列表
  161. AftersaleDetail: WxApiRoot + 'aftersale/detail',
  162. // 售后详情
  163. FeedbackAdd: WxApiRoot + 'feedback/submit',
  164. //添加反馈
  165. FootprintList: WxApiRoot + 'footprint/list',
  166. //足迹列表
  167. FootprintDelete: WxApiRoot + 'footprint/delete',
  168. //删除足迹
  169. CouponList: WxApiRoot + 'coupon/list',
  170. //优惠券列表
  171. CouponMyList: WxApiRoot + 'coupon/mylist',
  172. //我的优惠券列表
  173. CouponSelectList: WxApiRoot + 'coupon/selectlist',
  174. //当前订单可用优惠券列表
  175. CouponReceive: WxApiRoot + 'coupon/receive',
  176. //优惠券领取
  177. CouponExchange: WxApiRoot + 'coupon/exchange',
  178. //优惠券兑换
  179. CouponDouyinExchange: WxApiRoot + 'coupon/exchangeDouyin',
  180. //抖音优惠券兑换
  181. CouponPre: WxApiRoot + 'coupon/couponPre',
  182. //团购预售查询
  183. StorageUpload: WxApiRoot + 'storage/upload',
  184. //图片上传,
  185. UserIndex: WxApiRoot + 'user/index',
  186. //个人页面用户相关信息
  187. IssueList: WxApiRoot + 'issue/list',
  188. //帮助信息
  189. QrCodeCreate: WxApiRoot + 'qrcode/create',
  190. //普通二维码生成
  191. QrStarCodeCreate: WxApiRoot + 'qrcode/createstar',
  192. //专属二维码
  193. QrGoodsCodeCreate: WxApiRoot + 'qrcode/createDyQRCode',
  194. //商品分享链接 会员和普通用于一致 在分享用户注册时区分
  195. OrderBookGetShop: WxApiRoot + 'orderbook/getShop',
  196. //根据经纬度获取门店
  197. OrderCheckAddress: WxApiRoot + 'orderbook/checkAddress',
  198. //收货地址校验
  199. OrderBookDefaultAddress: WxApiRoot + 'address/default',
  200. //获取默认用户地址
  201. getDefaultCityShop: WxApiRoot + 'address/getDefaultCityShop',
  202. //小程序默认系统地址
  203. CouponRegister: WxApiRoot + 'coupon/register',
  204. //进入小程序优惠券
  205. OrderAppoint: WxApiRoot + 'orderbook/estimate',
  206. // POST 预约服务人员结果预估
  207. ServiceDetail: WxApiRoot + 'orderbook/detail',
  208. //服务详情 预约单明细
  209. ServiceOrderBook: WxApiRoot + 'orderbook/book',
  210. ServiceOrderBookV2: WxApiRoot + 'orderbook/bookV2',
  211. //工单备注
  212. ServiceOrderBookMsg: WxApiRoot + 'orderbook/bookMsg',
  213. // 未预约的权益 重新预约
  214. GetAllCity: WxApiRoot + 'address/getAllCity',
  215. //获取系统城市
  216. // ReferrerRidInfo:WxApiRoot + 'commission/referrerRidInfo', //根据分享的rid查询信息
  217. GetDenPhone: WxApiRoot + 'auth/getDenPhone',
  218. EveryDayStock: WxApiRoot + 'orderbook/everyDayStock',
  219. //单次卡库存
  220. EveryDayStockV2: WxApiRoot + 'orderbook/everyDayStockV2',
  221. //单次卡库存
  222. detailBookSuccess: WxApiRoot + 'orderbook/detailBookSuccess',
  223. checkRecommend: WxApiRoot + 'order/checkRecommend',
  224. //推荐码
  225. UserInfo: WxApiRoot + 'auth/syncUserInfo',
  226. //用户头像
  227. //退款金额
  228. AftersaleAmount: WxApiRoot + 'aftersale/preCheck',
  229. AftersaleRefundType: WxApiRoot + 'aftersale/refundType',
  230. //退款原因
  231. //根据ip获取所在城市
  232. GetCityByIp: WxApiRoot + 'order/getCityByIP',
  233. GetLoginInfo: WxApiRoot + 'auth/getLoginInfo',
  234. //支付成功 如果是静默授权 设置客户为登录状态
  235. getTradeOrderList: WxApiRoot + 'customerRerutnApi/getTradeOrderList',
  236. //工单详情,传bookDetailId
  237. getConsoultType: WxApiRoot + 'customerRerutnApi/getConsoultType',
  238. //企业回访数据
  239. saveVisit: WxApiRoot + 'customerRerutnApi/saveVisit',
  240. //提交企业回访数据
  241. getGoodsComment: WxApiRoot + 'goods/getGoodsComment',
  242. //全部评价
  243. selectMaxCoupon: WxApiRoot + 'coupon/selectMaxCoupon',
  244. //最大优惠
  245. allStore: WxApiRoot + 'home/allStore',
  246. // 取消退款
  247. AftersaleCancel: WxApiRoot + 'aftersale/cancel',
  248. // 售后投诉处理满意度
  249. TicketSatisfaction: WxApiRoot + 'ticket/satisfaction',
  250. // 小雪花页面
  251. GoodsSnow: WxApiRoot + 'snow/list',
  252. OrderBookCancel: WxApiRoot + 'orderbook/cancelBook',
  253. //预约取消
  254. gdUrl: 'https://restapi.amap.com/v3/geocode/regeo',
  255. gdCityUrl: 'https://restapi.amap.com/v3/geocode/geo',
  256. gdSearchUrl: 'https://restapi.amap.com/v3/assistant/inputtips',
  257. gdKey: 'ad9076a2b3efffaf7ff54c2ece9e92c1',
  258. everyDayTime: WxApiRoot + 'orderbook/everyDayTime' ,//预约时间
  259. appTheme:WxApiRoot + 'home/about',
  260. getPaySuccessCalender:WxApiRoot + 'orderbook/getPaySuccessCalender',
  261. addLog:WxApiRoot + 'pageLog/addlog',
  262. //zfb登陆
  263. AuthLogin: WxApiRoot + 'auth/login',
  264. // 提交订单
  265. aliPrepay: WxApiRoot + 'order/prepay',
  266. getBooked:WxApiRoot + 'orderbook/getBooked',
  267. //提交encryptedCode
  268. alipayEncryptedCode: WxApiRoot + 'order/aliPayEncryptedCode',
  269. };