index.vue 1.7 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091
  1. <template>
  2. <div class="index-layout flex-col">
  3. <ls-header></ls-header>
  4. <main class="content-container wrapper1180 ">
  5. <nuxt />
  6. </main>
  7. <ls-footer></ls-footer>
  8. </div>
  9. </template>
  10. <script>
  11. import LsHeader from '~/components/layout/header'
  12. import LsFooter from '~/components/layout/footer'
  13. // import Category from '~/components/category'
  14. // import TalentsList from '~/components/talents-list'
  15. import Cookies from 'js-cookie'
  16. export default {
  17. components: {
  18. LsHeader,
  19. LsFooter,
  20. // Category,
  21. // TalentsList,
  22. },
  23. data() {
  24. return {
  25. // chainList: [],
  26. // cateTwoId: 0,
  27. // chainIndex: '0',
  28. // chain: '',
  29. // talentsList: [],
  30. // page: 1,
  31. }
  32. },
  33. created() {
  34. },
  35. mounted() {
  36. },
  37. updated() {
  38. },
  39. methods: {
  40. // getChainList(list) {
  41. // this.chainList = list
  42. // this.cateTwoId = list[0].pid
  43. // this.chainIndex = '0'
  44. // this.setChain()
  45. // },
  46. // changeChain(tab) {
  47. // this.chainIndex = tab.index
  48. // this.setChain()
  49. // },
  50. // setChain() {
  51. // this.chain = this.chainList[this.chainIndex].title
  52. // this.page = 1
  53. // this.getTalents()
  54. // },
  55. // changePage(current) {
  56. // this.page = current
  57. // this.getTalents()
  58. // },
  59. // async getTalents() {
  60. // const params = {
  61. // page_size: 9,
  62. // page_no: this.page,
  63. // cid: this.cateTwoId,
  64. // chain: this.chain
  65. // }
  66. // const {
  67. // code,
  68. // data,
  69. // _meta
  70. // } = await this.$get('article', {
  71. // params,
  72. // })
  73. // if (code == 1) {
  74. // this.talentsList = data
  75. // this.count = _meta.totalCount
  76. // }
  77. // },
  78. },
  79. }
  80. </script>
  81. <style lang="scss" scoped>
  82. .index-layout {
  83. min-height: 100vh;
  84. }
  85. </style>