_uuid.vue 914 B

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  1. <template>
  2. <div class="merchant-description">
  3. <div>
  4. <h5>{{description.storeName}}</h5>
  5. <p>{{description.description}}</p>
  6. </div>
  7. </div>
  8. </template>
  9. <script>
  10. export default {
  11. layout: 'main',
  12. fetch ({ store, params }) {
  13. return Promise.all([
  14. store.dispatch('shop/findStoreInfoFromUuid', params)
  15. ])
  16. },
  17. computed: {
  18. description () {
  19. return this.$store.state.shop.storeInfo.store.data
  20. }
  21. }
  22. }
  23. </script>
  24. <style scoped>
  25. .merchant-description{
  26. margin-top: .88rem;
  27. margin-bottom: .98rem;
  28. width:100%;
  29. }
  30. .merchant-description div{
  31. width:6.5rem;
  32. margin:0 auto;
  33. padding-top:.75rem;
  34. }
  35. .merchant-description div h5{
  36. text-align: center;
  37. font-size: .32rem;
  38. margin:0;
  39. }
  40. .merchant-description div p{
  41. font-size:.32rem;
  42. line-height: .4rem;0
  43. margin:0;
  44. margin-top: .46rem;
  45. }
  46. </style>