public.js 6.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344
  1. import qs from 'qs'
  2. import request from '@/api'
  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 ajaxCollectionExport(data) {
  46. return request({
  47. url: '/publicapply/dataexpoet/bycollection',
  48. method: 'post',
  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. */
  63. export function ajaxGetIndexList(data) {
  64. return request({
  65. url: '/jyapi/jybx/base/newest',
  66. method: 'post',
  67. data
  68. })
  69. }
  70. /**
  71. * 获取参标状态
  72. */
  73. export function ajaxCanBiaoStatus(data) {
  74. return request({
  75. url: '/jyapi/jybx/core/participate/show',
  76. method: 'post',
  77. noToast: true,
  78. data
  79. })
  80. }
  81. /**
  82. * 参标--终止参标
  83. * action:
  84. * in:参标-当前用户参标
  85. * out:终止参标-1、员工终止当前自己对此项目参标的状态;2:部门管理员终止当前部门下对此项目参标的状态;3:企业管理员终止当前企业下对此项目的参标状态
  86. * transfer:划转-1、部门管理员当前部门下参标此项目的对象;2、企业管理员企业下~~~~
  87. * 参标|终止参标:bidIds和projectIds 必传一个
  88. */
  89. export function ajaxCanBiaoAction(action, data) {
  90. return request({
  91. url: `/jyapi/jybx/core/participate/${action}/info`,
  92. method: 'post',
  93. data
  94. })
  95. }
  96. // 更新投标状态
  97. export function updateBidStatus(data) {
  98. return request({
  99. url: '/jyapi/jybx/core/participate/updateBidStatus',
  100. method: 'post',
  101. data
  102. })
  103. }
  104. // 获取投标项目阶段选项
  105. export function setUpInfo(data) {
  106. return request({
  107. url: '/jyapi/jybx/core/participate/setUpInfo',
  108. method: 'post',
  109. data
  110. })
  111. }
  112. // 获取参标信息内容
  113. export function getCanBiaoContent(data) {
  114. return request({
  115. url: '/jyapi/jybx/core/participate/content',
  116. method: 'post',
  117. data
  118. })
  119. }
  120. /**
  121. * 企业搜索,用于企业搜索单元格列表
  122. */
  123. export function getEntCellList(data) {
  124. data = qs.stringify(data)
  125. return request({
  126. url: '/publicapply/enterpriseSearch/doQuery',
  127. method: 'post',
  128. data
  129. })
  130. }
  131. /**
  132. * 添加订阅关键词
  133. */
  134. export function setUserSubInfo(data) {
  135. data = qs.stringify(data)
  136. return request({
  137. url: '/publicapply/subscribe/setUserInfo',
  138. method: 'post',
  139. data
  140. })
  141. }
  142. /**
  143. * 是否留资
  144. */
  145. export function getLeaveInfoFlag(data) {
  146. data = qs.stringify(data)
  147. return request({
  148. url: '/salesLeads/retainedCapital',
  149. method: 'post',
  150. data
  151. })
  152. }
  153. /**
  154. * 是否留资
  155. */
  156. export function setLeaveInfo(data) {
  157. return request({
  158. url: '/salesLeads/collectInfo',
  159. method: 'post',
  160. data
  161. })
  162. }
  163. /**
  164. * 获取用户信息、获取用户是否是(老用户专享权限-搜索范围中的中标企业搜索权限)
  165. */
  166. export function getBidColPower() {
  167. return request({
  168. url: '/publicapply/bidcoll/power',
  169. method: 'post',
  170. noToast: true
  171. })
  172. }
  173. // 获取用户留资消息。
  174. export function ajaxGetIsNewUerSales(data) {
  175. return request({
  176. url: '/salesLeads/appIsNewUerSales',
  177. method: 'post',
  178. data
  179. })
  180. }
  181. // 跳过 提交新用户留资。
  182. export function ajaxGetappNewUerSales(data) {
  183. return request({
  184. url: '/salesLeads/appNewUerSales',
  185. method: 'post',
  186. data
  187. })
  188. }
  189. /**
  190. * 订阅页面省份订阅包提示
  191. */
  192. export function getSubscribePageAreaPackTip() {
  193. return request({
  194. url: '/publicapply/free/areapack/tip',
  195. method: 'post'
  196. })
  197. }
  198. /**
  199. * 订阅页面省份订阅包提示关闭
  200. */
  201. export function setSubscribePageAreaPackTipClose() {
  202. return request({
  203. url: '/publicapply/free/areapack/update',
  204. method: 'post'
  205. })
  206. }
  207. /**
  208. * 百度广告曝光接口
  209. */
  210. export function adLeagueExposure(data) {
  211. data = qs.stringify(data)
  212. return request({
  213. url: '/publicapply/adLeague/exposure',
  214. method: 'post',
  215. data
  216. })
  217. }
  218. /**
  219. * 百度广告点击接口
  220. */
  221. export function adLeagueClick(data) {
  222. data = qs.stringify(data)
  223. return request({
  224. url: '/publicapply/adLeague/click',
  225. method: 'post',
  226. data
  227. })
  228. }
  229. // 获取公司联想
  230. export function getCompanyAssociation(data) {
  231. data = qs.stringify(data)
  232. return request({
  233. url: '/jypay/user/company/association',
  234. method: 'post',
  235. data
  236. })
  237. }
  238. // 获取活动配置信息
  239. export function getActivityConfig(data) {
  240. data = qs.stringify(data)
  241. return request({
  242. url: '/publicapply/activity/day/info',
  243. method: 'post',
  244. data
  245. })
  246. }
  247. // 标讯收藏
  248. // data = {
  249. // bids: 'id1,id2,id3', // 标讯id, 多个需要用逗号隔开
  250. // label: 'info' // 如果收藏了, 查询并返回当前收藏的标签
  251. // }
  252. export function checkArticleIsCollect(data) {
  253. data = qs.stringify(data)
  254. return request({
  255. url: '/publicapply/bidcoll/isColl',
  256. method: 'post',
  257. data
  258. })
  259. }
  260. // nps
  261. export function getNpsData() {
  262. return request({
  263. url: '/publicapply/nps/getNpsData',
  264. method: 'get'
  265. })
  266. }
  267. export function getSeeNps(data) {
  268. data = qs.stringify(data)
  269. return request({
  270. url: '/publicapply/nps/seeNps',
  271. method: 'post',
  272. data
  273. })
  274. }
  275. export function collectionNps(data) {
  276. data = qs.stringify(data)
  277. return request({
  278. url: '/publicapply/nps/collectNps',
  279. method: 'post',
  280. data
  281. })
  282. }
  283. export function getCollectList(data) {
  284. // data = qs.stringify(data)
  285. return request({
  286. url: '/publicapply/bidcoll/list',
  287. method: 'post',
  288. data
  289. })
  290. }
  291. export function getZhiMaFilterData() {
  292. return request({
  293. url: '/publicapply/enterpriseSearch/zhiMaFilter',
  294. noToast: true,
  295. method: 'get'
  296. })
  297. }
  298. // 是否是白名单用户
  299. export function getIsWhiteList() {
  300. return request({
  301. url: '/publicapply/userbase/whitelist',
  302. method: 'get'
  303. })
  304. }
  305. // 获取公众号置顶教程入口显示时间
  306. export function getConfiguration(data) {
  307. return request({
  308. url: '/publicapply/configuration/get',
  309. method: 'post',
  310. data
  311. })
  312. }