profile.vue 1.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253
  1. <template>
  2. <div class="container">
  3. <resume_one v-if="form.step==1 || form.step==5" />
  4. <resume_two v-if="form.step==2" />
  5. <resume_three v-if="form.step==3" />
  6. <resume_fourth v-if="form.step==4" />
  7. </div>
  8. </template>
  9. <script>
  10. import resume_one from "./add";
  11. import resume_two from "./resume_improve";
  12. import resume_three from "./ready_interview";
  13. import resume_fourth from "./start_interview";
  14. export default {
  15. name: "profile",
  16. components: {
  17. resume_one,resume_two,resume_three,resume_fourth
  18. },
  19. data() {
  20. return {
  21. form: {},
  22. };
  23. },
  24. methods: {
  25. async getDetail() {
  26. let res = await this.$axios.$post(`/uapi/cert/info`);
  27. res.data.step = 2
  28. this.form = res.data;
  29. },
  30. set_step(step)
  31. {
  32. this.form.step=step;
  33. }
  34. },
  35. async mounted() {
  36. await this.getDetail();
  37. }
  38. }
  39. </script>
  40. <style lang="scss" scoped>
  41. .container {
  42. display: flex;
  43. flex-direction: column;
  44. width: 100%;
  45. max-width: 1100px;
  46. margin: 10px auto;
  47. background: #ffffff;
  48. border-radius: 10px;
  49. box-sizing: border-box;
  50. }
  51. </style>