generalServices.js 883 B

123456789101112131415161718192021222324252627282930313233343536373839
  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. async gotoHospitalIntroduce(e) {
  18. history.push({
  19. title: "院区选择",
  20. pageType: "select-hospital-area-introduce",
  21. });
  22. },
  23. toMorePage() {
  24. const { componentData } = this.props;
  25. const { componentExtInfo = {} } = componentData;
  26. history.push({
  27. title: "全部功能",
  28. pageType: "all-general-services",
  29. componentData: {
  30. ...componentData,
  31. componentExtInfo: {
  32. allPage: true,
  33. ...componentExtInfo,
  34. },
  35. },
  36. });
  37. },
  38. },
  39. });