product.js 623 B

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. const request = uni.$u.http
  2. // 获取产品列表
  3. export function getProducts(data){
  4. return request.post(
  5. `v1/product/productList`,
  6. data
  7. )
  8. }
  9. // 获取产品详情
  10. export function getProductDetail(data){
  11. return request.post(
  12. `v1/product/productDetail`,
  13. data
  14. )
  15. }
  16. //奖品订单兑换
  17. export function orderExchange(data){
  18. return request.post(
  19. `v1/order/orderExchange`,
  20. data
  21. )
  22. }
  23. //积分产品订单兑换
  24. export function integralExchange(data){
  25. return request.post(
  26. `v1/integral/integralExchange`,
  27. data
  28. )
  29. }
  30. export default {
  31. getProducts,
  32. getProductDetail,
  33. orderExchange,
  34. integralExchange
  35. }