home.js 827 B

12345678910111213141516171819202122232425262728293031323334
  1. // api/home.js
  2. import http from '@/utils/http'
  3. import config from './config'
  4. export default {
  5. // 溯源报告
  6. getFarmReport(data) {
  7. return http.get('mini/z_farm_score/getByFarmId', data)
  8. },
  9. getScoreRule() {
  10. return http.get('mini/z_farm_score/scoreRule')
  11. },
  12. getAllFarm() {
  13. return http.get('mini/z_farm_buy_shop/list')
  14. },
  15. fetchFarmInfo(data) {
  16. return http.get('mini/farm/getById', data)
  17. },
  18. fetchTypeList() {
  19. return http.get('mini/bur_category/list')
  20. },
  21. fetchHotList(data) {
  22. return http.get('mini/farm_buy_goods/top', data)
  23. },
  24. fetchGoodsList(data) {
  25. return http.get('mini/farm_buy_goods/list', data)
  26. },
  27. fetchGardenInfo(data) {
  28. return http.get('mini/z_farm_buy/farmBuyInfo', data)
  29. },
  30. fetchGardenDetail(data) {
  31. return http.get('mini/z_farm_buy_shop/get', data)
  32. },
  33. }