text: import {
      reqGetCompetitionTheTopFive,
      reqGetTeamTheTopFive,
      reqGetCompetitionTheBottom,
      reqGetTeamTheBottom,
  
      reqGetCompetitionTheTopFive2,
      reqGetTeamTheTopFive2,
      reqGetCompetitionTheBottom2,
      reqGetTeamTheBottom2,
  
      /* 今天 */
      reqGetOddsMovedTheMostOnehour,
      reqGetOddsMovedTheMostToday,
  
      /* 票据 */
      reqGetgetUsersEmploy,
      reqGetTodayUsersEmploy,
      reqGetNotTheStartEmploy,
      reqGetEndUserEmploy,
  
  } from '@/api'
  import Vue from "vue";
  const state = {
      /* 联赛前五 */
      CompetitionTheTopFive: [],
      /* 球队前五 */
      TeamTheTopFive: [],
      /* 倒数 */
      CompetitionTheBottom: [],
      TeamTheBottom: [],
      /* 赔率一个小时内 */
      OddsMovedTheMostOnehour: [],
      OddsMovedTheMostToday: [],
      /* 用户票据 */
      UsersEmploy: [],
      UserSumEmploy:[],
      index:0
  };
  const actions = {
      /* 2021-22 */
      async getCompetitionTheTopFive({
          commit
      }, data) {
          let request = await reqGetCompetitionTheTopFive(data);
          commit("GETCOMPETITIONTHETOPFIVE", request)
      },
      async getTeamTheTopFive({
          commit
      }, data) {
          let request = await reqGetTeamTheTopFive(data);
  
          commit("GETTEAMTHETOPFIVE", request)
      },
      async getCompetitionTheBottom({
          commit
      }, data) {
          let request = await reqGetCompetitionTheBottom(data);
          commit("GETCOMPETITIONTHEBOTTOM", request)
      },
      async getTeamTheBottom({
          commit
      }, data) {
          let request = await reqGetTeamTheBottom(data);
          commit("GETTEAMTHEBOTTOM", request)
      },
      /* 2020-21 */
      async getCompetitionTheTopFive2({
          commit
      }, data) {
          let request = await reqGetCompetitionTheTopFive2(data);
          commit("GETCOMPETITIONTHETOPFIVE", request)
      },
      async getTeamTheTopFive2({
          commit
      }, data) {
          let request = await reqGetTeamTheTopFive2(data);
  
          commit("GETTEAMTHETOPFIVE", request)
      },
      async getCompetitionTheBottom2({
          commit
      }, data) {
          let request = await reqGetCompetitionTheBottom2(data);
          commit("GETCOMPETITIONTHEBOTTOM", request)
      },
      async getTeamTheBottom2({
          commit
      }, data) {
          let request = await reqGetTeamTheBottom2(data);
          commit("GETTEAMTHEBOTTOM", request)
      },
      /* 小时 */
      async getOddsMovedTheMostOnehour({
          commit
      }) {
          let request = await reqGetOddsMovedTheMostOnehour();
          commit("GETODDSMOVEDTHEMOSTONEHOUR", request)
      },
      /* 今天 */
      async getOddsMovedTheMostToday({
          commit
      }) {
          let request = await reqGetOddsMovedTheMostToday();
          commit("GETODDSMOVEDTHEMOSTTODAY", request)
      },
      /* 票据 */
      async GetgetUsersEmploy({
          commit
      }, date) {
          let request = await reqGetgetUsersEmploy(date);
          commit("GETGETUSERSEMPLOY", request)
      },
  
      async getUsersEmploy({
          commit
      }, date) {
          let request;
          if(date.choice==1){
              request = await reqGetTodayUsersEmploy(date.id);
          }else if(date.choice==2){
              request = await reqGetNotTheStartEmploy(date.id);
          }else if(date.choice==3){
              request = await reqGetEndUserEmploy(date.id);
          }
     
          commit("GETGETUSERSEMPLOY", request)
      },
  
  };
  const mutations = {
      GETCOMPETITIONTHETOPFIVE(state, CompetitionTheTopFiveList) {
          Vue.set(state, "CompetitionTheTopFive", CompetitionTheTopFiveList)
      },
      GETTEAMTHETOPFIVE(state, TeamTheTopFiveList) {
          Vue.set(state, "TeamTheTopFive", TeamTheTopFiveList)
      },
      GETCOMPETITIONTHEBOTTOM(state, CompetitionTheBottom) {
          Vue.set(state, "CompetitionTheBottom", CompetitionTheBottom)
      },
      GETTEAMTHEBOTTOM(state, TeamTheBottom) {
          Vue.set(state, "TeamTheBottom", TeamTheBottom)
      },
      GETCOMPETITIONTHETOPTEN(state, CompetitionTheTopTen) {
          Vue.set(state, "CompetitionTheTopTen", CompetitionTheTopTen)
      },
      GETODDSMOVEDTHEMOSTONEHOUR(state, OddsMovedTheMostOnehour) {
          Vue.set(state, "OddsMovedTheMostOnehour", OddsMovedTheMostOnehour)
      },
      GETODDSMOVEDTHEMOSTTODAY(state, OddsMovedTheMostToday) {
          Vue.set(state, "OddsMovedTheMostToday", OddsMovedTheMostToday)
      },
      GETGETUSERSEMPLOY(state, UsersEmploy) {
          if(state.index==0){
              Vue.set(state, "UserSumEmploy", UserSumEmploy)
          }
          Vue.set(state, "UsersEmploy", UsersEmploy)
       
      }
  };
  const getters = {
      getCompetitionTheTopFive(state) {
          return state.CompetitionTheTopFive.list || []
      },
      getTeamTheTopFive(state) {
          return state.TeamTheTopFive.list || []
      },
      getCompetitionTheBottom(state) {
          return state.CompetitionTheBottom.list || []
      },
      getTeamTheBottom(state) {
          return state.TeamTheBottom.list || []
      },
      getMostOnehour(state) {
          return state.OddsMovedTheMostOnehour.homeMatchResult || []
      },
      getMovedTheMostToday(state) {
          return state.OddsMovedTheMostToday.homeMatchResult || []
      },
      getUsersEmploy(state) {
          return state.UsersEmploy.homeMatchResult || []
      }
  };
  
  export default ({
      state,
      mutations,
      actions,
      getters
  })
  
  /* if(store.getters.userInfo.userStatus === '"禁用"'){
      if ( to.path != '/user') {
         
          next('/user')
        } else {
          next()
      }    
  }else{
      next();
  } */