home.js 490 B

12345678910111213141516171819202122
  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. }