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

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