| 1234567891011121314151617181920212223242526272829303132333435363738394041424344454647 |
- let config = {}
- // config.baseURL = 'http://192.168.1.91:2888'
- // config.baseURL = 'http://123.60.225.130:2888'
- config.baseURL = 'https://vote.guosen-fumao.cn/api'
- //是否需要获取手机号
- config.isAuthPhone = true
- config.transformDomains = 'https://m.changyoyo.com'
- //普通二维码跳作品详情链接
- config.PRODUCT_PATH = 'https://vote.guosen-fumao.cn/home',
- config.kdniao = {
- appId: '1709349',
- appKey: '4d07512e-6516-4413-b82a-c68228111119'
- }
- config.themeRed = {
- skin: '--bgColor:#e72226;--color:#fff;--shopBg:#f24050;--shopRule:#FF797F',
- theme: {
- bgColor: '#e72226',
- color: '#fff',
- shopBg: '#f24050',
- rankBgImg: "https://guosen-bucket-ldt.obs.cn-south-1.myhuaweicloud.com:443/4872ea85f7e74a75a920135ce1384262-bg.png"
- }
- }
- config.setTheme = (baseTheme, vm) => {
- if (vm.$isEmpty(baseTheme)) {
- vm.$u.vuex('vuex_skin', config.themeRed.skin)
- vm.$u.vuex('vuex_theme', config.themeRed.theme)
- return
- }
- let rgba=vm.$u.colorToRgba(baseTheme.baseColor, 0.20)
- let skin =
- `--bgColor:${baseTheme.baseColor};--color:#fff;--shopBg:${baseTheme.shopBg};--shopRule:${baseTheme.ruleBg};--rgba:${rgba}`
- let theme = {
- bgColor: baseTheme.baseColor,
- color: '#fff',
- rgba,
- shopBg: baseTheme.shopBg,
- rankBgImg: baseTheme.rankBgImg
- }
- vm.$u.vuex('vuex_skin', skin)
- vm.$u.vuex('vuex_theme', theme)
- }
- export default config
|