const AuthStepType = { ONE: 1, TWO: 2, THREE: 3, } Component({ options: { multipleSlots: true, addGlobalClass: true, }, properties: { currAuthStep: { type: Number, value: AuthStepType.ONE, }, userInfo: { type: Object, value: {}, }, isNeedGetUserInfo: { type: Boolean, value: false, }, }, data: { defaultAvatarUrl: 'https://cdn-we-retail.ym.tencent.com/miniapp/usercenter/icon-user-center-avatar@2x.png', AuthStepType, }, methods: { gotoUserEditPage() { this.triggerEvent('gotoUserEditPage') }, toLogin(e: WechatMiniprogram.CustomEvent) { this.triggerEvent('toLogin', {}) }, toSetting(e: WechatMiniprogram.CustomEvent) { this.triggerEvent('toSetting', {}) }, }, })