C端小程序
您最多选择25个主题 主题必须以字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符

339 行
7.2 KiB

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