123456789101112131415161718192021222324252627282930 |
- const state = {
- headHeight: '100rpx',
- statusBarHeight: 0,
-
- // 涨跌颜色
- stocksColor: 'green_rise' , // green_rise:绿涨红跌 , red_rise:绿跌红涨
-
- }
- const mutations = {
- SET_statusBarHeight: (state, Height) => {
- state.statusBarHeight = Height
- },
- SET_STOCKS_COLOR: (state, code) => {
- state.stocksColor = code
- },
- }
- const actions = {
- }
- export default {
- namespaced: true,
- state,
- mutations,
- actions
- }
|