index.js 809 Bytes
import actions from './actions';
import mutations from './mutations';
import skupList from './skupList';

export function defaultState () {
  return {
    // 二手商品详情接口
    info: {
      imageList: [],
      price: '',
      sizeName: '',
      shoeBoxDesc: '',
      productId: '',
      productName: '',
      productCode: '',
      colorName: '',
      describeInfo: '',
      brandName: '',
      shoeQualityDesc: '',
      soldTime: '',
      image: ''
    },

    // 筛选列表
    filterData: [],
    productList: [],
    page: 1,
    pageTotal: 0,
    total: 0,
    isMore: false,
    isShowEmpty: false,
  };
}

export default function() {
  return {
    namespaced: true,
    state: defaultState(),
    mutations,
    actions,
    modules: {
      skupList: skupList(),
    }
  };
}