api.js 9.3 KB

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