index.vue 1.6 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465
  1. <template>
  2. <section class="container">
  3. <expericeBanner :bannerSrc="bannerSrc"></expericeBanner>
  4. <!-- For what to start -->
  5. <expericeIdea></expericeIdea>
  6. <!-- For what to start -->
  7. <!-- New retail model start -->
  8. <expericeNewModel></expericeNewModel>
  9. <!-- New retail model end -->
  10. <!-- For what service start -->
  11. <expericeService></expericeService>
  12. <!-- For what service end -->
  13. <!-- For what design start -->
  14. <expericeDesign></expericeDesign>
  15. <!-- For what design end -->
  16. </section>
  17. </template>
  18. <script>
  19. import axios from 'axios'
  20. import expericeDesign from '~/components/experice/expericeDesign'
  21. import expericeBanner from '~/components/experice/expericeBanner'
  22. import expericeIdea from '~/components/experice/expericeIdea'
  23. import expericeNewModel from '~/components/experice/expericeNewModel'
  24. import expericeService from '~/components/experice/expericeService'
  25. export default {
  26. data (){
  27. return {
  28. bannerSrc:'http://img.visney.cn/img/nuxtPc/experice/banner.png',
  29. }
  30. },
  31. head () {
  32. return {
  33. title:this.metaData.navigationTitle,
  34. meta: [
  35. {name:'keywords',hid: 'keywords',content:`${this.metaData.navigationKeyword}`},
  36. {name:'description',hid:'description',content:`${this.metaData.navigationDescription}`}
  37. ]
  38. }
  39. },
  40. async asyncData({params,store}){
  41. //head信息
  42. let metaData = await axios(`${store.state.wordpressAPI}/NavigationMeta/get/3`);
  43. return {
  44. metaData: metaData.data,
  45. }
  46. },
  47. components: {
  48. expericeBanner,
  49. expericeIdea,
  50. expericeNewModel,
  51. expericeService,
  52. expericeDesign
  53. }
  54. }
  55. </script>
  56. <style scoped>
  57. </style>