report.js 4.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211
  1. // 报告模块
  2. import { httpGet, httpPost } from "@/utils/request.js";
  3. /**
  4. * 研报详情
  5. * @param report_id
  6. */
  7. export const apiReportDetail=params=>{
  8. return httpGet('/report/detail',params)
  9. }
  10. /**
  11. * 章节详情
  12. * @param report_chapter_id
  13. */
  14. export const apiChapterDetail=params=>{
  15. return httpGet('/report/chapter/detail',params)
  16. }
  17. /**
  18. * 研报首页顶部权限菜单
  19. */
  20. export const apiReportIndexPageAuthList=()=>{
  21. return httpGet('/company/getPermissionList',{})
  22. }
  23. /**
  24. * 研报首页报告列表
  25. * @param chart_permission_id
  26. */
  27. export const apiReportIndexPageList=params=>{
  28. return httpGet('/report/collect',params)
  29. }
  30. /**
  31. * 研报搜索
  32. * @param key_word
  33. */
  34. export const apiReportSearch=params=>{
  35. return httpGet('/report/search',params)
  36. }
  37. /**
  38. * 分类数据
  39. */
  40. export const apiReportClassify=()=>{
  41. return httpGet('/classify/ficc',{})
  42. }
  43. /**
  44. * 研报列表
  45. * @param classify_id_first
  46. * @param key_word
  47. */
  48. export const apiReportList=params=>{
  49. return httpGet('/report/list',params)
  50. }
  51. /**
  52. * 二级分类列表
  53. * @param classify_id_first
  54. * @param classify_id_second
  55. */
  56. export const apiSubClassifyList=params=>{
  57. return httpGet('/classify/simple/list',params)
  58. }
  59. /**
  60. * 专栏列表
  61. * @param classify_id_first
  62. */
  63. export const apiSpecialColumnList=params=>{
  64. return httpGet('/classify/list',params)
  65. }
  66. /**
  67. * 专栏详情
  68. * @param classify_id_second
  69. */
  70. export const apiSpecialColumnDetail=params=>{
  71. return httpGet('/classify/detail',params)
  72. }
  73. /**
  74. * 专栏详情中目录
  75. * @param classify_id_second
  76. * @param current_index
  77. * @param page_size
  78. */
  79. export const apiSpecialColumnReportList=params=>{
  80. return httpGet('/classify/detail/reports',params)
  81. }
  82. /**
  83. * 章节详情中指标数据
  84. * @param report_chapter_id
  85. */
  86. export const apiChapterTickerValue=params=>{
  87. return httpGet('/report/chapter/ticker',params)
  88. }
  89. /**
  90. * 报告对应的ppt图片
  91. * @param report_id 报告id
  92. * @param report_chapter_id 报告章节id
  93. */
  94. export const apiReportPPtImgs=params=>{
  95. return httpGet('/report/ppt_img',params)
  96. }
  97. /**
  98. * 品种类型报告中品种筛选项
  99. * @param classify_id 分类id
  100. */
  101. export const apiGoodsPermissionList=params=>{
  102. return httpGet('/company/permission/commodities',params)
  103. }
  104. /**
  105. * 按品种查询报告列表
  106. * @param chart_permission_id 品种id
  107. * @param classify_id 分类id
  108. * @param current_index
  109. * @param page_size
  110. */
  111. export const apiReportListForVariety=params=>{
  112. return httpGet('/report/variety/list',params)
  113. }
  114. /**
  115. * 获取列表类型报告中的子目录数据
  116. * @param classify_id
  117. */
  118. export const apiReportClassifyMenuList=params=>{
  119. return httpGet('/classify/menu/list',params)
  120. }
  121. /**
  122. * 设置周报音频播放的播放清单
  123. * @param type_id 章节id
  124. * @param is_close 是否关闭:1,关闭,0:不关闭
  125. */
  126. export const apiReportChapterAudioSet=params=>{
  127. return httpPost('/report/report_chapter/set',params)
  128. }
  129. /**
  130. * 报告详情分享图片
  131. * @param source (目前写死的)rddp_share_img
  132. * @param pars json字符串类型参数{title:图片上的富文本,time_format:时间(没啥用),background_img:背景图}
  133. */
  134. export const apiRddpShareImg=params=>{
  135. return httpPost('/report/detail/rddp_share_img',{source:'rddp_share_img',...params})
  136. }
  137. /**
  138. * 获取PDF详情
  139. * @param pdf_id
  140. * @returns
  141. */
  142. export const apiGetPDFDetail = params=>{
  143. return httpGet('/report/pdf/detail',params)
  144. }
  145. /**
  146. * banner埋点
  147. * @param "banner_url": "wwwwwwww",
  148. * @param "first_source": 1, //一级来源 1小程序移动 2小程序pc 3研报官网
  149. * @param "second_source": 1 //二级来源 1首页 2研报详情页
  150. * @returns
  151. */
  152. export const apiPublicBannerMark = params=>{
  153. return httpPost('/public/banner/mark',params)
  154. }
  155. /**
  156. * banner图列表
  157. * @param "banner_url": "wwwwwwww",
  158. * @param "first_source": 1, //一级来源 1小程序移动 2小程序pc 3研报官网
  159. * @param "second_source": 1 //二级来源 1首页 2研报详情页
  160. * @returns
  161. */
  162. export const apiPublicBannerList = params=>{
  163. return httpGet('/public/banner/list',params)
  164. }
  165. /**
  166. * banner图获取报名二维码
  167. * @returns
  168. */
  169. export const bannerGetQrcode = params=>{
  170. return httpGet('/public/banner/get_qrcode',params)
  171. }
  172. /**
  173. * 报名调研活动
  174. * @returns
  175. */
  176. export const bannerSignup = params=>{
  177. return httpGet('/public/banner/signup',params)
  178. }
  179. /**
  180. * banner调研长图保存
  181. * @returns
  182. */
  183. export const bannerDownload = params=>{
  184. return httpPost('/public/banner/download',params)
  185. }