index.js 1.2 KB

123456789101112131415161718192021222324252627282930313233343536373839
  1. import request from '../utils/request';
  2. export function postListData(params) {
  3. console.log('params',params);
  4. return request('https://official.webapi.bicredit.xin/api/news/list', {
  5. method: 'post',
  6. data: {...params}//get请求使用params,直接拼接在请求url上
  7. })
  8. }
  9. export function postListID(params) {
  10. // console.log('params',params);
  11. return request('https://official.webapi.bicredit.xin/api/news/detail', {
  12. method: 'get',
  13. data: {...params}//get请求使用params,直接拼接在请求url上
  14. })
  15. }
  16. //
  17. // 获取验证码
  18. export function sendSms(params) {
  19. console.log('params',params);
  20. return request('http://api.crm.meloinfo.com/collect/sendSms', {
  21. method: 'post',
  22. data: {...params}//get请求使用params,直接拼接在请求url上
  23. })
  24. }
  25. // 渠道商户
  26. export function postCustomer(params) {
  27. console.log('params',params);
  28. return request('http://api.crm.meloinfo.com/collect/customer', {
  29. method: 'post',
  30. data: {...params}//get请求使用params,直接拼接在请求url上
  31. })
  32. }
  33. // export const getListT = (params) => {
  34. // return request('', {
  35. // method: 'post',
  36. // data: {...params}//post请求使用post
  37. // })
  38. // }