doc.js 612 B

123456789101112131415161718192021222324252627282930
  1. const Mock = require('mockjs')
  2. const count = 10
  3. const list = []
  4. for (let i = 0; i < count; i++) {
  5. list.push(Mock.mock({
  6. name: '@ctitle(5,10)', // 供应商名称
  7. shopType: '@natural(1,2)', // 供应商类型
  8. mobile: "@string('number',11)", // 手机号
  9. linkMan: '@cname(2,6)', // 联系人
  10. lowerAuditStatus: '@natural(0,1)' // 审核状态
  11. }))
  12. }
  13. module.exports = [
  14. {
  15. url: '/review/doc/list',
  16. type: 'get',
  17. response: () => {
  18. console.log('123')
  19. return {
  20. code: 0,
  21. data: {
  22. list
  23. }
  24. }
  25. }
  26. }
  27. ]