templateA.vue 827 B

12345678910111213141516171819202122232425262728293031323334353637383940414243
  1. <template>
  2. <div>
  3. <mtaheader></mtaheader>
  4. <div class="nuxt-box">
  5. <Nuxt />
  6. </div>
  7. <mtafooter :requestData="linksData"></mtafooter>
  8. </div>
  9. </template>
  10. <script>
  11. import Mtafooter from '~/components/footer.vue'
  12. import Mtaheader from '~/components/header.vue'
  13. export default {
  14. name: 'mtaFooter',
  15. props: {
  16. },
  17. components: {
  18. Mtafooter,
  19. Mtaheader
  20. },
  21. data() {
  22. return {
  23. linksData: []
  24. }
  25. },
  26. watch: {},
  27. methods: {
  28. getLinksData(){
  29. this.$axios.post('/home/links/list').then(res=>{
  30. this.linksData = res.data.data.data
  31. })
  32. },
  33. },
  34. created() {
  35. this.getLinksData()
  36. },
  37. }
  38. </script>
  39. <style lang="scss" scoped>
  40. .nuxt-box:not(.client-index-page){width: 100%;margin-top: 80px;}
  41. </style>