index.js 681 B

1234567891011121314151617181920212223242526272829303132333435363738
  1. import history from "../../utils/history";
  2. Component({
  3. props: {
  4. componentData: {},
  5. },
  6. data: {
  7. type: "",
  8. },
  9. didMount() {
  10. const { query = {} } = this.$page.data;
  11. const { name } = query;
  12. const nameMap = {
  13. 黄石总院: "huangshi",
  14. };
  15. this.setData({
  16. type: nameMap[name] ? nameMap[name] : "normal",
  17. });
  18. },
  19. methods: {
  20. toNextPage() {
  21. const { componentData } = this.props;
  22. const { query = {} } = this.$page.data;
  23. history.push({
  24. query,
  25. componentData,
  26. title: "选择科室",
  27. pageType: "select-department",
  28. });
  29. },
  30. toService() {
  31. history.push({
  32. title: "授权协议",
  33. pageType: "service-agreement",
  34. });
  35. },
  36. },
  37. });