generalServices.js 607 B

12345678910111213141516171819202122232425262728293031
  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. toMorePage() {
  12. const {
  13. componentData
  14. } = this.props;
  15. const {
  16. componentExtInfo = {}
  17. } = componentData;
  18. history.push({
  19. title: '全部功能',
  20. pageType: 'all-general-services',
  21. componentData: { ...componentData,
  22. componentExtInfo: {
  23. allPage: true,
  24. ...componentExtInfo
  25. }
  26. }
  27. });
  28. }
  29. }
  30. });