123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475 |
- import Vue from 'vue'
- import Vuex from 'vuex'
- Vue.use(Vuex)
- const store = new Vuex.Store({
- state: {
- yuyueData:'',
- carInfo:'',
- ckshopInfo:'',
- userInfo:'',
- wxOpenData:'',
- exitNum:'',
- },
- getters:{
- getyuyueData(state){
- return state.yuyueData
- },
- getcarInfo(state){
- return state.carInfo
- },
- getckshopInfo(state){
- return state.ckshopInfo
- },
- getuserInfo(state){
- return state.userInfo
- },
- getwxOpenData(state){
- return state.wxOpenData
- },
- getexitNum(state){
- return state.exitNum
- }
- },
- mutations: {
- mutationsyuyueData(state,data){
- state.yuyueData=data
- },
- mutationscarInfo(state,data){
- state.carInfo=data
- },
- mutationsckshopInfo(state,data){
- state.ckshopInfo=data
- },
- mutationsuserInfo(state,data){
- state.userInfo=data
- },
- mutationswxOpenData(state,data){
- state.wxOpenData=data
- },
- mutationsexitNum(state,data){
- state.exitNum=data
- },
- },
- actions: {
- actionsyuyueData(context,playload){
- context.commit('mutationsyuyueData',playload)
- },
- actionscarInfo(context,playload){
- context.commit('mutationscarInfo',playload)
- },
- actionsckshopInfo(context,playload){
- context.commit('mutationsckshopInfo',playload)
- },
- actionsuserInfo(context,playload){
- context.commit('mutationsuserInfo',playload)
- },
- actionswxOpenData(context,playload){
- context.commit('mutationswxOpenData',playload)
- },
- actionsexitNum(context,playload){
- context.commit('mutationsexitNum',playload)
- },
- }
- })
- export default store
|