detail.vue 3.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179
  1. <template>
  2. <view class="detail">
  3. <!-- 轮播图 -->
  4. <view class="carousel-map">
  5. <u-swiper :list="list3" previousMargin="0" nextMargin="100" circular :autoplay="false" bgColor="#ffffff" />
  6. <view class="carousel-item">
  7. <view class="mark">
  8. <view class="mark-item">5.00分</view>
  9. <u-rate :count="count" v-model="value" active-color="#fff" inactive-color="#fff" :size="12" />
  10. </view>
  11. <view class="good-item">近期有6266个购买者给了给好评</view>
  12. </view>
  13. </view>
  14. <!-- 商家信息 -->
  15. <view class="merchant-info">
  16. <view class="info-title">
  17. <view>养车工场店(襄阳五中店)</view>
  18. <text class="info-mark">1.5w+单</text>
  19. </view>
  20. <view class="info-tag">商家信息</view>
  21. <view class="info-item">
  22. <view class="info-text">
  23. <view>营业时间:9:00 ~ 24:00</view>
  24. <view>电话号码:18285564342</view>
  25. <view>贵州省贵阳市榕江县栽麻乡小利村三组</view>
  26. <view class="distance">距离您1.84km</view>
  27. </view>
  28. <view class="info-icon">
  29. <view class="info-map">
  30. <u-icon name="map" size="25"></u-icon>
  31. <view>导航</view>
  32. </view>
  33. <view class="info-map">
  34. <u-icon name="phone" size="25"></u-icon>
  35. <view>电话</view>
  36. </view>
  37. </view>
  38. </view>
  39. </view>
  40. <service />
  41. <service />
  42. <service />
  43. <service />
  44. </view>
  45. </template>
  46. <script>
  47. import service from '@/components/service'
  48. export default {
  49. components: {
  50. service,
  51. },
  52. data() {
  53. return {
  54. count: 5,
  55. value: 3,
  56. list3: [
  57. 'https://cdn.uviewui.com/uview/swiper/swiper3.png',
  58. 'https://cdn.uviewui.com/uview/swiper/swiper2.png',
  59. 'https://cdn.uviewui.com/uview/swiper/swiper1.png',
  60. ],
  61. list1: [
  62. { name: '全部' },
  63. { name: '养车' },
  64. { name: '维修' },
  65. { name: '改装' },
  66. { name: '补胎' },
  67. { name: '补胎' },
  68. { name: '其他' },
  69. ],
  70. };
  71. },
  72. methods: {
  73. click(item) {
  74. console.log('item', item);
  75. },
  76. },
  77. };
  78. </script>
  79. <style lang="scss" scoped>
  80. .detail {
  81. min-height: 100vh;
  82. background-color: #efefef;
  83. }
  84. // 轮播图
  85. .carousel-map {
  86. background-color: #fff;
  87. padding: 0 20rpx;
  88. .carousel-item {
  89. height: 90rpx;
  90. display: flex;
  91. background-color: #fff7e0;
  92. border-radius: 0 0 10rpx 10rpx;
  93. .mark {
  94. background-color: #ff4b04;
  95. color: #fff;
  96. padding: 20rpx;
  97. border-radius: 0 0 0 10rpx;
  98. box-sizing: border-box;
  99. .mark-item {
  100. text-align: center;
  101. }
  102. }
  103. .good-item {
  104. font-size: 24rpx;
  105. color: #a39c85;
  106. line-height: 90rpx;
  107. margin-left: 40rpx;
  108. }
  109. }
  110. }
  111. // 商家信息
  112. .merchant-info {
  113. padding: 20rpx;
  114. background-color: #fff;
  115. margin-bottom: 20rpx;
  116. .info-title {
  117. display: flex;
  118. justify-content: center;
  119. font-size: 40rpx;
  120. font-weight: bold;
  121. .info-mark {
  122. font-size: 12px;
  123. font-weight: normal;
  124. color: #999;
  125. margin: 20rpx 0 20rpx 30rpx;
  126. }
  127. }
  128. .info-tag {
  129. width: 160rpx;
  130. padding: 10rpx;
  131. text-align: center;
  132. border: 1px solid #5992bb;
  133. color: #5992bb;
  134. margin-bottom: 10rpx;
  135. }
  136. .info-item {
  137. display: flex;
  138. justify-content: space-between;
  139. .info-text {
  140. font-size: 30rpx;
  141. line-height: 58rpx;
  142. color: #212020;
  143. font-weight: 600;
  144. .distance {
  145. font-size: 26rpx;
  146. color: #555252;
  147. font-weight: normal;
  148. }
  149. }
  150. .info-icon {
  151. display: flex;
  152. }
  153. .info-map {
  154. padding: 10rpx;
  155. font-size: 28rpx;
  156. margin-top: 120rpx;
  157. }
  158. }
  159. }
  160. </style>