index.js 746 B

123456789101112131415161718192021222324252627
  1. import { connect } from 'herculex';
  2. const app = getApp();
  3. Component(connect({
  4. mapStateToProps: {
  5. userInfo: state => state.$global.userInfo,
  6. titleBarHeight: state => state.$global.titleBarHeight,
  7. passport: state => state.$global.passport,
  8. currentCourt: state => state.$global.currentCourt,
  9. courtInfo: state => state.$global.courtInfo
  10. }
  11. })({
  12. props: {
  13. componentData: {}
  14. },
  15. data: {
  16. imgSrcPrefix: app.globalData.imgSrcPrefix,
  17. defaultAvatar: 'https://gw.alipayobjects.com/mdn/rms_091500/afts/img/A*ry3aQ6XmhIgAAAAAAAAAAAAAARQnAQ'
  18. },
  19. methods: {
  20. onJumpAreaSelect() {
  21. my.navigateTo({
  22. url: '/antbuilder/industry/smartcommunity/pages/area-select/index?src=visit-user'
  23. });
  24. }
  25. }
  26. }));