index.js 599 B

12345678910111213141516171819202122232425262728293031323334
  1. const AuthStepType = {
  2. ONE: 1,
  3. TWO: 2,
  4. THREE: 3,
  5. };
  6. Component({
  7. options: {
  8. multipleSlots: true,
  9. },
  10. properties: {
  11. currAuthStep: {
  12. type: Number,
  13. value: AuthStepType.ONE,
  14. },
  15. userInfo: {
  16. type: Object,
  17. value: {},
  18. },
  19. isNeedGetUserInfo: {
  20. type: Boolean,
  21. value: false,
  22. },
  23. },
  24. data: {
  25. defaultAvatarUrl: 'https://tdesign.gtimg.com/miniprogram/template/retail/usercenter/icon-user-center-avatar@2x.png',
  26. AuthStepType,
  27. },
  28. methods: {
  29. gotoUserEditPage() {
  30. this.triggerEvent('gotoUserEditPage');
  31. },
  32. },
  33. });