applist.js 1.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384
  1. import request from '@/utils/request'
  2. import {
  3. baseUrl
  4. }
  5. from '@/api/baseurl'
  6. // 按品类查询商家列表
  7. export function getTypeAppList(id,params) {
  8. return request({
  9. url: baseUrl + `/student/applet/customer/getCustomerListByProductId/${id}`,
  10. method: 'get',
  11. params
  12. })
  13. }
  14. // 查询用户收藏列表
  15. export function collectionList(params) {
  16. return request({
  17. url: baseUrl + '/student/applet/collection/collectionList',
  18. method: 'get',
  19. params
  20. })
  21. }
  22. // 查询用户浏览记录
  23. export function getBrowseRecordInfoList(params) {
  24. return request({
  25. url: baseUrl + '/student/applet/record/info/getBrowseRecordInfoList',
  26. method: 'get',
  27. params
  28. })
  29. }
  30. // 查询品类列表
  31. export function typeList(params) {
  32. return request({
  33. url: baseUrl + '/student/applet/product/info/list',
  34. method: 'get',
  35. params
  36. })
  37. }
  38. // 收藏商家
  39. export function addFavorites(id) {
  40. return request({
  41. url: baseUrl + `/student/applet/collection/collectionBusiness/${id}`,
  42. method: 'put'
  43. })
  44. }
  45. // 删除收藏
  46. export function delFavorites(ids) {
  47. return request({
  48. url: baseUrl + `/student/applet/collection/cancelCollection/${ids}`,
  49. method: 'delete'
  50. })
  51. }
  52. // 新增记录
  53. export function BrowseRecordAdd(id) {
  54. return request({
  55. url: baseUrl + `/student/applet/record/info/insertBrowseRecord/${id}`,
  56. method: 'put'
  57. })
  58. }
  59. // 删除记录
  60. export function BrowseRecordDel(ids) {
  61. return request({
  62. url: baseUrl + `/student/applet/record/info/${ids}`,
  63. method: 'delete'
  64. })
  65. }
  66. // 查询轮播图列表
  67. export function getCarouselChartList() {
  68. return request({
  69. url: baseUrl + `/student/applet/carousel/getCarouselChartList`,
  70. method: 'get'
  71. })
  72. }