index.js 4.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131
  1. import request from "../util/request.js"
  2. // 查询【请填写功能名称】列表
  3. export function navList(query) {
  4. return request({
  5. url: '/nav/list',
  6. method: 'get',
  7. params: query
  8. })
  9. }
  10. // 查询【请填写功能名称】列表
  11. export function newsList(query) {
  12. return request({
  13. url: '/news/list',
  14. method: 'get',
  15. params: query
  16. })
  17. }
  18. // 查询【请填写功能名称】列表
  19. export function dictList(query) {
  20. return request({
  21. url: '/dict/list',
  22. method: 'get',
  23. params: query
  24. })
  25. }
  26. // 查询【请填写功能名称】列表
  27. export function listWord(query) {
  28. return request({
  29. url: '/system/word/list',
  30. method: 'get',
  31. params: query
  32. })
  33. }
  34. export function listWordPost(query) {
  35. return request({
  36. url: '/news/listPost',
  37. headers: {
  38. 'Content-Type': 'application/x-www-form-urlencoded'
  39. },
  40. method: 'post',
  41. params: query
  42. })
  43. }
  44. // 查询【请填写功能名称】列表
  45. export function listWordType() {
  46. return request({
  47. url: '/system/type/list',
  48. method: 'get',
  49. })
  50. }
  51. // 查询【请填写功能名称】详细
  52. export function getWord(id) {
  53. return request({
  54. url: '/system/word/' + id,
  55. method: 'get'
  56. })
  57. }
  58. // 查询【请填写功能名称】详细
  59. export function addlike(id,num) {
  60. return request({
  61. url: '/system/word/addGood?id='+id+'&num='+num,
  62. method: 'get',
  63. })
  64. }
  65. export function getXMl() {
  66. return request({
  67. url: '/system/word/listXML/',
  68. method: 'get'
  69. })
  70. }
  71. // 查询【请填写功能名称】详细
  72. export function getQQInfo(id) {
  73. return request({
  74. url: 'common/getQQInfo/' + id,
  75. method: 'get'
  76. })
  77. }
  78. export function getRoundUrl() {
  79. let url =[
  80. "https://peach826.cn:443/group1/M00/00/00/i8YeDmEV462ASaLGAAJdscBC5u0183.jpg",
  81. "https://peach826.cn:443/group1/M00/00/00/i8YeDmEV46iACCXNAAMe9N1MRjg728.jpg",
  82. "https://peach826.cn:443/group1/M00/00/00/i8YeDmEV46KAbUJqAA1grNRTBFc449.jpg",
  83. "https://peach826.cn:443/group1/M00/00/00/i8YeDmEV45yAFSbfAAw_b1zrBa8404.jpg",
  84. "https://peach826.cn:443/group1/M00/00/00/i8YeDmEV45aAGSPsAArTXyp8qZ4120.jpg",
  85. "https://peach826.cn:443/group1/M00/00/00/i8YeDmEV45GAOOcYAASQ6dH7U_U478.jpg",
  86. "https://peach826.cn:443/group1/M00/00/00/i8YeDmEV44mAVf2ZAANu5X0ZRhE715.jpg",
  87. "https://peach826.cn:443/group1/M00/00/00/i8YeDmEV44KAQ587AAjGP9F9pAY903.jpg",
  88. "https://peach826.cn:443/group1/M00/00/00/i8YeDmEV432AJK2vAAm3TXcxG-w767.jpg",
  89. "https://peach826.cn:443/group1/M00/00/00/i8YeDmEV43eAWBkPAAR24bui-oU721.jpg",
  90. "https://peach826.cn:443/group1/M00/00/00/i8YeDmEV43KATs8oAAWmY7C3TVU904.jpg",
  91. "https://peach826.cn:443/group1/M00/00/00/i8YeDmEV422AYk5AAAVVG1VYJeo454.jpg",
  92. "https://peach826.cn:443/group1/M00/00/00/i8YeDmEV42iAOQ1MAAlWZGELeDk511.jpg",
  93. "https://peach826.cn:443/group1/M00/00/00/i8YeDmEV42GAPkK9AATwbFLcD0M946.jpg",
  94. "https://peach826.cn:443/group1/M00/00/00/i8YeDmEV41uAYFhoAAZi9NNr9WI392.jpg",
  95. "https://peach826.cn:443/group1/M00/00/00/i8YeDmEV41SAJ2n-AAadhPbrTGg818.jpg",
  96. "https://peach826.cn:443/group1/M00/00/00/i8YeDmEV402AX0mBAAdys2bkRag881.jpg",
  97. "https://peach826.cn:443/group1/M00/00/00/i8YeDmEV40iAHELMAAQ86H7g4fk651.jpg",
  98. "https://peach826.cn:443/group1/M00/00/00/i8YeDmEV40KAJS9pAAjHDX1zcsE388.jpg",
  99. "https://peach826.cn:443/group1/M00/00/00/i8YeDmEV4zyAaRAoAAgxBrGcERQ221.jpg",
  100. "https://peach826.cn:443/group1/M00/00/00/i8YeDmEV4zaAWrE9AAVJqaGKjO0350.jpg",
  101. "https://peach826.cn:443/group1/M00/00/00/i8YeDmEV4y-AKAysAAtm_UvxTY4348.jpg",
  102. "https://peach826.cn:443/group1/M00/00/00/i8YeDmEV4yWANTtxAAaKhgY37ak537.jpg",
  103. "https://peach826.cn:443/group1/M00/00/00/i8YeDmEV4yGAdqPmAAQTfFfg5gY336.jpg",
  104. "https://peach826.cn:443/group1/M00/00/00/i8YeDmEV4xuAYj7DAASpS262x6Y969.jpg",
  105. "https://peach826.cn:443/group1/M00/00/00/i8YeDmEV4xeAUIGjAAiXG8muSzc381.jpg",
  106. "https://peach826.cn:443/group1/M00/00/00/i8YeDmEV4xKADlxYAAlopxI8RK8745.jpg",
  107. "https://peach826.cn:443/group1/M00/00/00/i8YeDmEV4wyAWB_SAARvfYx0kE8404.jpg",
  108. "https://peach826.cn:443/group1/M00/00/00/i8YeDmEV4wSAG4LIAAYboag9Vj4938.jpg",
  109. "https://peach826.cn:443/group1/M00/00/00/i8YeDmEV4v-AGg1IAAmcYNp1oLc223.jpg",
  110. "https://peach826.cn:443/group1/M00/00/00/i8YeDmEV4vmAdy8UAAT1VNzgmhg563.jpg",
  111. "https://peach826.cn:443/group1/M00/00/00/i8YeDmEV4t6Acr-kAAsLf21JfnM998.jpg",
  112. "https://peach826.cn:443/group1/M00/00/00/i8YeDmEV4umAb5MgAAZyOJnrG_w719.jpg"
  113. ]
  114. return url[Math.round(Math.random()*32)];
  115. }