api.js 10.0 KB

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