api.ts 6.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177
  1. import httpRequest from '@/composables/useHttp'
  2. // 分类详情
  3. export function articleCategoryDetails (markCode: string) {
  4. return httpRequest.get(`/api/cms/articleCategory/markCode/${markCode}`)
  5. }
  6. // 研究简报
  7. // 研究报告字典
  8. export function dictListData (data: any) {
  9. return httpRequest.post(`/basedata/dict/listData`, data)
  10. }
  11. export const researchReportListData = (data: any) => {
  12. return httpRequest.post('/report/researchReport/pageList', data);
  13. }
  14. // 研究报告列表
  15. export function researchReportPageList (data: any) {
  16. return httpRequest.post(`/report/researchReport/pageList`, data)
  17. }
  18. // 研究报告详情
  19. export function researchReportForm (param: any) {
  20. return httpRequest.get(`/report/researchReport/form`, { params: param })
  21. }
  22. export function configList (param: any) {
  23. return httpRequest.get(`/basedata/config/findListByKeys`, { params: param })
  24. }
  25. export function customerInfoSave (data: any) {
  26. return httpRequest.post(`/basedata/customerInfo/save`, data)
  27. }
  28. //行研简报
  29. // 行研简报类别
  30. export function bulletinCategory_Api (data: any) {
  31. return httpRequest.post(`/report/researchBriefReport/categoryList`, data)
  32. }
  33. // 查询全部分类
  34. export function allClassfiy_Api (data: any) {
  35. return httpRequest.post(`/report/researchBriefReport/categoryPage`, data)
  36. }
  37. export function bulletinPage_Api (data: any) {
  38. return httpRequest.post(`/report/researchBriefReport/pageList`, data)
  39. }
  40. // 简报精选简报
  41. export function bulletinWinnow_Api (param: any) {
  42. return httpRequest.get(`/report/researchBriefReport/choicenessReports`, { params: param })
  43. }
  44. // 简报热门报告
  45. export function bulletinHots_Api (param: any) {
  46. return httpRequest.get(`/report/researchBriefReport/hotReports`, { params: param })
  47. }
  48. // 简报详情
  49. export const bulletinDetail_Api = (param: any) => {
  50. return httpRequest.get(`/report/researchBriefReport/form`, { params: param })
  51. };
  52. // 登录
  53. export const login_Api = (data: any) => {
  54. return httpRequest.post(`/report/websiteUser/login`, data)
  55. };
  56. // 注册
  57. export const register_Api = (data: any) => {
  58. return httpRequest.post(`/report/websiteUser/register`, data)
  59. };
  60. // 下载文件
  61. export const getDownUrl_Api = (data: any) => {
  62. return httpRequest.post(`/report/websiteUserOrder/downFile`, data)
  63. };
  64. // 支付宝pc端预支付 响应地址
  65. export const getPayOrder_Api = (data: any) => {
  66. return httpRequest.post(`/report/websiteUserOrder/payOrder`, data)
  67. };
  68. // // 简报支付详情
  69. export const bulletinDetailPay_Api = (data: any) => {
  70. return httpRequest.post(`/report/websiteUserOrder/orderDetail`, data)
  71. };
  72. // 列表
  73. export const carouselListData = (param: any) => {
  74. return httpRequest.get(`/basedata/carousel/listData`, { params: param || {} })
  75. };
  76. // export const carouselListData = async (param: any): Promise<string> => {
  77. // return await httpRequest.get('/basedata/carousel/listData', { params: param })
  78. // }
  79. // 登出
  80. export const logOut_Api = (param: any) => {
  81. return httpRequest.get(`/report/websiteUser/logout`, { params: param || {} })
  82. };
  83. // 用户-找回密码的邮件
  84. export const email_Api = (data: any) => {
  85. return httpRequest.post(`/report/websiteUser/getWuValidCode`, data)
  86. };
  87. // 研究报告和咨询
  88. export const reportAndMarketListData = (param: any) => {
  89. return httpRequest.get(`/basedata/home/mapData`, { params: param || {} })
  90. };
  91. // 热门报告
  92. export const hotResearchList = (param: any) => {
  93. return httpRequest.get(`/report/researchReport/hotReports`, { params: param || {} })
  94. };
  95. export const marketInfoPageList = (data: any) => {
  96. return httpRequest.post(`/report/marketInfo/pageList`, data)
  97. };
  98. export const marketInfoDetailList = (param: any) => {
  99. return httpRequest.get(`/report/marketInfo/detailList`, { params: param || {} })
  100. };
  101. // 修改信息
  102. export const updateInfo_Api = (data: any) => {
  103. return httpRequest.post(`/report/websiteUser/updateUser`, data)
  104. };
  105. // 个人中心-我的信息
  106. export const getUser_Api = (param: any) => {
  107. return httpRequest.get(`/report/websiteUser/getUserInfo`, { params: param || {} })
  108. };
  109. // 个人中心-我的订单
  110. export const getMyOrder_Api = (data: any) => {
  111. return httpRequest.post(`/report/websiteUserOrder/orderList`, data)
  112. };
  113. // 个人中心 - 我的下载;
  114. export const getMyDoen_Api = (data: any) => {
  115. return httpRequest.post(`/report/websiteUserOrder/downList`, data)
  116. };
  117. // 支付取消
  118. export const closePay_Api = (data: any) => {
  119. return httpRequest.post("report/websiteUserOrder/cancelOrder", data);
  120. };
  121. // 修改密码
  122. export const updatePwd_Api = (data: any) => {
  123. return httpRequest.post("/report/websiteUser/updatePwd", data);
  124. };
  125. // 发布日期
  126. export const researchReportPublishDateList = (param: any) => {
  127. return httpRequest.post("/report/researchReport/publishDateList", { params: param || {} });
  128. };
  129. // 类别
  130. export const researchReportCategoryList = (data: any) => {
  131. return httpRequest.post('/report/researchReport/categoryList', data);
  132. }
  133. // 分类详情
  134. export const articleCategoryDetails1 = (markCode: string) => {
  135. return httpRequest.get(`/api/cms/articleCategory/markCode/${markCode}`, { params: {} })
  136. }
  137. // 用户-找回密码
  138. export const forget_Api = (data: string) => {
  139. return httpRequest.post("/report/websiteUser/forgetPwd", data);
  140. }
  141. // 创建支付订单 英文支付
  142. export const createOrder_Api = (data: any) => {
  143. return httpRequest.post("/api/report/websiteUserResearchOrder/payOrder", data);
  144. };
  145. // 执行扣款
  146. export const payOrder_Api = (data: any) => {
  147. return httpRequest.post("/api/report/websiteUserResearchOrder/pay/asyncNotify", data);
  148. };
  149. // 个人中心-我的订单 英文
  150. export const websiteUserResearchOrderList = (data: any) => {
  151. return httpRequest.post("/api/report/websiteUserResearchOrder/orderList", data);
  152. };
  153. // 取消订单
  154. export const websiteUserResearchCancelOrder = (data: any) => {
  155. return httpRequest.post("/api/report/websiteUserResearchOrder/cancelOrder", data);
  156. };
  157. // 更换邮箱 英文支付
  158. export const websiteUserResearchOrderUpdateEmail = (data: any) => {
  159. return httpRequest.post("/api/report/websiteUserResearchOrder/updateEmail", data);
  160. };