index.js 927 B

12345678910111213141516171819202122232425262728
  1. const Mock = require('better-mock/dist/mock.mp.js')
  2. const diyRes = require('./json/diy_res.json')
  3. const navigationRes = require('./json/navigation_res.json')
  4. const menuRes = require('./json/menu_res.json')
  5. const home_good_list_res = require('./json/home_good_list_res.json')
  6. const category_list_res = require('./json/category_list_res.json')
  7. const products_list_res = require('./json/products_list_res.json')
  8. const products_detail_res = require('./json/products_detail_res.json')
  9. const user_res = require('./json/user_res.json')
  10. // 模块数据
  11. Mock.mock('api/mock/diy', diyRes)
  12. Mock.mock('api/mock/navigation', navigationRes)
  13. Mock.mock('api/mock/menu', menuRes)
  14. Mock.mock('api/groom/list', home_good_list_res)
  15. Mock.mock('api/mock/getCategoryList', category_list_res)
  16. Mock.mock('api/mock/Productslist', products_list_res)
  17. Mock.mock('api/mock/product/detail', products_detail_res)
  18. Mock.mock('api/mock/user', user_res)