index.js 1.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111
  1. import request from '@/utils/request'
  2. // 获取版本号信息
  3. // #ifdef APP || H5
  4. export function getAppBBH(data) {
  5. return request({
  6. url: '/api/version',
  7. method: 'get',
  8. data
  9. });
  10. }
  11. // #endif
  12. // 消息通知
  13. export function articleList(data, id) {
  14. return request({
  15. url: '/api/article/list/' + id,
  16. method: 'get',
  17. data
  18. });
  19. }
  20. // 文章详细
  21. export function details(data, id) {
  22. return request({
  23. url: '/api/article/details/' + id,
  24. method: 'get',
  25. data
  26. });
  27. }
  28. // 是否已读
  29. export function notify_read(data) {
  30. return request({
  31. url: '/api/car/notify_read',
  32. method: 'post',
  33. data
  34. });
  35. }
  36. // 获取首页引导图
  37. export function guide_map(data) {
  38. return request({
  39. url: '/api/guide_map',
  40. method: 'get',
  41. data
  42. });
  43. }
  44. //获取从业人员列表
  45. export function getWorkerList(data) {
  46. return request({
  47. url: '/api/pub/getWorkerList',
  48. method: 'post',
  49. data
  50. });
  51. }
  52. //获取精选名片
  53. export function getGoodWorkerList(data) {
  54. return request({
  55. url: '/api/pub/getGoodWorkerList',
  56. method: 'get',
  57. data
  58. });
  59. }
  60. //获取最新名片
  61. export function getNewWorkerList(data) {
  62. return request({
  63. url: '/api/pub/getNewWorkerList',
  64. method: 'get',
  65. data
  66. });
  67. }
  68. //https://api.myjie.cn/api/pub/
  69. export function getCardLookCountRank(data) {
  70. return request({
  71. url: '/api/pub/getCardLookCountRank',
  72. method: 'post',
  73. data
  74. });
  75. }
  76. export function getArtDetail(data) {
  77. return request({
  78. url: '/api/pub/getArtDetail',
  79. method: 'post',
  80. data
  81. });
  82. }
  83. export function getKcList(data) {
  84. return request({
  85. url: '/api/education/index',
  86. method: 'post',
  87. data
  88. });
  89. }
  90. export function recommend(data) {
  91. return request({
  92. url: '/api/education/recommend',
  93. method: 'post',
  94. data
  95. });
  96. }
  97. export function getCourseList(data) {
  98. return request({
  99. url: '/api/education/getCourseList',
  100. method: 'post',
  101. data
  102. })
  103. }