index.ts 4.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210
  1. import request from '@/utils/request';
  2. // 头部分类
  3. export function getProductCategoryTree(query: any) {
  4. return request({
  5. url: '/product/indexProduct/getProductCategoryTree',
  6. method: 'get',
  7. params: query
  8. });
  9. }
  10. // 头部轮播
  11. export function getHomeAdList(query: any) {
  12. return request({
  13. url: '/system/indexSystem/getHomeAdList',
  14. method: 'get',
  15. params: query
  16. });
  17. }
  18. //头部优易资讯
  19. export function getYouYiZiXunPage(query: any) {
  20. return request({
  21. url: '/system/indexSystem/getYouYiZiXunPage',
  22. method: 'get',
  23. params: query
  24. });
  25. }
  26. //头部会员权益
  27. export function getEnterpriseMemberEquityList(query: any) {
  28. return request({
  29. url: '/system/indexSystem/getEnterpriseMemberEquityList',
  30. method: 'get',
  31. params: query
  32. });
  33. }
  34. //首页三联广告(平台装修-楼层广告-首页三联广告)
  35. export function getHomeThreeAdList(query: any) {
  36. return request({
  37. url: '/system/indexSystem/getHomeThreeAdList',
  38. method: 'get',
  39. params: query
  40. });
  41. }
  42. //热门方案标题
  43. export function getHotSchemeTitle(query: any) {
  44. return request({
  45. url: '/system/indexSystem/getHotSchemeTitle',
  46. method: 'get',
  47. params: query
  48. });
  49. }
  50. //热门方案列表
  51. export function getHotSchemeList(query: any) {
  52. return request({
  53. url: '/system/indexSystem/getHotSchemeList',
  54. method: 'get',
  55. params: query
  56. });
  57. }
  58. //场景采购标题
  59. export function getScenePurchaseTitle(query: any) {
  60. return request({
  61. url: '/system/indexSystem/getScenePurchaseTitle',
  62. method: 'get',
  63. params: query
  64. });
  65. }
  66. //场景采购列表
  67. export function getScenePurchaseList(query: any) {
  68. return request({
  69. url: '/system/indexSystem/getScenePurchaseList',
  70. method: 'get',
  71. params: query
  72. });
  73. }
  74. //大牌推荐标题(平台闪购标题)
  75. export function getPlatformFlashSaleTitle(query: any) {
  76. return request({
  77. url: '/system/indexSystem/getPlatformFlashSaleTitle',
  78. method: 'get',
  79. params: query
  80. });
  81. }
  82. //大牌推荐列表(平台闪购列表)
  83. export function getPlatformFlashSaleList(query: any) {
  84. return request({
  85. url: '/system/indexSystem/getPlatformFlashSaleList',
  86. method: 'get',
  87. params: query
  88. });
  89. }
  90. //大牌推荐列表(平台闪购列表)-右
  91. export function getPlatformFlashSaleBrand(query: any) {
  92. return request({
  93. url: '/product/indexProduct/getPlatformFlashSaleBrand',
  94. method: 'get',
  95. params: query
  96. });
  97. }
  98. //行家精选标题
  99. export function getExpertSelectionTitle(query: any) {
  100. return request({
  101. url: '/system/indexSystem/getExpertSelectionTitle',
  102. method: 'get',
  103. params: query
  104. });
  105. }
  106. //行家精选列表
  107. export function getExpertSelectionList(query: any) {
  108. return request({
  109. url: '/product/indexProduct/getExpertSelectionList',
  110. method: 'get',
  111. params: query
  112. });
  113. }
  114. //采购指南标题
  115. export function getPurchaseGuideTitle(query: any) {
  116. return request({
  117. url: '/system/indexSystem/getPurchaseGuideTitle',
  118. method: 'get',
  119. params: query
  120. });
  121. }
  122. //采购指南列表
  123. export function getProcurementTopicsList(query: any) {
  124. return request({
  125. url: '/product/indexProduct/getProcurementTopicsList',
  126. method: 'get',
  127. params: query
  128. });
  129. }
  130. //外面循环
  131. export function getClassificationFloorList(query: any) {
  132. return request({
  133. url: '/system/indexSystem/getClassificationFloorList',
  134. method: 'get',
  135. params: query
  136. });
  137. }
  138. //分类楼层详情(平台装修-分类楼层-详情)
  139. export const getClassificationFloorDetail = (id: any) => {
  140. return request({
  141. url: '/system/indexSystem/getClassificationFloorDetail/' + id,
  142. method: 'get'
  143. });
  144. };
  145. //分类楼层标签(平台装修-分类楼层-标签)
  146. export const getClassificationFloorLabel = (id: any) => {
  147. return request({
  148. url: '/system/indexSystem/getClassificationFloorLabel/' + id,
  149. method: 'get'
  150. });
  151. };
  152. //分类楼层详情(平台装修-分类楼层-详情)
  153. export const getClassificationFloorDetail2 = (id: any) => {
  154. return request({
  155. url: '/product/indexProduct/getClassificationFloorDetail/' + id,
  156. method: 'get'
  157. });
  158. };
  159. //项目案例标题(平台装修-项目案例)
  160. export function getProjectCaseTitle(query: any) {
  161. return request({
  162. url: '/system/indexSystem/getProjectCaseTitle',
  163. method: 'get',
  164. params: query
  165. });
  166. }
  167. //项目案例列表(平台装修-项目案例)
  168. export function getProjectCaseList(query: any) {
  169. return request({
  170. url: '/product/indexProduct/getProjectCaseList',
  171. method: 'get',
  172. params: query
  173. });
  174. }
  175. //查看分类列表
  176. export function getProductCategoryList(query: any) {
  177. return request({
  178. url: '/product/indexProduct/getProductCategoryList',
  179. method: 'get',
  180. params: query
  181. });
  182. }