config.js 1.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  1. let config = {}
  2. config.baseURL = 'http://192.168.1.91:2888'
  3. // config.baseURL = 'http://123.60.225.130:2888'
  4. // config.baseURL = 'https://vote.guosen-fumao.cn/api'
  5. //是否需要获取手机号
  6. config.isAuthPhone = true
  7. config.transformDomains = 'https://m.changyoyo.com'
  8. //普通二维码跳作品详情链接
  9. config.PRODUCT_PATH = 'https://vote.guosen-fumao.cn/home',
  10. config.kdniao = {
  11. appId: '1709349',
  12. appKey: '4d07512e-6516-4413-b82a-c68228111119'
  13. }
  14. config.themeRed = {
  15. skin: '--bgColor:#e72226;--color:#fff;--shopBg:#f24050;--shopRule:#FF797F',
  16. theme: {
  17. bgColor: '#e72226',
  18. color: '#fff',
  19. shopBg: '#f24050',
  20. rankBgImg: "https://guosen-bucket-ldt.obs.cn-south-1.myhuaweicloud.com:443/4872ea85f7e74a75a920135ce1384262-bg.png"
  21. }
  22. }
  23. config.setTheme = (baseTheme, vm) => {
  24. if (vm.$isEmpty(baseTheme)) {
  25. vm.$u.vuex('vuex_skin', config.themeRed.skin)
  26. vm.$u.vuex('vuex_theme', config.themeRed.theme)
  27. return
  28. }
  29. let rgba=vm.$u.colorToRgba(baseTheme.baseColor, 0.20)
  30. let skin =
  31. `--bgColor:${baseTheme.baseColor};--color:#fff;--shopBg:${baseTheme.shopBg};--shopRule:${baseTheme.ruleBg};--rgba:${rgba}`
  32. let theme = {
  33. bgColor: baseTheme.baseColor,
  34. color: '#fff',
  35. rgba,
  36. shopBg: baseTheme.shopBg,
  37. rankBgImg: baseTheme.rankBgImg
  38. }
  39. vm.$u.vuex('vuex_skin', skin)
  40. vm.$u.vuex('vuex_theme', theme)
  41. }
  42. export default config