generalServices.js 765 B

1234567891011121314151617181920212223242526272829303132333435363738
  1. import history from '../../utils/history';
  2. const app = getApp();
  3. Component({
  4. props: {
  5. componentData: {}
  6. },
  7. data: {
  8. imgSrcPrefix: app.globalData.imgSrcPrefix
  9. },
  10. methods: {
  11. async gotoJiuyi(e) {
  12. console.log('11111111');
  13. history.push({
  14. title: '就医指南',
  15. pageType: 'patient-guide'
  16. })
  17. },
  18. toMorePage() {
  19. const {
  20. componentData
  21. } = this.props;
  22. const {
  23. componentExtInfo = {}
  24. } = componentData;
  25. history.push({
  26. title: '全部功能',
  27. pageType: 'all-general-services',
  28. componentData: { ...componentData,
  29. componentExtInfo: {
  30. allPage: true,
  31. ...componentExtInfo
  32. }
  33. }
  34. });
  35. }
  36. }
  37. });