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

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