'!'
This commit is contained in:
44
src/store/useStoreInfoStore/index.ts
Normal file
44
src/store/useStoreInfoStore/index.ts
Normal file
@@ -0,0 +1,44 @@
|
||||
/**
|
||||
* 商户信息模块状态管理
|
||||
* @namespace :开启命名空间
|
||||
*/
|
||||
import { Module } from 'vuex'
|
||||
import { State } from '../index'
|
||||
import mutations from './mutations'
|
||||
import actions from './actions'
|
||||
import getters from './getters'
|
||||
|
||||
|
||||
export interface StoreInfoStoreType {
|
||||
allStoreInfo: AnyObject // 门店详细信息
|
||||
createStoreTimer: string // 门店创建时间
|
||||
storeStatus: number // 门店营业状态
|
||||
jxLoading: boolean // 显示加载图层
|
||||
isSkiplogin: boolean // 是否从公众号来跳转登录
|
||||
isConnectPrinter: boolean // 打印机是否连接成功
|
||||
vendorStoreIDS: AnyObject // 三方门店ID(美团/饿了么)
|
||||
isNewMessage: boolean // 是否有新信息
|
||||
imOnlineStatus: Array<AnyObject> // 美团门店IM线上状态
|
||||
platformInfo:AnyObject // 三方平台所有信息
|
||||
}
|
||||
|
||||
|
||||
export const storeInfo: Module<StoreInfoStoreType, State> = {
|
||||
// 开启命名空间
|
||||
namespaced: true,
|
||||
state: (): StoreInfoStoreType => ({
|
||||
allStoreInfo: {}, // 门店详细信息 默认空,存储路径@/pages/merchant/userInfo
|
||||
createStoreTimer: '1970-01-01 00:00:00', // 门店创建时间 默认 1970-01-01 00:00:00
|
||||
storeStatus: 1, // 门店营业状态 默认营业中
|
||||
jxLoading: false, // 显示加载图层
|
||||
isSkiplogin: true, // true是从公众号来
|
||||
isConnectPrinter: false, // 打印机是否连接成功
|
||||
vendorStoreIDS: {}, // 三方门店ID(美团/)
|
||||
isNewMessage: false, // 是否有新信息
|
||||
imOnlineStatus: [], // 美团门店IM线上状态
|
||||
platformInfo:{} // 三方平台的所有信息
|
||||
}),
|
||||
mutations,
|
||||
actions,
|
||||
getters
|
||||
}
|
||||
Reference in New Issue
Block a user