model.js 2.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109
  1. import request from '@/utils/request'
  2. //获取其他用户名片信息
  3. export function getCommonUserCardInfo(data) {
  4. return request({
  5. url: '/api/pub/getCommonUserCardInfo',
  6. method: 'post',
  7. data
  8. });
  9. }
  10. //获取模板详情
  11. export function getShowTemplateItem(data) {
  12. return request({
  13. url: '/api/pub/getShowTemplateItem',
  14. method: 'post',
  15. data
  16. });
  17. }
  18. //购买皮肤模板
  19. export function subShowTemplateOrder(data) {
  20. return request({
  21. url: '/api/user/subShowTemplateOrder',
  22. method: 'post',
  23. data
  24. });
  25. }
  26. // 获取服务时间类型
  27. export function getServiceTimeTypeList(data) {
  28. return request({
  29. url: '/api/pub/getServiceTimeTypeList',
  30. method: 'post',
  31. data
  32. });
  33. }
  34. // 获取服务内容列表
  35. export function getServiceTypeList(data) {
  36. return request({
  37. url: '/api/pub/getServiceTypeList',
  38. method: 'post',
  39. data
  40. });
  41. }
  42. // 获取服务职称
  43. export function getUserWorkTypeList(data) {
  44. return request({
  45. url: '/api/pub/getUserWorkTypeList',
  46. method: 'post',
  47. data
  48. });
  49. }
  50. // 提交资料审核
  51. export function subInfoAudit(data) {
  52. return request({
  53. url: '/api/user/subInfoAudit',
  54. method: 'post',
  55. data
  56. });
  57. }
  58. // 提交平台审核
  59. export function subTypeAudit(data) {
  60. return request({
  61. url: '/api/user/subTypeAudit',
  62. method: 'post',
  63. data
  64. });
  65. }
  66. // 首页轮播图
  67. export function getBannerList(data) {
  68. return request({
  69. url: '/api/pub/getBannerList',
  70. method: 'post',
  71. data
  72. });
  73. }
  74. // 首页模板列表
  75. export function getShowTemplateList(data) {
  76. return request({
  77. url: '/api/pub/getShowTemplateList',
  78. method: 'post',
  79. })
  80. }
  81. //我的模板
  82. export function userShowTemplateList(data) {
  83. return request({
  84. url: '/api/user/userShowTemplateList',
  85. method: 'post',
  86. data
  87. });
  88. }
  89. //默认模板
  90. export function setShowTemplate(data) {
  91. return request({
  92. url: '/api/user/setShowTemplate',
  93. method: 'post',
  94. data
  95. });
  96. }
  97. //获取本人用户名片信息
  98. export function getUserCardInfo(data, id) {
  99. return request({
  100. url: '/api/user/getUserCardInfo',
  101. method: 'post',
  102. data
  103. });
  104. }