quanwei
2 days ago 04102f7237efefa744090ed7c25f7b5d0807b679
mobile/store/index.js
@@ -7,7 +7,8 @@
   state: { // state的作用是定义属性变量。定义一个参数
      theme: '',
      footTab:'',
      points_name:'积分'
      points_name:'积分',
      consumption_name:'消费券'
   },
   // 全局同步方法,在methods{this.$store.commit("changeTheme")}
   mutations: {
@@ -19,6 +20,9 @@
      },
      changePoints(state, value) {
         state.points_name = value;
      },
      changeConsumption(state, value) {
         state.consumption_name = value;
      }
   },
   getters: {