public.js 6.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325
  1. import request from '@/api'
  2. import qs from 'qs'
  3. export function userVipSwitchState(data) {
  4. data = qs.stringify(data)
  5. return request({
  6. url: '/publicapply/subscribe/vipSwitch',
  7. method: 'post',
  8. noToast: true,
  9. data
  10. })
  11. }
  12. // 获取免费订阅信息
  13. export function getFreeSubscribeInfo() {
  14. return request({
  15. url: '/publicapply/free/subscribe',
  16. method: 'post'
  17. })
  18. }
  19. // 获取数据导出信息
  20. export function getDataExportInfo(data) {
  21. data = qs.stringify(data)
  22. return request({
  23. url: '/publicapply/dataexport/payPageParams',
  24. method: 'post',
  25. data
  26. })
  27. }
  28. // 广告获取
  29. export function ajaxGetAD(data) {
  30. return request({
  31. url: '/publicapply/free/getJyAdList',
  32. method: 'post',
  33. data
  34. })
  35. }
  36. // 新用户广告获取
  37. export function ajaxGetNewUserAD(data) {
  38. return request({
  39. url: '/publicapply/free/newUserGroup/getDialog',
  40. method: 'get',
  41. params: data
  42. })
  43. }
  44. // 获取历史记录
  45. export function ajaxGetHistory(data) {
  46. return request({
  47. url: '/publicapply/history/get',
  48. method: 'get',
  49. params: data
  50. })
  51. }
  52. // 新用户广告已读上报接口 只显示一次
  53. export function ajaxSetNewUserADRead(data) {
  54. return request({
  55. url: '/publicapply/free/newUserGroup/readDialog',
  56. method: 'get',
  57. params: data
  58. })
  59. }
  60. /**
  61. * 获取最新标讯,用于首页展示
  62. * @param data
  63. * @returns {*}
  64. */
  65. export function ajaxGetIndexList(data) {
  66. return request({
  67. url: '/jyapi/jybx/base/newest',
  68. method: 'post',
  69. data
  70. })
  71. }
  72. /**
  73. * 获取参标状态
  74. * @param data
  75. * @returns {*}
  76. */
  77. export function ajaxCanBiaoStatus(data) {
  78. return request({
  79. url: '/jyapi/jybx/core/participate/show',
  80. method: 'post',
  81. noToast: true,
  82. data
  83. })
  84. }
  85. /**
  86. * 参标--终止参标
  87. * @param data
  88. * action:
  89. * in:参标-当前用户参标
  90. * out:终止参标-1、员工终止当前自己对此项目参标的状态;2:部门管理员终止当前部门下对此项目参标的状态;3:企业管理员终止当前企业下对此项目的参标状态
  91. * transfer:划转-1、部门管理员当前部门下参标此项目的对象;2、企业管理员企业下~~~~
  92. * 参标|终止参标:bidIds和projectIds 必传一个
  93. * @returns {*}
  94. */
  95. export function ajaxCanBiaoAction(action, data) {
  96. return request({
  97. url: `/jyapi/jybx/core/participate/${action}/info`,
  98. method: 'post',
  99. data
  100. })
  101. }
  102. // 更新投标状态
  103. export function updateBidStatus(data) {
  104. return request({
  105. url: '/jyapi/jybx/core/participate/updateBidStatus',
  106. method: 'post',
  107. data
  108. })
  109. }
  110. // 获取投标项目阶段选项
  111. export function setUpInfo(data) {
  112. return request({
  113. url: '/jyapi/jybx/core/participate/setUpInfo',
  114. method: 'post',
  115. data
  116. })
  117. }
  118. // 获取参标信息内容
  119. export function getCanBiaoContent(data) {
  120. return request({
  121. url: '/jyapi/jybx/core/participate/content',
  122. method: 'post',
  123. data
  124. })
  125. }
  126. /**
  127. * 企业搜索,用于企业搜索单元格列表
  128. */
  129. export function getEntCellList(data) {
  130. data = qs.stringify(data)
  131. return request({
  132. url: '/publicapply/enterpriseSearch/doQuery',
  133. method: 'post',
  134. data
  135. })
  136. }
  137. /**
  138. * 添加订阅关键词
  139. */
  140. export function setUserSubInfo(data) {
  141. data = qs.stringify(data)
  142. return request({
  143. url: '/publicapply/subscribe/setUserInfo',
  144. method: 'post',
  145. data
  146. })
  147. }
  148. /**
  149. * 是否留资
  150. */
  151. export function getLeaveInfoFlag(data) {
  152. data = qs.stringify(data)
  153. return request({
  154. url: '/salesLeads/retainedCapital',
  155. method: 'post',
  156. data
  157. })
  158. }
  159. /**
  160. * 是否留资
  161. */
  162. export function setLeaveInfo(data) {
  163. return request({
  164. url: '/salesLeads/collectInfo',
  165. method: 'post',
  166. data
  167. })
  168. }
  169. /**
  170. * 获取用户信息、获取用户是否是(老用户专享权限-搜索范围中的中标企业搜索权限)
  171. */
  172. export function getBidColPower() {
  173. return request({
  174. url: '/publicapply/bidcoll/power',
  175. method: 'post',
  176. noToast: true
  177. })
  178. }
  179. // 获取用户留资消息。
  180. export function ajaxGetIsNewUerSales(data) {
  181. return request({
  182. url: '/salesLeads/appIsNewUerSales',
  183. method: 'post',
  184. data
  185. })
  186. }
  187. // 跳过 提交新用户留资。
  188. export function ajaxGetappNewUerSales(data) {
  189. return request({
  190. url: '/salesLeads/appNewUerSales',
  191. method: 'post',
  192. data
  193. })
  194. }
  195. /**
  196. * 订阅页面省份订阅包提示
  197. */
  198. export function getSubscribePageAreaPackTip() {
  199. return request({
  200. url: '/publicapply/free/areapack/tip',
  201. method: 'post'
  202. })
  203. }
  204. /**
  205. * 订阅页面省份订阅包提示关闭
  206. */
  207. export function setSubscribePageAreaPackTipClose() {
  208. return request({
  209. url: '/publicapply/free/areapack/update',
  210. method: 'post'
  211. })
  212. }
  213. /**
  214. * 百度广告曝光接口
  215. */
  216. export function adLeagueExposure(data) {
  217. data = qs.stringify(data)
  218. return request({
  219. url: '/publicapply/adLeague/exposure',
  220. method: 'post',
  221. data
  222. })
  223. }
  224. /**
  225. * 百度广告点击接口
  226. */
  227. export function adLeagueClick(data) {
  228. data = qs.stringify(data)
  229. return request({
  230. url: '/publicapply/adLeague/click',
  231. method: 'post',
  232. data
  233. })
  234. }
  235. // 获取公司联想
  236. export function getCompanyAssociation(data) {
  237. data = qs.stringify(data)
  238. return request({
  239. url: '/jypay/user/company/association',
  240. method: 'post',
  241. data
  242. })
  243. }
  244. // 获取活动配置信息
  245. export function getActivityConfig(data) {
  246. data = qs.stringify(data)
  247. return request({
  248. url: '/publicapply/activity/day/info',
  249. method: 'post',
  250. data
  251. })
  252. }
  253. // 标讯收藏
  254. // data = {
  255. // bids: 'id1,id2,id3', // 标讯id, 多个需要用逗号隔开
  256. // label: 'info' // 如果收藏了, 查询并返回当前收藏的标签
  257. // }
  258. export function checkArticleIsCollect(data) {
  259. data = qs.stringify(data)
  260. return request({
  261. url: '/publicapply/bidcoll/isColl',
  262. method: 'post',
  263. data
  264. })
  265. }
  266. // nps
  267. export function getNpsData() {
  268. return request({
  269. url: '/publicapply/nps/getNpsData',
  270. method: 'get'
  271. })
  272. }
  273. export function getSeeNps(data) {
  274. data = qs.stringify(data)
  275. return request({
  276. url: '/publicapply/nps/seeNps',
  277. method: 'post',
  278. data
  279. })
  280. }
  281. export function collectionNps(data) {
  282. data = qs.stringify(data)
  283. return request({
  284. url: '/publicapply/nps/collectNps',
  285. method: 'post',
  286. data
  287. })
  288. }
  289. export function getCollectList(data) {
  290. // data = qs.stringify(data)
  291. return request({
  292. url: '/publicapply/bidcoll/list',
  293. method: 'post',
  294. data
  295. })
  296. }