Advertisement
Guest User

Untitled

a guest
Sep 19th, 2019
208
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.33 KB | None | 0 0
  1. <template>
  2. <div class="home">
  3. <div class="wrapper fadeInDown">
  4. <div id="formContent">
  5. <!-- Tabs Titles -->
  6.  
  7. <!-- Icon -->
  8. <div class="fadeIn first">
  9. <img :src="img" id="icon" alt="User Icon" />
  10. </div>
  11.  
  12. <!-- Login Form -->
  13. <form>
  14. <input type="text" v-model="data.email" id="login" class="fadeIn second" name="login" placeholder="login">
  15. <input type="password" v-model="data.password" id="password" class="fadeIn third" name="login" placeholder="password">
  16. <input type="button" @click="login" class="fadeIn fourth" value="Log In">
  17. </form>
  18.  
  19. <!-- Remind Passowrd -->
  20. <div id="formFooter">
  21. <a class="underlineHover" href="#">Forgot Password? Good! :v</a>
  22. </div>
  23.  
  24. </div>
  25. </div>
  26. </div>
  27. </template>
  28.  
  29. <script lang="ts">
  30. import { Component, Vue } from 'vue-property-decorator';
  31. import { Action } from 'vuex-class';
  32. import authTypes from '../store/types/authTypes';
  33. const img = require('@/assets/logo.png');
  34. @Component({
  35. name: 'Login',
  36. data() {
  37. return {
  38. img,
  39. data: {
  40. email: '',
  41. password: ''
  42. }
  43. }
  44. },
  45. components: {
  46. },
  47. })
  48. export default class Login extends Vue {
  49. public login() {
  50. // console.log(this.$data.data);
  51. this.loginUser(this.$data.data);
  52. }
  53. @Action(`authModule/${authTypes.actions.LOGINUSER}`) loginUser: any;
  54. }
  55. </script>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement