You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 

65 line
1.5 KiB

  1. //全局通用 数据
  2. import fetch from '@/utils/fetch'
  3. //获取上传授权
  4. export function getOSSSignature(type) {
  5. return fetch({
  6. url: '/unionService/AliOSS/signature',
  7. method: 'post',
  8. params: {
  9. dir: type
  10. },
  11. withCredentials: false
  12. })
  13. }
  14. //获取资源下载OSS地址接口
  15. export function getMediaResoures() {
  16. return fetch({
  17. url: '/unionService/AliOSS/mediaResource/oss/url',
  18. method: 'get',
  19. })
  20. }
  21. //获取更新包下载OSS地址接口
  22. export function getPackageResoures() {
  23. return fetch({
  24. url: '/unionService/AliOSS/upgradePackage/oss/url',
  25. method: 'get',
  26. })
  27. }
  28. //获取配置下载OSS地址接口
  29. export function getConfigResoures() {
  30. return fetch({
  31. url: '/unionService/AliOSS/deviceConfig/oss/url',
  32. method: 'get',
  33. })
  34. }
  35. //获取配置下载OSS地址接口
  36. export function getLogoResoures() {
  37. return fetch({
  38. url: '/unionService/AliOSS/store/logo/oss/url',
  39. method: 'get',
  40. })
  41. }
  42. //获取支付二维码下载OSS地址接口
  43. export function qrcodeResoures() {
  44. return fetch({
  45. url: '/unionService/AliOSS/trade/oss/url',
  46. method: 'get',
  47. })
  48. }
  49. //获取支付二维码下载OSS地址接口
  50. export function getImgResoures() {
  51. return fetch({
  52. url: '/unionService/AliOSS/goods/oss/url',
  53. method: 'get',
  54. })
  55. }
  56. //获取省市
  57. export function getCitys(id) {
  58. return fetch({
  59. url: '/service-org/Region/getCitys?parentId='+id,
  60. method: 'get',
  61. })
  62. }