onlineBooking.vue 5.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238
  1. <template>
  2. <view class="box">
  3. <view class="top">
  4. <view class="shopTop">
  5. <swiper class="swiper" circular :autoplay="false" :interval="interval"
  6. :duration="duration">
  7. <swiper-item>
  8. <view class="swiper-item">
  9. <img mode="aspectFit" src="http://phone.66km.cn:8088/thFiles/C678448A-C874-4B42-9EAE-4F8F21D71D27.jpg" alt="">
  10. </view>
  11. </swiper-item>
  12. <swiper-item>
  13. <view class="swiper-item">
  14. <img mode="aspectFit" src="http://dmsphoto.66km.com.cn/thFiles/A9157023-4939-48B7-BB49-D9D8113EF953.jpg" alt="">
  15. </view>
  16. </swiper-item>
  17. <swiper-item>
  18. <view class="swiper-item">
  19. <img mode="aspectFit" src="http://dmsphoto.66km.com.cn/thFiles/1057BA84-E59D-47B7-9F66-73E3491A443E.jpg" alt="">
  20. </view>
  21. </swiper-item>
  22. </swiper>
  23. </view>
  24. <!-- 门店详情 -->
  25. <view class="newshopNames">
  26. <view class="newshopDstop">
  27. <view class="newshopDname">连锁一号</view>
  28. <view class="newshopDtime">
  29. 营业时间: <span>08:00 - 17:00</span>
  30. </view>
  31. <view class="newshopDbqbox" >
  32. <view class="newshopDbqline" v-for="(item,index) in 5">大众</view>
  33. </view>
  34. </view>
  35. <view class="newshopDadressBpx">
  36. <view class="newshopDaleft">
  37. <view class="newshopDaleftTop">
  38. <img src="../../static/timg/icon_coordinate@2x.png" alt="" class="shopaddressIcon">
  39. <span class="shopDdistance" v-if="Number(distance)>1">距离{{distance}}km</span>
  40. <span class="shopDdistance" v-else-if="Number(distance)">距离{{distance*1000}}m</span>
  41. <span class="shopDdistance" v-else>距离--km</span>
  42. </view>
  43. <view class="newshopDadressName">金智源</view>
  44. </view>
  45. <view class="newshopDaright">
  46. <view class="newshopDrline" @click="goLocation()">
  47. <img src="../../static/timg/icon_map@2x.png" alt="" class="newshopDrlineimg">
  48. <view class="newshopDrlineTxt">地图</view>
  49. </view>
  50. <view class="newshopDRsx"></view>
  51. <view class="newshopDrline" @click="phones()">
  52. <img src="../../static/timg/icon_phone@2x.png" alt="" class="newshopDrlineimg">
  53. <view class="newshopDrlineTxt">电话</view>
  54. </view>
  55. </view>
  56. </view>
  57. </view>
  58. </view>
  59. <!-- 预约详情-->
  60. <view class="yuyue-container">
  61. <view class="yuyueLeft">
  62. <view class="yuyueleftLine" v-for="(item,index) in 6" @click="listItemWxInfo(item,index)" :class="{leftActive:leftIndex==index}">汽车</view>
  63. </view>
  64. <view class="yuyueRight">
  65. <view class="yuyueRightTitle">维修</view>
  66. <view class="yrTop">
  67. <view class="ItemName">轮毂去污护理(4支)</view>
  68. <image src="../../static/timg/ickno.png" mode="" class="yrTopImg"></image>
  69. <image src="../../static/timg/icon_checked@2x.png" mode="" v-if="false" class="yrTopImg"></image>
  70. </view>
  71. </view>
  72. </view>
  73. </view>
  74. </template>
  75. <script>
  76. export default {
  77. data() {
  78. return {
  79. interval:2000,
  80. distance:0.05,
  81. leftIndex:0,
  82. }
  83. },
  84. methods: {
  85. goLocation(){
  86. },
  87. phones(){
  88. },
  89. listItemWxInfo(item,index){
  90. this.leftIndex=index
  91. }
  92. }
  93. }
  94. </script>
  95. <style scoped lang="less">
  96. .box{
  97. background: #F4F5F7;
  98. min-height: 100vh;
  99. }
  100. .swiper-item img{
  101. width: 750rpx;
  102. height: 500rpx;
  103. }
  104. .swiper-item{
  105. height: 500rpx;
  106. }
  107. .swiper{
  108. height: 500rpx;
  109. }
  110. .newshopNames{
  111. width: 702rpx;
  112. margin-left: 24rpx;
  113. background: #FFFFFF;
  114. border-radius: 10rpx;
  115. margin-top: -60rpx;
  116. position: relative;
  117. }
  118. .newshopDname{
  119. color: #333333;font-size: 30rpx;
  120. padding-left: 20rpx;
  121. padding-top: 23rpx;
  122. font-weight: 500;
  123. }
  124. .newshopDtime{
  125. color: #999999;
  126. font-size: 24rpx;
  127. padding-left: 20rpx;
  128. padding-top: 10rpx;
  129. font-weight: 400;
  130. }
  131. .newshopDstop{
  132. padding-bottom: 21rpx;
  133. border-bottom: 1px solid #EEEEEE;
  134. }
  135. .newshopDetailtop{
  136. margin-bottom: 20rpx;
  137. }
  138. .newshopDbqbox{
  139. display: flex;
  140. flex-wrap: wrap;
  141. padding-left: 20rpx;
  142. }
  143. .newshopDbqline{
  144. line-height: 30rpx;
  145. height: 30rpx;
  146. border-radius: 4rpx;
  147. border: 1px solid #FF7D30;
  148. color: #FF7D30;
  149. font-size: 22rpx;
  150. padding: 0 8rpx;
  151. margin-right: 16rpx;
  152. margin-top: 10rpx;
  153. }
  154. .newshopDbqbox{
  155. padding-top: 5rpx;
  156. }
  157. .shopaddressIcon{
  158. width: 22rpx;
  159. height: 30rpx;
  160. }
  161. .shopDdistance{
  162. color: #3C3C3C;font-size: 24rpx;line-height: 30rpx;padding-left: 16rpx;
  163. font-weight: 500;
  164. }
  165. .newshopDaleftTop{
  166. display: flex;
  167. }
  168. .newshopDadressBpx{
  169. display: flex;
  170. padding: 30rpx 20rpx;
  171. background: url(http://dmsphoto.66km.com.cn/thFiles/010748B7-5678-46C3-941B-60B3CD4D10CB.png) no-repeat;
  172. background-size: 100% 100%;
  173. }
  174. .newshopDadressName{
  175. color: #999999;padding-top: 16rpx;
  176. font-size: 24rpx;line-height: 24rpx;
  177. width: 480rpx;font-weight: 400;
  178. }
  179. .newshopDrlineimg{
  180. width: 44rpx;
  181. height: 44rpx;
  182. }
  183. .newshopDrlineTxt{
  184. color: #999999;
  185. font-size: 22rpx;
  186. text-align: center;
  187. padding-top: 7rpx;
  188. font-weight: 400;
  189. }
  190. .newright-item .yuyue-item{
  191. padding-top: 20rpx;
  192. }
  193. .newshopDRsx{
  194. width: 2rpx;
  195. height: 71rpx;
  196. background: #EEEEEE;
  197. }
  198. .newshopDaright{
  199. display: flex;
  200. justify-content: space-between;
  201. width: 150rpx;
  202. padding-left: 20rpx;
  203. }
  204. .yrTopImg{
  205. width: 36rpx;
  206. height: 36rpx;
  207. }
  208. .yuyue-container{
  209. display: flex;
  210. margin-top: 20rpx;
  211. }
  212. .yuyueLeft{
  213. background: #F5F5F5;
  214. width: 154rpx;
  215. }
  216. .yuyueRight{
  217. width: 596rpx;
  218. background: #FFFFFF;
  219. }
  220. .yuyueleftLine{
  221. font-size: 26rpx;
  222. padding:30rpx 24rpx;
  223. color: #3C3C3C;
  224. font-weight: 400;
  225. }
  226. .leftActive{
  227. background: #FFFFFF;
  228. font-weight: 500;
  229. }
  230. </style>