index.js 533 B

12345678910111213141516171819202122232425262728293031
  1. import history from '../../utils/history';
  2. Component({
  3. props: {
  4. componentData: {}
  5. },
  6. data: {},
  7. methods: {
  8. toNextPage() {
  9. const {
  10. componentData
  11. } = this.props;
  12. const {
  13. query = {}
  14. } = this.$page.data;
  15. history.push({
  16. query,
  17. componentData,
  18. title: '选择科室',
  19. pageType: 'select-department'
  20. });
  21. },
  22. toService() {
  23. history.push({
  24. title: '授权协议',
  25. pageType: 'service-agreement'
  26. });
  27. }
  28. }
  29. });