forked from angelo/web-retail-h5
15 lines
556 B
JavaScript
15 lines
556 B
JavaScript
import { MEMBER_SIGN } from '@/util/common'
|
|
|
|
const getters = {
|
|
shopCarLength: state => state.user.shopCarLength,
|
|
smallCarLength: state => state.user.smallCarLength,
|
|
user: state => state.user.user,
|
|
priceSymbol: state => state.system.priceSymbol,
|
|
priceDecimal: state => state.system.priceDecimal,
|
|
priceSymbolVisible: state => state.system.priceSymbolVisible,
|
|
isZeroLevel: state =>
|
|
state.user?.user?.memberSign === MEMBER_SIGN.ZERO_LEVEL ||
|
|
(!state.user?.user?.memberSign && state.user?.user?.memberSign !== 0),
|
|
}
|
|
export default getters
|