api.js 9.8 KB

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