抖音小程序C端
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

398 lines
9.1 KiB

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