storeInfo.vue 3.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168
  1. <template>
  2. <view class="center">
  3. <view class="store-info flex">
  4. <view class="store-top flex">
  5. <image class="simage" src="" mode=""></image>
  6. <view class="stop-main">
  7. <view class="stop-title">巴黎莎士比亚书店</view>
  8. <view class="stop-address">
  9. <image class="mrt-image" src="../../static/index/index10.png" mode=""></image>
  10. <view class="mrt-font">距离0.3KM</view>
  11. </view>
  12. </view>
  13. </view>
  14. </view>
  15. <view class="store-item">
  16. <image class="store-image1" src="../../static/img/store2.png" mode=""></image>
  17. <view class="store-font">营业时间:10:00-21:00</view>
  18. </view>
  19. <view class="store-item">
  20. <image class="store-image2" src="../../static/img/store3.png" mode=""></image>
  21. <view class="store-font">商家电话:14255212336</view>
  22. </view>
  23. <view class="store-item">
  24. <image class="store-image3" src="../../static/img/store1.png" mode=""></image>
  25. <view class="store-font">门店地址:椒江区市府大道200号</view>
  26. </view>
  27. <view class="store-main">
  28. <view class="smain-title">门头照片</view>
  29. <scroll-view class="scroll-box flex" @scroll="scroll" scroll-x="true" :scroll-with-animation="true" scroll-left="10px">
  30. <view class="scroll-item" v-for="(item,index) in 4" :key="index">
  31. <image class="scroll-image" src="" mode="heightFix"></image>
  32. </view>
  33. </scroll-view>
  34. </view>
  35. <view class="store-main">
  36. <view class="smain-title">店内图片</view>
  37. <scroll-view class="scroll-box flex" @scroll="scroll" scroll-x="true" :scroll-with-animation="true" scroll-left="10px">
  38. <view class="scroll-item" v-for="(item,index) in 4" :key="index">
  39. <image class="scroll-image" src="" mode="heightFix"></image>
  40. </view>
  41. </scroll-view>
  42. </view>
  43. </view>
  44. </template>
  45. <script>
  46. export default {
  47. data() {
  48. return {};
  49. },
  50. methods: {
  51. scroll(e) {
  52. console.log(e,"123456");
  53. }
  54. }
  55. };
  56. </script>
  57. <style lang="less">
  58. .center,
  59. page {
  60. background: #f8f8f8;
  61. height: 100%;
  62. }
  63. .store-info {
  64. background: #ffffff;
  65. .store-top {
  66. padding: 40rpx 20rpx;
  67. justify-content: flex-start;
  68. .simage {
  69. width: 130rpx;
  70. height: 130rpx;
  71. background: #f44939;
  72. }
  73. .stop-main {
  74. height: 130rpx;
  75. padding: 6rpx 0;
  76. margin-left: 20rpx;
  77. display: flex;
  78. flex-direction: column;
  79. justify-content: space-between;
  80. align-items: flex-start;
  81. .stop-title {
  82. font-size: 36rpx;
  83. font-family: PingFang SC;
  84. font-weight: 500;
  85. color: #000000;
  86. }
  87. .stop-address {
  88. display: flex;
  89. justify-content: flex-end;
  90. align-items: center;
  91. .mrt-image {
  92. width: 20rpx;
  93. height: 28rpx;
  94. }
  95. .mrt-font {
  96. margin-left: 8rpx;
  97. font-size: 22rpx;
  98. font-family: PingFang SC;
  99. font-weight: 500;
  100. color: #666666;
  101. }
  102. }
  103. }
  104. }
  105. }
  106. .store-item {
  107. background: #ffffff;
  108. display: flex;
  109. justify-content: flex-start;
  110. align-items: center;
  111. padding: 30rpx 30rpx 30rpx 44rpx;
  112. .store-image1 {
  113. width: 36rpx;
  114. height: 36rpx;
  115. }
  116. .store-image2 {
  117. margin: 0 1rpx;
  118. width: 34rpx;
  119. height: 34rpx;
  120. }
  121. .store-image3 {
  122. margin: 0 7rpx;
  123. width: 22rpx;
  124. height: 28rpx;
  125. }
  126. .store-font {
  127. margin-left: 22rpx;
  128. font-size: 26rpx;
  129. font-family: PingFang SC;
  130. font-weight: 500;
  131. color: #2d2d2d;
  132. }
  133. }
  134. .store-main {
  135. margin-top: 16rpx;
  136. background: #FFFFFF;
  137. padding: 30rpx 42rpx 40rpx;
  138. .smain-title {
  139. font-size: 30rpx;
  140. font-family: PingFang SC;
  141. font-weight: 500;
  142. color: #464646;
  143. }
  144. }
  145. .scroll-box {
  146. white-space: nowrap;
  147. margin-top: 30rpx;
  148. height: 240rpx;
  149. .scroll-item:first-child {
  150. margin-left: 0;
  151. }
  152. .scroll-item {
  153. margin-left: 20rpx;
  154. display: inline-block;
  155. height: 240rpx;
  156. width: 240rpx;
  157. }
  158. .scroll-image {
  159. height: 240rpx;
  160. width: 240rpx;
  161. background: #5AC725;
  162. }
  163. }
  164. </style>