getters.js 973 B

1234567891011121314151617181920212223242526
  1. export default {
  2. userInfo: (state) => state.auth.userInfo,
  3. userToken: (state) => state.auth.userToken,
  4. // 位置
  5. currentCity: (state) => state.location.currentCity,
  6. currentShopCity: (state) => state.location.currentShopCity,
  7. detailAddress: (state) => state.location.detailAddress,
  8. obtainLocationCount: (state) => state.location.obtainLocationCount,
  9. // 聊天
  10. customerServiceInfo: (state) => state.customerService.customerServiceInfo,
  11. chatListData: (state) => state.customerService.chatListData,
  12. wsHandleInfo: (state) => state.customerService.wsHandleInfo,
  13. wsHandle: (state) => state.customerService.wsHandle,
  14. // 个人中心
  15. pricePlatformInfo: (state) => state.user.pricePlatformInfo,
  16. shopCarNumber: (state) => state.user.shopCarNumber,
  17. levelType: (state) => state.user.levelType,
  18. // app
  19. statusBarHeight: (state) => state.app.systermInfo.statusBarHeight || 0,
  20. systermInfo: (state) => state.app.systermInfo,
  21. terminal: (state) => state.app.terminal
  22. }