pledge.js 584 B

1234567891011121314151617181920212223242526272829303132333435
  1. import Serve from '@/api/serve/index'
  2. class Pledge {
  3. static indexList(){
  4. return Serve.get('/pledge/productList');
  5. }
  6. static getDetail(param){
  7. return Serve.get('/pledge/product',param);
  8. }
  9. // 获取行情
  10. static getquotation(param){
  11. return Serve.get('/pledge/quotation',param);
  12. }
  13. /**
  14. * 购买产品
  15. * @param data {id,num}
  16. */
  17. static buygoods(data) {
  18. return Serve.post('/pledge/buyProduct', data);
  19. }
  20. /**
  21. * 购买产品
  22. * @param data {id,num}
  23. */
  24. static getOrderList() {
  25. return Serve.get('/pledge/orderList');
  26. }
  27. }
  28. export default Pledge;