2025-06-09 17:22:32 +08:00
|
|
|
import { MEMBER_SIGN } from '@/util/common'
|
|
|
|
|
2025-03-23 09:29:40 +08:00
|
|
|
const getters = {
|
|
|
|
shopCarLength: state => state.user.shopCarLength,
|
|
|
|
smallCarLength: state => state.user.smallCarLength,
|
|
|
|
user: state => state.user.user,
|
2025-05-28 15:10:50 +08:00
|
|
|
priceSymbol: state => state.system.priceSymbol,
|
|
|
|
priceDecimal: state => state.system.priceDecimal,
|
|
|
|
priceSymbolVisible: state => state.system.priceSymbolVisible,
|
2025-06-10 17:03:15 +08:00
|
|
|
isZeroLevel: state =>
|
|
|
|
state.user?.user?.memberSign === MEMBER_SIGN.ZERO_LEVEL ||
|
|
|
|
(!state.user?.user?.memberSign && state.user?.user?.memberSign !== 0),
|
2025-03-23 09:29:40 +08:00
|
|
|
}
|
|
|
|
export default getters
|