navigator.js 476 B

123456789101112131415161718192021222324
  1. Page({
  2. navigateTo() {
  3. my.navigateTo({ url: '../get-user-info/get-user-info' })
  4. },
  5. navigateBack() {
  6. my.navigateBack()
  7. },
  8. redirectTo() {
  9. my.redirectTo({ url: '../get-user-info/get-user-info' })
  10. },
  11. switchTab() {
  12. my.switchTab({
  13. url: '/page/component/index',
  14. success: () => {
  15. my.showToast({
  16. content: '成功',
  17. type: 'success',
  18. duration: 4000
  19. });
  20. }
  21. }
  22. );
  23. },
  24. })