index.js 1.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687
  1. import request from '@/utils/request'
  2. // 促销商品
  3. export function groom4(data) {
  4. return request({
  5. url: '/api/groom/list/4',
  6. method: 'get',
  7. data
  8. });
  9. }
  10. // 精品推荐
  11. export function groom1(data) {
  12. return request({
  13. url: '/api/groom/list/1',
  14. method: 'get',
  15. data
  16. });
  17. }
  18. // 新品首发
  19. export function groom3(data) {
  20. return request({
  21. url: '/api/groom/list/3',
  22. method: 'get',
  23. data
  24. });
  25. }
  26. // 获取首页信息
  27. export function loadIndexs(data) {
  28. return request({
  29. url: '/api/index',
  30. method: 'get',
  31. data
  32. });
  33. }
  34. // 会员卡列表
  35. export function getMenberCard(data) {
  36. return request({
  37. url: '/api/card/list',
  38. method: 'get',
  39. data
  40. });
  41. }
  42. //购买会员卡
  43. export function buyMenber(data) {
  44. return request({
  45. url: '/api/card/routine',
  46. method: 'post',
  47. data
  48. });
  49. }
  50. //获取材料
  51. export function getZyList(data) {
  52. return request({
  53. url: '/api/water/list',
  54. method: 'get',
  55. data
  56. });
  57. }
  58. //api/water/calculation
  59. export function calculation(data) {
  60. return request({
  61. url: '/api/water/calculation',
  62. method: 'post',
  63. data
  64. });
  65. }
  66. //根据高度获取默认方案
  67. export function getDefault(data) {
  68. return request({
  69. url: '/api/water/default',
  70. method: 'get',
  71. data
  72. });
  73. }
  74. //
  75. export function getGcb(data) {
  76. return request({
  77. url: '/api/gc',
  78. method:'get',
  79. data
  80. })
  81. }