order.uts 1011 B

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253
  1. import { request } from '../request.uts'
  2. // 基础 URL 配置
  3. // #ifdef APP-ANDROID
  4. const BASE_URL = 'http://192.168.0.9:8001'
  5. // #endif
  6. // #ifdef APP-IOS
  7. const BASE_URL = 'http://192.168.0.9:8001'
  8. // #endif
  9. // #ifdef H5
  10. const BASE_URL = ''
  11. // #endif
  12. // #ifdef MP-WEIXIN
  13. const BASE_URL = 'http://192.168.0.9:8001'
  14. // #endif
  15. // #ifdef MP-HARMONY
  16. const BASE_URL = 'http://192.168.0.9:8001'
  17. // #endif
  18. /**
  19. * 获取商户评论列表
  20. */
  21. export function transRecords(params : any) : Promise<any> {
  22. return request({
  23. url: `${BASE_URL}/api/coach/v3/wallet/trans-records`,
  24. method: "GET",
  25. params: params
  26. })
  27. }
  28. /**
  29. * 获取商户评论列表
  30. */
  31. export function getCommentList(params : any) : Promise<any> {
  32. return request({
  33. url: `${BASE_URL}/api/coach/v3/ordercomments`,
  34. method: "GET",
  35. params: params
  36. })
  37. }
  38. /**
  39. * 获取商户评论统计数据
  40. */
  41. export function getCommentData() : Promise<any> {
  42. return request({
  43. url: `${BASE_URL}/api/coach/v3/ordercomments/statistics`,
  44. method: "GET"
  45. })
  46. }