getters.js 1.3 KB

123456789101112131415161718192021222324252627282930313233343536
  1. const getters = {
  2. token: state => state.app.token,
  3. stocksColor: state => state.app.stocksColor,
  4. headHeight: state => state.app.headHeight,
  5. statusBarHeight: state => state.app.statusBarHeight,
  6. navBarHeight: state => state.app.navBarHeight,
  7. windowInfo: state => state.app.windowInfo,
  8. PageContentHeight: state => state.app.PageContentHeight,
  9. maxPageHeight: state => state.app.maxPageHeight,
  10. tabBarHeight: state => state.app.tabBarHeight,
  11. // 资产
  12. contractAccount: state => state.possession.contractAccount,
  13. bibiAccount: state => state.possession.bibiAccount,
  14. legalAccount: state => state.possession.legalAccount,
  15. GiftMoneyAccount: state => state.possession.GiftMoneyAccount,
  16. // websocket
  17. restrictOrder: state => state.websocket.restrictOrder,
  18. bids: state => state.websocket.bids,
  19. asks: state => state.websocket.asks,
  20. daymarket: state => state.websocket.daymarket,
  21. usdtList: state => state.websocket.usdtList,
  22. optional: state => state.websocket.optional,
  23. marketAll: state => state.websocket.marketAll,
  24. contract_optional: state => state.websocket.contract_optional,
  25. contract_marketAll: state => state.websocket.contract_marketAll,
  26. currencyVal: state => state.websocket.currencyVal,
  27. orderList: state => state.websocket.orderList, // 合约持仓
  28. leverTrade: state => state.websocket.leverTrade, // 合约页面
  29. }
  30. export default getters