Advertisement
Guest User

Untitled

a guest
Sep 19th, 2019
185
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.60 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" id="name" v-model="data.name" class="fadeIn first" name="name" placeholder="Name">
  15. <input type="text" id="name" v-model="data.email" class="fadeIn first" name="name" placeholder="Email">
  16. <input type="password" id="password" v-model="data.password" class="fadeIn third" name="login" placeholder="Password">
  17. <input type="password" id="password" v-model="data.password_confirmation" class="fadeIn third" name="login" placeholder="Confirm password">
  18. <input type="button" @click="registerNow" class="fadeIn fourth" value="Register now">
  19. </form>
  20.  
  21. <!-- Remind Passowrd -->
  22. <div id="formFooter">
  23. <router-link to="/">Login</router-link> |
  24. </div>
  25.  
  26. </div>
  27. </div>
  28. </div>
  29. </template>
  30.  
  31. <script lang="ts">
  32. const img = require('@/assets/logo.png');
  33. import { Component, Vue } from 'vue-property-decorator';
  34. import axios from 'axios';
  35. import authTypes from '../store/types/authTypes';
  36. import { Action } from 'vuex-class';
  37.  
  38. @Component({
  39. name: 'Register',
  40. data() {
  41. return {
  42. img,
  43. data : {
  44. name: '',
  45. email: '',
  46. password: '',
  47. password_confirmation: ''
  48. }
  49. }
  50. },
  51.  
  52. })
  53. export default class Home extends Vue {
  54. registerNow() {
  55. this.registerUser(this.$data.data);
  56. }
  57. @Action(`authModule/${authTypes.actions.REGISTERUSER}`) registerUser: any;
  58. }
  59. </script>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement