user.js 4.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298
  1. import request from '@/utils/request'
  2. //查看子点位
  3. export function lookSubpoints(data, id) {
  4. return request({
  5. url: '/api/tree/children/' + id,
  6. method: 'get',
  7. data
  8. })
  9. }
  10. //查看自己的点位
  11. export function lookOneself(data) {
  12. return request({
  13. url: '/api/tree/points',
  14. method: 'get',
  15. data
  16. })
  17. }
  18. //绑定上级
  19. export function spread(data) {
  20. return request({
  21. url: '/api/user/spread',
  22. method: 'post',
  23. data
  24. })
  25. }
  26. //我的推广
  27. export function myspread(data) {
  28. return request({
  29. url: '/api/spread/people',
  30. method: 'POST',
  31. data
  32. });
  33. }
  34. // 订单统计信息
  35. export function orderData(data) {
  36. return request({
  37. url: '/api/order/data',
  38. method: 'get',
  39. data
  40. });
  41. }
  42. // 获取用户信息
  43. export function getUserInfo(data) {
  44. return request({
  45. url: '/api/userinfo',
  46. method: 'get',
  47. data
  48. });
  49. }
  50. // 获取用户信息
  51. export function userinfo(data) {
  52. return request({
  53. url: '/api/userinfo',
  54. method: 'get',
  55. data
  56. });
  57. }
  58. // 用户分享图
  59. export function spreadBanner(data) {
  60. return request({
  61. url: '/api/spread/banner',
  62. method: 'get',
  63. data
  64. });
  65. }
  66. // 获取地址列表
  67. export function getAddressList(data) {
  68. return request({
  69. url: '/api/address/list',
  70. method: 'get',
  71. data
  72. });
  73. }
  74. // 修改地址
  75. export function addressEdit(data) {
  76. return request({
  77. url: '/api/address/edit',
  78. method: 'post',
  79. data
  80. });
  81. }
  82. // 删除地址
  83. export function addressDel(data) {
  84. return request({
  85. url: '/api/address/del',
  86. method: 'post',
  87. data
  88. });
  89. }
  90. // 设为默认地址
  91. export function setAddressDefault(data) {
  92. return request({
  93. url: '/api/address/default/set',
  94. method: 'post',
  95. data
  96. });
  97. }
  98. // 购物车列表
  99. export function getCartList(data) {
  100. return request({
  101. url: '/api/cart/list',
  102. method: 'get',
  103. data
  104. });
  105. }
  106. // 修改购物车数量
  107. export function getCartNum(data) {
  108. return request({
  109. url: '/api/cart/num',
  110. method: 'post',
  111. data
  112. });
  113. }
  114. //删除购物车
  115. export function cartDel(data) {
  116. return request({
  117. url: '/api/cart/del',
  118. method: 'post',
  119. data
  120. });
  121. }
  122. //获取收藏夹列表
  123. export function getcollectList(data) {
  124. return request({
  125. url: '/api/collect/user',
  126. method: 'get',
  127. data
  128. });
  129. }
  130. // 取消收藏
  131. export function delcollect(data) {
  132. return request({
  133. url: '/api/collect/del',
  134. method: 'post',
  135. data
  136. });
  137. }
  138. //积分转账
  139. export function transfer(data) {
  140. return request({
  141. url: '/api/trade',
  142. method: 'post',
  143. data
  144. })
  145. }
  146. //余额转账
  147. export function yuetransfer(data) {
  148. return request({
  149. url: '/api/yue/trade',
  150. method: 'post',
  151. data
  152. })
  153. } //喜嗨购
  154. export function yueXhg(data) {
  155. return request({
  156. url: '/api/dow_user',
  157. method: 'post',
  158. data
  159. })
  160. }
  161. //现金转账
  162. export function cashtransfer(data) {
  163. return request({
  164. url: '/api/cash/trade',
  165. method: 'post',
  166. data
  167. })
  168. }
  169. //用户修改信息
  170. export function edit(data) {
  171. return request({
  172. url: '/api/user/edit',
  173. method: 'post',
  174. data
  175. });
  176. }
  177. // 申请入驻
  178. export function ssrz(data) {
  179. return request({
  180. url: '/api/enter/apply',
  181. method: 'post',
  182. data
  183. });
  184. }
  185. //商家记录
  186. export function getShopIntegral(data) {
  187. return request({
  188. url: '/api/business_integral/list',
  189. method: 'get',
  190. data
  191. })
  192. }
  193. //文章列表
  194. export function article(data, id) {
  195. return request({
  196. url: '/api/article/list/' + id,
  197. method: 'GET',
  198. data
  199. });
  200. }
  201. //文章详情
  202. export function details(data, id) {
  203. return request({
  204. url: '/api/article/details/' + id,
  205. method: 'GET',
  206. data
  207. });
  208. }
  209. //种植详情
  210. export function getJl(data) {
  211. return request({
  212. url: '/api/many_order/list',
  213. method: 'GET',
  214. data
  215. });
  216. }
  217. // 我的nft
  218. export function getMyNft(data) {
  219. return request({
  220. url: '/api/nft/my',
  221. method: 'GET',
  222. data
  223. })
  224. }
  225. //我的卖出
  226. export function myGdList(data) {
  227. return request({
  228. url: '/api/nft/hang/my',
  229. method: 'get',
  230. data
  231. });
  232. }
  233. //获取vip列表
  234. export function vipList(data) {
  235. return request({
  236. url: '/api/vip/index',
  237. method: 'get',
  238. data
  239. });
  240. }
  241. //开通分公司
  242. export function vipCompany(data) {
  243. return request({
  244. url: '/api/vip/company',
  245. method: 'post',
  246. data
  247. });
  248. }
  249. //开通分销商
  250. export function vipPartner(data) {
  251. return request({
  252. url: '/api/vip/partner',
  253. method: 'post',
  254. data
  255. });
  256. }
  257. //提交意见
  258. export function proposal(data) {
  259. return request({
  260. url: '/api/proposal',
  261. method: 'post',
  262. data
  263. });
  264. }
  265. // nft列表 合并
  266. export function myClass(data) {
  267. return request({
  268. url: '/api/nft/my/class',
  269. method: 'get',
  270. data
  271. });
  272. }