home.js 5.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217
  1. //import { fetchPost, fetchGet, } from '../common/request.js'
  2. import request from '../common/request.js'
  3. var fetchGet=request.fetchGet
  4. var fetchPost=request.fetchPost
  5. export const getFeatureItemList = (params) => {
  6. console.log("getFeatureItemList")
  7. //console.log(request.fetchGet)
  8. return fetchGet('/home/getFeatureItemList', params)
  9. }
  10. export const bindShopId = (params) => {
  11. return fetchPost('/bind/bindShopId', params)
  12. }
  13. export const phoneLogin = (params) => {
  14. return fetchPost('/bind/phoneLogin', params)
  15. }
  16. export const initGet = (params) => {
  17. return fetchGet('/home/getHomeData', params)
  18. }
  19. export const initgetGroupItemList = (params) => {
  20. return fetchGet('/home/getGroupItemList', params)
  21. }
  22. export const searchList = (params) => {
  23. return fetchGet('/home/getShops', params)
  24. }
  25. export const choiceShop = (params) => {
  26. return fetchPost('/home/choiceShop', params)
  27. }
  28. export const receiveVoucher = (params) => {
  29. return fetchPost('/home/receiveVoucher', params)
  30. }
  31. export const getSnapUpItemList = (params) => {
  32. return fetchGet('/home/getSnapUpItemList', params)
  33. }
  34. export const getExperienceCardInformation = (params) => {
  35. return fetchGet('/home/getExperienceCardInformation', params)
  36. }
  37. export const getScoreListForPage = (params) => {
  38. return fetchGet('/home/getScoreListForPage', params)
  39. }
  40. export const isHaveExperienceCard = (params) => {
  41. return fetchGet('/home/isHaveExperienceCard', params)
  42. }
  43. export const followOrderManager = (params) => {
  44. return fetchPost('/home/followOrderManager', params)
  45. }
  46. export const getBeauticianData = (params) => {
  47. return fetchGet('/detail/getBeauticianData', params)
  48. }
  49. export const getVipCardById = (params) => {
  50. return fetchGet('/detail/getVipCardById', params)
  51. }
  52. export const getVipCardList = (params) => {
  53. return fetchGet('/home/getVipCardList', params)
  54. }
  55. export const getGroupItemSheetDetail = (params) => {
  56. return fetchGet('/detail/getGroupItemSheetDetail', params)
  57. }
  58. export const getSnapUpItemDetail = (params) => {
  59. return fetchGet('/detail/getSnapUpItemDetail', params)
  60. }
  61. export const getItemDetail = (params) => {
  62. return fetchGet('/detail/getItemDetail', params)
  63. }
  64. export const getBeauticianDetail = (params) => {
  65. return fetchGet('/detail/getBeauticianDetail', params)
  66. }
  67. export const pay = (params) => {
  68. return fetchPost('/pay/pay', params)
  69. }
  70. export const getMyVoucherList = (params) => {
  71. return fetchGet('/detail/getMyVoucherList', params)
  72. }
  73. export const getCustomerRedMoneyList = (params) => {
  74. return fetchGet('/detail/getCustomerRedMoneyList', params)
  75. }
  76. export const getOrderCarList = (params) => {
  77. return fetchGet('/detail/getOrderCarList', params)
  78. }
  79. // 新增车辆-石延杰
  80. export const addCar = (params) => {
  81. return fetchPost('/detail/addCar', params)
  82. }
  83. export const getCheckOutForItem = (params) => {
  84. return fetchGet('/detail/getCheckOutForItem', params)
  85. }
  86. export const getOrderManagerList = (params) => {
  87. return fetchGet('/detail/getOrderManagerList', params)
  88. }
  89. export const getCheckOutForGroupItem = (params) => {
  90. return fetchGet('/detail/getCheckOutForGroupItem', params)
  91. }
  92. export const getCheckOutItemForExperienceCard = (params) => {
  93. return fetchGet('/detail/getCheckOutItemForExperienceCard', params)
  94. }
  95. export const getExperienceCardDetail = (params) => {
  96. return fetchGet('/detail/getExperienceCardDetail', params)
  97. }
  98. export const queryExperienceCardDetail = (params) => {
  99. return fetchGet('/detail/queryExperienceCardDetail', params)
  100. }
  101. export const getCustomerVipCardList = (params) => {
  102. return fetchGet('/detail/getCustomerVipCardList', params)
  103. }
  104. export const getCheckOutItemForSnapUpItem = (params) => {
  105. return fetchGet('/detail/getCheckOutItemForSnapUpItem', params)
  106. }
  107. export const sendSms = (params) => {
  108. return fetchGet('/bind/sendSms', params)
  109. }
  110. export const ownerSendSms = (params) => {
  111. return fetchGet('/bindOwner/sendSms', params)
  112. }
  113. // 查询已购项目列表-石延杰
  114. export const getHavePurchaseItemList = (params) => {
  115. return fetchGet('/detail/getHavePurchaseItemList', params)
  116. }
  117. // 查询已店铺信息-石延杰
  118. export const getMarketingShopInfo = (params) => {
  119. return fetchGet('/my/marketingShopInfo', params)
  120. }
  121. // 退出登录-石延杰
  122. export const returnLogin = (params) => {
  123. return fetchGet('/carOwnerHome/returnLogin', params)
  124. }
  125. // 预约
  126. export const addOrder = (params) => {
  127. return fetchPost('/detail/addOrder', params)
  128. }
  129. // 评价
  130. export const addScore = (params) => {
  131. return fetchPost('/detail/addScore', params)
  132. }
  133. // 评价详情
  134. export const getScore = (params) => {
  135. return fetchGet('/detail/getScore', params)
  136. }
  137. // 查询预约时间列表-石延杰
  138. export const getOrderTimes = (params) => {
  139. return fetchGet('/detail/getOrderTimes', params)
  140. }
  141. // 图片上传-石延杰
  142. /* export const upload = (params) => {
  143. return upLoadPost('/upload', params)
  144. } */
  145. //
  146. // 领取红包-石延杰
  147. export const receiveRedEnvelopes = (params) => {
  148. return fetchPost('/home/receiveRedEnvelopes', params)
  149. }
  150. //
  151. export const getVoucherDetail = (params) => {
  152. return fetchGet('/detail/getVoucherDetail', params)
  153. }
  154. //
  155. export const setRedPageNum = (params) => {
  156. return fetchPost('/detail/setRedPageNum', params)
  157. }
  158. //
  159. export const redEnvelopesDetails = (params) => {
  160. return fetchGet('/home/redEnvelopesDetails', params)
  161. }
  162. export const getGroupItemSheetInfo = (params) => {
  163. return fetchGet('/detail/getGroupItemSheetInfo', params)
  164. }
  165. // 管
  166. export const getGroupItemSheet = (params) => {
  167. return fetchGet('/pay/getGroupItemSheet', params)
  168. }
  169. export const getMessageTypeList = (params) => {
  170. return fetchGet('/my/getMessageTypeList', params)
  171. }
  172. export const getMessageDetailList = (params) => {
  173. return fetchGet('/my/getMessageDetailList', params)
  174. }