Showroom.vue 951 B

1234567891011121314151617181920212223242526272829303132333435363738
  1. <template>
  2. <article class="showroom">
  3. <header>
  4. <h1 v-html="item.name" />
  5. </header>
  6. <section class="images">
  7. <figure v-html="item.field_visuels"></figure>
  8. </section>
  9. <section class="content">
  10. <address v-html="item.field_public_address" />
  11. <div class="phone" v-html="item.field_public_phone" />
  12. <a class="email" :href="'mailto:'+item.field_public_email" v-html="item.field_public_email" />
  13. <div class="website" v-html="item.field_website" />
  14. </section>
  15. </article>
  16. </template>
  17. <script>
  18. // import JSONAPI from 'vuejs/api/json-axios'
  19. import router from 'vuejs/route'
  20. let basePath = drupalSettings.path.baseUrl + drupalSettings.path.pathPrefix;
  21. export default {
  22. name: "Showroom",
  23. router,
  24. props: ['item'],
  25. // data(){
  26. // return {
  27. // alias: this.item.view_node.replace(/^.?\/showroom\//g, '')
  28. // }
  29. // },
  30. // methods:{}
  31. }
  32. </script>
  33. <style lang="scss" scoped>
  34. </style>