_uuid.vue 1.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455
  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. width:100%;
  27. background: url('/images/mobile/@2x/shop/store-intro-bg.png')no-repeat;
  28. background-size: cover;
  29. height: -webkit-fill-available;
  30. background-position: 0 -.86rem;
  31. }
  32. .merchant-description div{
  33. width:6.5rem;
  34. margin:0 auto;
  35. padding-top:.75rem;
  36. color: #fff;
  37. }
  38. .merchant-description div h5{
  39. text-align: center;
  40. font-size: .36rem;
  41. margin:0;
  42. }
  43. .merchant-description div p{
  44. font-size:.32rem;
  45. line-height: .4rem;
  46. margin:0;
  47. margin-top: .76rem;
  48. color: #333;
  49. padding: .35rem .25rem;
  50. border-radius: .1rem;
  51. background: url('/images/mobile/@2x/shop/store-intro-content-bg.png')no-repeat;
  52. background-color: #fff;
  53. background-size: cover;
  54. }
  55. </style>