generalServices.js 734 B

12345678910111213141516171819202122232425262728293031323334353637
  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. history.push({
  13. title: '就医指南',
  14. pageType: 'patient-guide'
  15. })
  16. },
  17. toMorePage() {
  18. const {
  19. componentData
  20. } = this.props;
  21. const {
  22. componentExtInfo = {}
  23. } = componentData;
  24. history.push({
  25. title: '全部功能',
  26. pageType: 'all-general-services',
  27. componentData: { ...componentData,
  28. componentExtInfo: {
  29. allPage: true,
  30. ...componentExtInfo
  31. }
  32. }
  33. });
  34. }
  35. }
  36. });