profile.vue 1.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152
  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. this.form = res.data;
  28. },
  29. set_step(step)
  30. {
  31. this.form.step=step;
  32. }
  33. },
  34. async mounted() {
  35. await this.getDetail();
  36. }
  37. }
  38. </script>
  39. <style lang="scss" scoped>
  40. .container {
  41. display: flex;
  42. flex-direction: column;
  43. width: 100%;
  44. max-width: 1100px;
  45. margin: 10px auto;
  46. background: #ffffff;
  47. border-radius: 10px;
  48. box-sizing: border-box;
  49. }
  50. </style>