const defaultState = () => {
  return {
    accountInfo: uni.getStorageSync('accountDashboard') || {
      data: {},
      notice: {},
      order: {},
      product: {
        illegal_num: 0,
        normal_num: 0,
        off_num: 0,
        total_num: 0,
        verify_passed_off_num: 0,
        verify_refused_num: 0,
        verify_waiting_num: 0,
      },
      return: {
        fin_num: 0,
        review_num: 0,
        total_num: 0,
        un_fin_num: 0,
      },
      store_info: {
        store_id: 1,
        wx_qrcode: '',
      },
    },
  };
};

const state = defaultState();

const getters = {};

const mutations = {};

const actions = {};

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