appletMr.js 839 B

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  1. import request from '@/utils/request'
  2. // 分页查询
  3. export const pageList = (query) => {
  4. return request({
  5. url: '/system/advList/pageList',
  6. method: 'get',
  7. params: query
  8. })
  9. }
  10. // 新增/修改
  11. export const saveAndEdit = (data) => {
  12. return request({
  13. url: '/system/advList/insertOrUpdate',
  14. method: 'post',
  15. data: data
  16. })
  17. }
  18. // 取消认证状态
  19. export function updateAuthStatus(data) {
  20. return request({
  21. url: '/system/memberInfo/updateAuthStatus?id=' + data.id,
  22. method: 'get'
  23. })
  24. }
  25. // ID获取详情
  26. export function getSelectById(id) {
  27. return request({
  28. url: '/system/merchantTheatre/selectById?id=' + id,
  29. method: 'get'
  30. })
  31. }
  32. // 删除模板
  33. export const deleteById = (id) => {
  34. return request({
  35. url: '/system/advList/deleteById',
  36. method: 'delete',
  37. params: {id:id}
  38. })
  39. }