index.js 1.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041
  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. export function downInfo() {
  17. // console.log('params',params);
  18. return request('https://official.webapi.bicredit.xin/api/app/down/info', {
  19. method: 'get',
  20. // data: {...params}//get请求使用params,直接拼接在请求url上
  21. })
  22. }
  23. //
  24. // 获取验证码
  25. export function sendSms(params) {
  26. console.log('params',params);
  27. return request('http://api.crm.meloinfo.com/collect/sendSms', {
  28. method: 'post',
  29. data: {...params}//get请求使用params,直接拼接在请求url上
  30. })
  31. }
  32. // 渠道商户
  33. export function postCustomer(params) {
  34. console.log('params',params);
  35. return request('http://api.crm.meloinfo.com/collect/customer', {
  36. method: 'post',
  37. data: {...params}//get请求使用params,直接拼接在请求url上
  38. })
  39. }