StoreHeader.vue 1.7 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273
  1. <template>
  2. <div class="store-share-header">
  3. <div class="wrap">
  4. <div class="img">
  5. <img :src="storeInfo.logoUrl" alt="">
  6. </div>
  7. <div class="title">
  8. <h1>{{storeInfo.storeName}}</h1>
  9. <p>{{storeInfo.description}}</p>
  10. </div>
  11. </div>
  12. </div>
  13. </template>
  14. <script>
  15. export default {
  16. computed: {
  17. storeInfo () {
  18. return this.$store.state.shop.storeInfo.store.data
  19. }
  20. }
  21. }
  22. </script>
  23. <style lang="scss" scoped>
  24. .store-share-header {
  25. height: 1.9rem;
  26. background: #272a32;
  27. padding-top: .18rem;
  28. .wrap {
  29. height: 1.72rem;
  30. width: 7.16rem;
  31. margin: 0 auto;
  32. background: url('/images/mobile/@2x/shareStore/background@2x.png') no-repeat;
  33. background-size: cover;
  34. padding: .2rem 0 0 .4rem;
  35. > div {
  36. display: inline-block;
  37. vertical-align: middle;
  38. &.img {
  39. width: 1.24rem;
  40. height: 1.24rem;
  41. text-align: center;
  42. line-height: 1.24rem;
  43. border-radius: 2px;
  44. background: #fff;
  45. img {
  46. max-width: 1.24rem;
  47. max-height: 1.24rem;
  48. }
  49. }
  50. &.title {
  51. margin-left: .44rem;
  52. width: 5rem;
  53. h1 {
  54. font-size: .36rem;
  55. color: #662d00;
  56. overflow: hidden;
  57. text-overflow: ellipsis;
  58. white-space: nowrap;
  59. width: 4.5rem;
  60. }
  61. p {
  62. font-size: .21rem;
  63. color: #9c4500;
  64. margin-top: .2rem;
  65. line-height: .32rem;
  66. overflow: hidden;
  67. max-height: .64rem;
  68. }
  69. }
  70. }
  71. }
  72. }
  73. </style>