C端小程序
Du kannst nicht mehr als 25 Themen auswählen Themen müssen entweder mit einem Buchstaben oder einer Ziffer beginnen. Sie können Bindestriche („-“) enthalten und bis zu 35 Zeichen lang sein.

118 Zeilen
2.3 KiB

  1. var config = {
  2. name: "富茂",
  3. url: "https://ciformall.youlane.cn/C/api",
  4. //url: "http://d6a6e7e6.ngrok.io/C/api",
  5. api: {
  6. /**
  7. * 接口用途:login
  8. */
  9. login: '/user/login',
  10. /**
  11. * 授权后获取用户的昵称,unionId等信息
  12. */
  13. getUserInfo: '/user/getUserInfo',
  14. /**
  15. * 接口用途:授权后获取用户的手机号
  16. */
  17. getUserPhone: '/user/getUserPhone',
  18. /**
  19. * 检查用户授权状态
  20. */
  21. checkUserStatus: '/user/checkUserStatus',
  22. /**
  23. * 检查用户手机授权状态
  24. */
  25. checkPhoneStatus: '/user/checkPhoneStatus',
  26. /**
  27. * 优惠券查询
  28. */
  29. couponList: '/wxCoupon/list',
  30. /**
  31. * 优惠券详情
  32. */
  33. couponDetail: '/wxCoupon/findById',
  34. /**
  35. * 业态查询
  36. */
  37. businessList: '/wxBusiness/list', // TODO
  38. /**
  39. * 频道查询
  40. */
  41. couponChannelList: '/wxCouponChannel/list',
  42. /**
  43. * 下订单
  44. */
  45. orderSave: '/order/save',
  46. /**
  47. * 支付订单
  48. */
  49. payOrderCreate: '/pay/create',
  50. /**
  51. * 订单状态更新
  52. */
  53. payOrderUpdate: '/pay/updatePayOrder',
  54. /**
  55. * 订单列表
  56. */
  57. orderList: '/order/list',
  58. /**
  59. * 券包
  60. */
  61. couponOrderList: '/couponOrder/list',
  62. /**
  63. * 券包详情
  64. */
  65. couponOrderDetail: '/couponOrder/detail', /// TODO
  66. /**
  67. * 验证码发送
  68. */
  69. sendValidationCode: '/wxMsgValidationcode/sendvalidationcode',
  70. /**
  71. * 验证码确认
  72. */
  73. validationCode: '/wxMsgValidationcode/hasvalidationcode',
  74. /**
  75. * 车场信息获取
  76. */
  77. getParkInfo: '/wxPark/info',
  78. /**
  79. * 联合登录
  80. */
  81. carInit: '/car/init',
  82. /**
  83. * 绑车牌
  84. */
  85. bindCarNum: '/car/bindCar',
  86. /**
  87. * 解绑车牌
  88. */
  89. unbindCar: '/car/unbindCar',
  90. /**
  91. * 停车费
  92. */
  93. getCarStopFee: '/car/getCarStopFee',
  94. /**
  95. * 停车费抵扣 (TJD)
  96. */
  97. deductionFee: '/car/deductionFee',
  98. /**
  99. * 优免券领取
  100. */
  101. getCoupon: '/car/getCoupon',
  102. },
  103. weapp: {
  104. AppId: 'wx8eb8275b78db4ede',
  105. },
  106. ErrorCode: {
  107. NICK_NOT_AUTH: 11004,
  108. PHONE_NOT_AUTH: 11005,
  109. PHONE_IS_ENCRYPTED: 11006,
  110. },
  111. };
  112. /*
  113. for (var key in config.api) {
  114. config.api[key] = apiPrefix + config.api[key];
  115. }
  116. */
  117. module.exports = config;