getMyCrowdTestMock.js 3.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139
  1. var Mock = require('mockjs')
  2. var data = Mock.mock({
  3. unFinishedTaskList: [
  4. {
  5. id: 0,
  6. coverImgUrl: 'http://www.mooctest.net/assets/img/mooctest.png',
  7. projectId: 1123,
  8. title: '发送群文件测试',
  9. platform: [0, 1],
  10. description: '任务描述文字xxxx',
  11. price: '30',
  12. serviceType: 1,
  13. participantNum: 30,
  14. status: 0
  15. },
  16. {
  17. id: 1,
  18. coverImgUrl: 'http://www.mooctest.net/assets/img/mooctest.png',
  19. projectId: 1123,
  20. title: '多人聊天发送文件测试',
  21. platform: [0],
  22. description: '任务描述文字xxxx',
  23. price: '10',
  24. serviceType: 0,
  25. participantNum: 0,
  26. status: 1
  27. },
  28. {
  29. id: 2,
  30. coverImgUrl: 'http://www.mooctest.net/assets/img/mooctest.png',
  31. projectId: 1123,
  32. title: '浏览器波洞星球',
  33. platform: [1],
  34. description: '任务描述文字xxxx',
  35. price: '10',
  36. serviceType: 2,
  37. participantNum: 21,
  38. status: 0
  39. },
  40. {
  41. id: 3,
  42. coverImgUrl: 'http://www.mooctest.net/assets/img/mooctest.png',
  43. projectId: 1123,
  44. title: '举报支持选择聊天记录(安全)',
  45. platform: [0, 1, 2],
  46. description: '任务描述文字xxxx',
  47. price: '0',
  48. serviceType: 1,
  49. participantNum: 1,
  50. status: 1
  51. },
  52. ],
  53. finishedTaskList: [
  54. {
  55. id: 0,
  56. coverImgUrl: 'http://www.mooctest.net/assets/img/mooctest.png',
  57. projectId: 1123,
  58. title: '发送群文件测试',
  59. platform: [0, 1],
  60. description: '任务描述文字xxxx',
  61. price: '30',
  62. serviceType: 1,
  63. participantNum: 30,
  64. status: 0
  65. },
  66. {
  67. id: 1,
  68. coverImgUrl: 'http://www.mooctest.net/assets/img/mooctest.png',
  69. projectId: 1123,
  70. title: '多人聊天发送文件测试',
  71. platform: [0],
  72. description: '任务描述文字xxxx',
  73. price: '10',
  74. serviceType: 0,
  75. participantNum: 0,
  76. status: 1
  77. },
  78. {
  79. id: 2,
  80. coverImgUrl: 'http://www.mooctest.net/assets/img/mooctest.png',
  81. projectId: 1123,
  82. title: '浏览器波洞星球',
  83. platform: [1],
  84. description: '任务描述文字xxxx',
  85. price: '10',
  86. serviceType: 2,
  87. participantNum: 21,
  88. status: 0
  89. },
  90. {
  91. id: 3,
  92. coverImgUrl: 'http://www.mooctest.net/assets/img/mooctest.png',
  93. projectId: 1123,
  94. title: '举报支持选择聊天记录(安全)',
  95. platform: [0, 1, 2],
  96. description: '任务描述文字xxxx',
  97. price: '0',
  98. serviceType: 1,
  99. participantNum: 1,
  100. status: 1
  101. },
  102. ],
  103. appliedProjectList: [
  104. {
  105. id: 1,
  106. code: '27382hdsjkfdskfK',
  107. name: '多人聊天发送文件测试',
  108. platform: [0],
  109. description: '任务描述文字xxxx',
  110. price: '10'
  111. },
  112. {
  113. id: 2,
  114. code: 'jzlk9dfsndfsmd ',
  115. name: '多人聊天发送文件测试',
  116. platform: [0, 1],
  117. description: '任务描述文字xxxx',
  118. price: '90'
  119. },
  120. {
  121. id: 3,
  122. code: '437849sdbsjbsf',
  123. name: '多人聊天发送文件测试',
  124. platform: [1, 2],
  125. description: '任务描述文字xxxx',
  126. price: '50'
  127. }
  128. ],
  129. user: {
  130. id: 123,
  131. name: '李三',
  132. score: 100,
  133. prestige: 100,
  134. }
  135. })
  136. export {
  137. data
  138. }