mixins.ts 526 B

123456789101112131415161718192021222324252627282930313233343536373839
  1. import fetchutil from './http'
  2. import {formatTime,API_BASE_URL} from './util'
  3. let levelStr = {
  4. 0:{
  5. str:'青铜',
  6. full: 50
  7. },
  8. 1:{
  9. str:'白银',
  10. full: 200
  11. },
  12. 2:{
  13. str:'黄金',
  14. full: 2000
  15. },
  16. 3:{
  17. str:'钻石',
  18. full:5000
  19. },
  20. 4:{
  21. str:'王者',
  22. },
  23. }
  24. module.exports = {
  25. data: {
  26. someData: 'myMixin',
  27. g_cdn:`https://culture.4dage.com/lvDao_v4`,
  28. fetchutil,
  29. levelStr,
  30. API_BASE_URL,
  31. formatTime
  32. },
  33. onShow() {
  34. console.log('Log from mixin!')
  35. }
  36. }