index.vue 1.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950
  1. <template>
  2. <interview></interview>
  3. </template>
  4. <script>
  5. // import { mapState } from "vuex";
  6. import interview from "@/components/interview/interview";
  7. import qs from "qs";
  8. export default {
  9. layout: "opacity_header",
  10. head: {
  11. title: "技术面试 - 程序员客栈"
  12. },
  13. components: {
  14. interview
  15. },
  16. data() {
  17. return {};
  18. },
  19. computed: {
  20. // ...mapState(["isPC"])
  21. },
  22. async mounted() {
  23. // await this.getList();
  24. // this.getVipDetail();
  25. },
  26. methods: {
  27. async getList() {
  28. let extraHeaders = {};
  29. if (this.deviceType === "ios") {
  30. extraHeaders = this.getSign();
  31. }
  32. let res = await this.$axios.$post(`/api/vip/getList`, extraHeaders);
  33. if (res) {
  34. this.vipList = res.data;
  35. }
  36. },
  37. async getVipDetail() {
  38. let res = await this.$axios.$post("/api/vip/getVipUserDetail");
  39. // if (!res || !res.data) return
  40. this.vipDetail = res && res.data ? res.data : {};
  41. if (this.isCom) this.currentCom = true;
  42. }
  43. }
  44. };
  45. </script>
  46. <style>
  47. </style>