C端小程序
No puede seleccionar más de 25 temas Los temas deben comenzar con una letra o número, pueden incluir guiones ('-') y pueden tener hasta 35 caracteres de largo.

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