const state = {
  checkMyBenfits: 0, // 是否是从个人中心去注册会员页，默认值0 0-不是 1-是
  recommendedProduct: [], // 贷款计算器所推荐的产品
  userInfo: {} // 用户信息
}

const getters = {
  checkMyBenfits (state) {
    return state.checkMyBenfits
  }
}

const mutations = {
  UPDATE_CHECKMYBENFITS_VALUE (state, value) {
    state.checkMyBenfits = value
  },
  UPDATE_RECOMMENDEDPRODUCT (state, value) {
    state.recommendedProduct = value
  },
  UPDATE_USERINFO (state, value) {
    state.userInfo = value
  }
}

export default {
  namespaced: true,
  state,
  getters,
  mutations
}
