const getters = {
  userInfo: state => state.coop.userInfo,
  statusBarHeight: state => state.coop.statusBarHeight,
  projectTabIndex: state => state.coop.projectTabIndex,
  jumpURLForI: state => state.coop.jumpURLForI,
  jumpURLForII: state => state.coop.jumpURLForII,
  positionInfo: state => state.coop.positionInfo,
  organizationInfo: state => state.coop.organizationInfo,
  logged: state => !!(state.user.token && state.user.info.id),
  // 刷题相关
  commonConfig: state => state.question.commonConfig,
  titleConfig: state => state.question.titleConfig,
  questionList: state => state.question.questionList,
  currentQuestion: state => state.question.currentQuestion,
  commitKind: state => state.question.titleConfig.commitKind,
  freeFlag: state => state.question.titleConfig.freeFlag,
  totalCount: state => state.question.titleConfig.totalCount,
  canRunNext: state => state.question.canRunNext,
  webUserInfo: state => state.user.info,

  // 优惠券相关
  currentCoupon: state => state.coupon.currentCoupon,
  goodsInfo4Coupon: state => state.coupon.goodsInfo4Coupon,
  selectCouponList: state => state.coupon.selectCouponList,
}
export default getters
