import type { GroupList, BrandRes } from '@/http/api/brand/types' export interface State { shopList: Readonly //店铺列表 shopListGroupByIndustry: Readonly //通过业态分组的店铺列表 shopListGroupByFloor: Readonly //通过楼层分组的店铺列表 weather: Weather //天气 BrandInfo: BrandRes //品牌模块相关数据 包括楼层 推荐店铺 业态 buildingList: Building[] //楼栋列表 facilityList: Facility[] //设施列表 showDetail: boolean showSearch: boolean language: Language //语言 zh: 简体中文 en: 英文 tw: 繁体中文 config: Config //配置文件 mapStatus: boolean //地图加载是否成功 device: Device //当前设备信息 shop: Shop //店铺信息 } export const state = (): State => ({ weather: {} as Weather, BrandInfo: {} as BrandRes, shopList: [], showSearch: false, showDetail: false, shopListGroupByIndustry: [], shopListGroupByFloor: [], buildingList: [], facilityList: [], language: 'zh', config: {} as Config, mapStatus: false, device: {} as Device, shop: {} as Shop })