C端小程序
選択できるのは25トピックまでです。 トピックは、先頭が英数字で、英数字とダッシュ('-')を使用した35文字以内のものにしてください。

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