C端小程序
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

338 lines
7.2 KiB

  1. let weappId = 'wxea71200db93d756b';
  2. let configUrls = 'http://10.11.152.73/C/api';
  3. // let sockUrls = '';
  4. var config = {
  5. url: configUrls,
  6. // wsurl: sockUrls,
  7. api: {
  8. /**
  9. * 接口用途:login
  10. */
  11. login: "/user/login",
  12. /**
  13. * 授权后获取用户的昵称,unionId等信息
  14. */
  15. getUserInfo: "/user/getUserInfo",
  16. //图片上传
  17. imgUpload: '/upload/awsFileUpload',
  18. /**
  19. * 接口用途:授权后获取用户的手机号
  20. */
  21. getUserPhone: "/user/getUserPhone",
  22. /**
  23. * 检查用户授权状态
  24. */
  25. checkUserStatus: "/user/checkUserStatus",
  26. /**
  27. * 检查用户手机授权状态
  28. */
  29. checkPhoneStatus: "/user/checkPhoneStatus",
  30. /**
  31. * 商户优惠信息
  32. */
  33. listByMerchant: "/wxCouponChannel/listByMerchant",
  34. /**
  35. * 优惠券详情
  36. */
  37. couponDetail: "/wxCoupon/detail",
  38. /**
  39. * 业态查询
  40. * filter
  41. * 2 券
  42. * 1 商户
  43. */
  44. businessList: "/wxBusiness/listAll",
  45. /**
  46. * 频道查询
  47. */
  48. couponChannelList: "/wxCouponChannel/list",
  49. /**
  50. * 换一换change
  51. */
  52. change: "/wxCouponChannel/change",
  53. /**
  54. * 下订单
  55. */
  56. orderSave: "/order/save",
  57. /**
  58. * 支付订单
  59. */
  60. payOrderCreate: "/pay/create",
  61. /**
  62. * 订单状态更新
  63. */
  64. payOrderUpdate: "/pay/updatePayOrder",
  65. /**
  66. * 订单列表
  67. */
  68. orderList: "/order/list",
  69. getWeRunData: '/user/getWeRunData',
  70. /**
  71. * 订单详情
  72. */
  73. orderDetail: "/order/detail",
  74. /**
  75. * 券包
  76. */
  77. couponOrderList: "/couponOrder/list",
  78. /**
  79. * 券包详情
  80. */
  81. couponOrderDetail: "/couponOrder/detail", /// TODO
  82. /**
  83. * 验证码发送
  84. */
  85. sendValidationCode: "/wxMsgValidationcode/sendvalidationcode",
  86. /**
  87. * 验证码确认
  88. */
  89. validationCode: "/wxMsgValidationcode/hasvalidationcode",
  90. /**
  91. * 车场信息获取
  92. */
  93. scoreLevelInfo: '/mall/scoreLevelInfo',
  94. getParkInfo: "/wxPark/info",
  95. /**
  96. * 用户所绑车牌获取
  97. */
  98. userCarCount: "/user/carCount",
  99. /**
  100. * 用户所绑车牌获取
  101. */
  102. getUserCarList: "/user/carList",
  103. /**
  104. * 联合登录
  105. */
  106. carInit: "/car/init",
  107. /**
  108. * 绑车牌
  109. */
  110. bindCar: "/car/bindCar",
  111. /**
  112. * 解绑车牌
  113. */
  114. unbindCar: "/car/unbindCar",
  115. /**
  116. * 停车费
  117. */
  118. getCarStopFee: "/car/getCarStopFee",
  119. /**
  120. * 停车费抵扣 (TJD)
  121. */
  122. deductionFee: "/car/deductionFee",
  123. /**
  124. * 优免券领取
  125. */
  126. getCarCoupon: "/car/getCoupon",
  127. /**
  128. * 停车券包
  129. */
  130. couponOrderCarList: "/car/couponOrderList",
  131. /**
  132. * banner
  133. */
  134. bannerlist: "/wxCampaign/list",
  135. /**
  136. * banner详情页面
  137. */
  138. bannerDetail: "/wxCampaign/findById",
  139. /**
  140. * 授权个人信息
  141. * 和授权手机号
  142. * 和login页面
  143. * 页面的图标
  144. */
  145. marketicon: '/mall/getAppIcon',
  146. /**
  147. * 获取停车场状态
  148. */
  149. getParkStatus: '/car/getParkStatus',
  150. /**
  151. * 检查核销的状态
  152. */
  153. getStatus: "/couponOrder/getStatus",
  154. /**
  155. * 获得成长值
  156. */
  157. getScore: '/user/userinfo',
  158. /**
  159. * 小程序分享
  160. * title
  161. * 描述
  162. */
  163. getWeapNote:'/mall/getWeapNote',
  164. /**
  165. * 商场信息(小程序分享)
  166. */
  167. getMallInfo: '/mall/mallInfo',
  168. /**
  169. * 小程序获取游戏路径
  170. */
  171. getGame:'/game/getOne',
  172. /**
  173. * 小程序获取广告路径
  174. */
  175. getGg: '/floatingLayer/getFloatingLayer',
  176. /**
  177. * 小程序某一个游戏信息
  178. */
  179. getOneGame: '/game/getOneGame',
  180. /**
  181. * 用户更新信息
  182. */
  183. updateInfo: "/user/updateUserInfo",
  184. /**
  185. * 查询问卷
  186. */
  187. getQuestion:"/wxQuestion/getQuestion",
  188. /**
  189. * 提交问卷
  190. */
  191. answerQuestion:"/wxQuestion/answerQuestion",
  192. /**
  193. *
  194. 获取打折商户列表
  195. */
  196. discountMerchantList:"/mall/discountMerchantList",
  197. /**
  198. * 卡包分页列表接口
  199. */
  200. cardorderList:"/couponOrder/cardList",
  201. /**
  202. * 卡券详情接口
  203. */
  204. cardDetail: "/couponOrder/cardDetail",
  205. /**
  206. * C端扫B端储值卡支付订单
  207. */
  208. cardPayOrder:"/cardPay/order_create",
  209. /**
  210. * 兑换历史列表
  211. */
  212. scoreHistory:"/scoreHistory/list",
  213. /**
  214. * 获取用户折扣率
  215. */
  216. getDiscountInfo:"/user/getDiscountInfo",
  217. /**
  218. * C端扫B端储值卡交易流水列表接口
  219. */
  220. cardpayList:"/cardPay/list",
  221. /**
  222. * 根据code查询接口
  223. */
  224. findByCode:"/merchant/findByCode",
  225. /**
  226. * 参与砍价
  227. */
  228. pressOrderJoin:"/press/pressOrderJoin",
  229. /**
  230. * 我的砍价列表
  231. */
  232. pressOrderList:"/order/pressOrderList",
  233. /**
  234. * 砍价订单详情
  235. */
  236. pressOrderDetail:"/order/pressOrderDetail",
  237. /**
  238. *
  239. */
  240. getPressOrderStatus:"/press/getPressOrderStatus",
  241. /**
  242. * 查询转赠卡状态
  243. */
  244. queryCardStatus:"/couponOrder/queryCardStatus",
  245. /**
  246. * 领取转赠卡
  247. */
  248. cardAccept:'/couponOrder/cardAccept',
  249. /**
  250. * 获取我的拼团列表
  251. */
  252. getMySepllList:'/orderGroup/queryOrderGroup',
  253. /**
  254. *查询差1个的团购信息
  255. */
  256. queryRemainOne:'/orderGroup/queryRemainOne',
  257. /**
  258. * *分页列表接口
  259. */
  260. merchantList:"/merchant/list",
  261. /*
  262. * 查询拼团状态
  263. */
  264. queryOrderGroupStatus:'/orderGroup/queryOrderGroupStatus',
  265. /**
  266. * 去拼团
  267. */
  268. toOrderGroup: '/orderGroup/toOrderGroup',
  269. /**
  270. * 查询是否已参团
  271. */
  272. queryAttendStatus:'/orderGroup/queryAttendStatus',
  273. /**
  274. * 专题
  275. */
  276. topicShow:"/topic/show",
  277. /**
  278. * 专题详情
  279. */
  280. topicFindById:"/topic/findById",
  281. /**
  282. * 积分券详情
  283. */
  284. integralDetail:'/wxCoupon/findById',
  285. /**
  286. * 会员积分记录
  287. */
  288. integralList:'/credit/list',
  289. /**
  290. * 用户更新位置信息
  291. */
  292. updateLBS:"/user/updateLBS",
  293. /**
  294. * 用户更新信息
  295. */
  296. updateUserInfo:"/user/updateUserInfo",
  297. /**
  298. * 用户更新scene
  299. */
  300. updateScene:"/user/updateScene",
  301. /**
  302. * 富文本详情
  303. */
  304. printHtmlById:"/wxCampaign/printHtmlById",
  305. acfindById:"/wxActivity/findById",
  306. acPrintHtmlById:"/wxActivity/printHtmlById",
  307. //参与活动
  308. activityJoin:"/wxActivityJoin/join",
  309. //签到
  310. activitySign:"/wxActivityJoin/sign",
  311. activityList: "/wxActivityJoin/list",
  312. //获取未支付的订单
  313. getUnPaidOrder: "/order/getUnPaidOrder",
  314. getCouponOrderByPassword:'/couponPassword/getCouponOrderByPassword',
  315. getbuildingfloorlist:'/wxMallBuilding/getbuildingfloorlist',
  316. //商场信息接口
  317. getMallInfo: "/mall/mallInfo",
  318. // 获取楼层楼座数据
  319. getbuildingfloorlist:"/wxMallBuilding/getbuildingfloorlist",
  320. //切换广场
  321. selectMall:"/user/selectMall"
  322. },
  323. weapp: {
  324. AppId: weappId
  325. },
  326. ErrorCode: {
  327. NICK_NOT_AUTH: 11004,
  328. PHONE_NOT_AUTH: 11005,
  329. PHONE_IS_ENCRYPTED: 11006
  330. }
  331. };
  332. /*
  333. for (var key in config.api) {
  334. config.api[key] = apiPrefix + config.api[key];
  335. }
  336. */
  337. module.exports = config;