C端小程序
25개 이상의 토픽을 선택하실 수 없습니다. Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

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