Bläddra i källkod

feat: add interview

ArvinQi 6 år sedan
förälder
incheckning
28c56f9ce2
3 ändrade filer med 69 tillägg och 1 borttagningar
  1. 19 0
      components/interview/interview.vue
  2. 0 1
      pages/cert/type/_id.vue
  3. 50 0
      pages/interview/index.vue

+ 19 - 0
components/interview/interview.vue

@@ -0,0 +1,19 @@
+<template>
+  <section class="interview"></section>
+</template>
+
+<script>
+export default {
+  props: [],
+  data() {
+    return {};
+  },
+  components: {},
+  computed: {},
+  mounted() {},
+  methods: {}
+};
+</script>
+
+<style scoped lang="scss">
+</style>

+ 0 - 1
pages/cert/type/_id.vue

@@ -93,7 +93,6 @@ export default {
         ? cats.data.developers.slice(0, 10)
         : [];
     const showCount = cats.data ? cats.data.count : 0;
-    console.log(showCats);
     const data = res.data;
     if (!data) {
       return {

+ 50 - 0
pages/interview/index.vue

@@ -0,0 +1,50 @@
+<template>
+  <interview></interview>
+</template>
+
+<script>
+// import { mapState } from "vuex";
+import interview from "@/components/interview/interview";
+import qs from "qs";
+
+export default {
+  layout: "opacity_header",
+  head: {
+    title: "技术面试 - 程序员客栈"
+  },
+  components: {
+    interview
+  },
+  data() {
+    return {};
+  },
+  computed: {
+    // ...mapState(["isPC"])
+  },
+  async mounted() {
+    // await this.getList();
+    // this.getVipDetail();
+  },
+  methods: {
+    async getList() {
+      let extraHeaders = {};
+      if (this.deviceType === "ios") {
+        extraHeaders = this.getSign();
+      }
+      let res = await this.$axios.$post(`/api/vip/getList`, extraHeaders);
+      if (res) {
+        this.vipList = res.data;
+      }
+    },
+    async getVipDetail() {
+      let res = await this.$axios.$post("/api/vip/getVipUserDetail");
+      // if (!res || !res.data) return
+      this.vipDetail = res && res.data ? res.data : {};
+      if (this.isCom) this.currentCom = true;
+    }
+  }
+};
+</script>
+
+<style>
+</style>