login.ts 687 B

12345678910111213141516171819202122232425
  1. import {PopupExportComponent} from "$popup/popup-export/const";
  2. export default <LibMixins>{
  3. methods:{
  4. openLogin:function (){
  5. return this.$popup.open(PopupExportComponent.login);
  6. },
  7. openUserInfo:function (){
  8. return this.$popup.open(PopupExportComponent.personal);
  9. },
  10. openRecharge(){
  11. return this.$popup.open(PopupExportComponent.recharge);
  12. },
  13. outLogin:function () {
  14. return this.$confirm({
  15. title:'您确定要退出登录吗',
  16. confirm:()=>{
  17. this.$store.dispatch('outLogin');
  18. }
  19. });
  20. }
  21. }
  22. }