home.js 1.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950
  1. import http from '@/http/api.js'
  2. // 商品检索
  3. export function appList(params) {
  4. return http.request({
  5. url: '/blade-sales-part/productLaunch/appList',
  6. method: 'GET',
  7. params
  8. })
  9. }
  10. // 商品明细
  11. export function appDetail(params) {
  12. return http.request({
  13. url: '/blade-sales-part/productLaunch/appDetail',
  14. method: 'GET',
  15. params
  16. })
  17. }
  18. // 商品明细加入购物车
  19. export function addToCart(data) {
  20. return http.request({
  21. url: '/blade-sales-part/productLaunch/addToCart',
  22. method: 'POST',
  23. data
  24. })
  25. }
  26. // 切换公司更换价格
  27. export function appModifyPrice(data) {
  28. return http.request({
  29. url: '/blade-sales-part/productLaunch/appModifyPrice',
  30. method: 'GET',
  31. data
  32. })
  33. }
  34. //查询公司名称
  35. export function userDept(params) {
  36. return http.request({
  37. url: '/blade-system/dept/userDept',
  38. method: 'GET',
  39. params
  40. })
  41. }
  42. //客户校验是否为空
  43. export function validationCorpEmpty(params) {
  44. return http.request({
  45. url: '/blade-sales-part/corpsDesc/validationCorpEmpty',
  46. method: 'GET',
  47. params
  48. })
  49. }