3
0
Fork 0
web-store-retail-h5/store/getters.js

13 lines
475 B
JavaScript
Raw Normal View History

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,
priceSymbol: state => state.system.priceSymbol,
priceDecimal: state => state.system.priceDecimal,
priceSymbolVisible: state => state.system.priceSymbolVisible,
2025-06-09 17:22:32 +08:00
isZeroLevel: state => state.user?.user?.memberSign === MEMBER_SIGN.ZERO_LEVEL,
2025-03-23 09:29:40 +08:00
}
export default getters