国内市场双十一活动仓库
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

40 lines
951 B

3 months ago
3 months ago
3 months ago
  1. // 用户内容相关接口配置文件
  2. import { request } from "/src/utils/request.js";
  3. // 正确的 Vite 环境变量用法
  4. const API_BASE_URL = import.meta.env.VITE_API_BASE_URL;
  5. // 获取图片
  6. export function getImageApi(data) {
  7. return request({
  8. url: `${API_BASE_URL}/api/activity/get`,
  9. method: "post",
  10. data: data,
  11. });
  12. }
  13. // 用户点击收下
  14. export function acceptCardApi(data) {
  15. return request({
  16. url: `${API_BASE_URL}/api/activity/detail/add`,
  17. method: "post",
  18. data: data,
  19. });
  20. }
  21. // 获取落地页活动列表
  22. export function getLandingListApi(data) {
  23. return request({
  24. url: `${API_BASE_URL}/api/getLanding`,
  25. method: "post",
  26. data: data,
  27. });
  28. }
  29. // 获取落地页活动列表
  30. export function getLandingDetailApi(data) {
  31. return request({
  32. url: `${API_BASE_URL}/api/getLandingDetail`,
  33. method: "post",
  34. data: data,
  35. });
  36. }