index.vue 12 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468
  1. <template>
  2. <view class="detail">
  3. <!-- 轮播图 -->
  4. <view class="carousel-map">
  5. <u-swiper
  6. :list="list3"
  7. previousMargin="0"
  8. nextMargin="100"
  9. circular
  10. :autoplay="false"
  11. bgColor="#ffffff"
  12. />
  13. <view class="carousel-item">
  14. <view class="mark">
  15. <view class="mark-item">5.00分</view>
  16. <u-rate
  17. :count="count"
  18. v-model="value"
  19. active-color="#fff"
  20. inactive-color="#fff"
  21. :size="12"
  22. />
  23. </view>
  24. <view class="good-item">近期有6266个购买者给了给好评</view>
  25. </view>
  26. </view>
  27. <!-- 商家信息 -->
  28. <view class="merchant-info">
  29. <view class="info-title">
  30. <view>养车工场店(襄阳五中店)</view>
  31. <text class="info-mark">1.5w+单</text>
  32. </view>
  33. <view class="info-tag">商家信息</view>
  34. <view class="info-item">
  35. <view class="info-text">
  36. <view>营业时间:9:00 ~ 24:00</view>
  37. <view>电话号码:18285564342</view>
  38. <view>贵州省贵阳市榕江县栽麻乡小利村三组</view>
  39. <view class="distance">距离您1.84km</view>
  40. </view>
  41. <view class="info-icon">
  42. <view class="info-map">
  43. <u-icon name="map" size="25"></u-icon>
  44. <view>导航</view>
  45. </view>
  46. <view class="info-map">
  47. <u-icon name="phone" size="25"></u-icon>
  48. <view>电话</view>
  49. </view>
  50. </view>
  51. </view>
  52. </view>
  53. <!-- 分类 -->
  54. <view class="sort">
  55. <u-tabs
  56. :list="list1"
  57. @click="click"
  58. lineWidth="30"
  59. lineColor="#5992bb"
  60. :activeStyle="{
  61. color: '#5992bb',
  62. fontWeight: 'bold',
  63. transform: 'scale(1.05)',
  64. }"
  65. :inactiveStyle="{
  66. color: '#000',
  67. transform: 'scale(1)',
  68. }"
  69. itemStyle="padding-left: 15px; padding-right: 15px; height: 40px;"
  70. />
  71. <view class="list" @click="$Router.push('/pages/business/service/index')">
  72. <Image src="https://cdn.uviewui.com/uview/album/1.jpg"></Image>
  73. <view>
  74. <view class="item-text"
  75. >【养车】标题标题标题标题标题标题标题标题……</view
  76. >
  77. <view class="item-flex">
  78. <view class="star">
  79. <u-rate :count="count" v-model="value" :size="14" />
  80. <text class="line">|</text>
  81. <text class="points">4.93分</text>
  82. </view>
  83. <view>989单</view>
  84. </view>
  85. <view class="list-item">
  86. <view>
  87. <view class="price"
  88. >券后价
  89. <text class="price-item">¥</text>
  90. <text class="price-count">19</text>
  91. </view>
  92. <view class="gate-rate">
  93. <text>门市价</text>
  94. <text class="gate-rate-item">¥30</text>
  95. </view>
  96. </view>
  97. <view class="appoint">
  98. <text class="appoint-item">预约</text>
  99. <text class="Buy">购买</text>
  100. </view>
  101. </view>
  102. </view>
  103. </view>
  104. <view class="list">
  105. <Image src="https://cdn.uviewui.com/uview/album/8.jpg"></Image>
  106. <view>
  107. <view class="item-text"
  108. >【养车】标题标题标题标题标题标题标题标题……</view
  109. >
  110. <view class="item-flex">
  111. <view class="star">
  112. <u-rate :count="count" v-model="value" :size="14" />
  113. <text class="line">|</text>
  114. <text class="points">4.93分</text>
  115. </view>
  116. <view>989单</view>
  117. </view>
  118. <view class="list-item">
  119. <view>
  120. <view class="price"
  121. >券后价
  122. <text class="price-item">¥</text>
  123. <text class="price-count">19</text>
  124. </view>
  125. <view class="gate-rate">
  126. <text>门市价</text>
  127. <text class="gate-rate-item">¥30</text>
  128. </view>
  129. </view>
  130. <view class="appoint">
  131. <text class="appoint-item">预约</text>
  132. <text class="Buy">购买</text>
  133. </view>
  134. </view>
  135. </view>
  136. </view>
  137. <view class="list">
  138. <Image src="https://cdn.uviewui.com/uview/album/2.jpg"></Image>
  139. <view>
  140. <view class="item-text"
  141. >【养车】标题标题标题标题标题标题标题标题……</view
  142. >
  143. <view class="item-flex">
  144. <view class="star">
  145. <u-rate :count="count" v-model="value" :size="14" />
  146. <text class="line">|</text>
  147. <text class="points">4.93分</text>
  148. </view>
  149. <view>989单</view>
  150. </view>
  151. <view class="list-item">
  152. <view>
  153. <view class="price"
  154. >券后价
  155. <text class="price-item">¥</text>
  156. <text class="price-count">19</text>
  157. </view>
  158. <view class="gate-rate">
  159. <text>门市价</text>
  160. <text class="gate-rate-item">¥30</text>
  161. </view>
  162. </view>
  163. <view class="appoint">
  164. <text class="appoint-item">预约</text>
  165. <text class="Buy">购买</text>
  166. </view>
  167. </view>
  168. </view>
  169. </view>
  170. <view class="list">
  171. <Image src="https://cdn.uviewui.com/uview/album/4.jpg"></Image>
  172. <view>
  173. <view class="item-text"
  174. >【养车】标题标题标题标题标题标题标题标题……</view
  175. >
  176. <view class="item-flex">
  177. <view class="star">
  178. <u-rate :count="count" v-model="value" :size="14" />
  179. <text class="line">|</text>
  180. <text class="points">4.93分</text>
  181. </view>
  182. <view>989单</view>
  183. </view>
  184. <view class="list-item">
  185. <view>
  186. <view class="price"
  187. >券后价
  188. <text class="price-item">¥</text>
  189. <text class="price-count">19</text>
  190. </view>
  191. <view class="gate-rate">
  192. <text>门市价</text>
  193. <text class="gate-rate-item">¥30</text>
  194. </view>
  195. </view>
  196. <view class="appoint">
  197. <text class="appoint-item">预约</text>
  198. <text class="Buy">购买</text>
  199. </view>
  200. </view>
  201. </view>
  202. </view>
  203. <view class="list">
  204. <Image src="https://cdn.uviewui.com/uview/album/6.jpg"></Image>
  205. <view>
  206. <view class="item-text"
  207. >【养车】标题标题标题标题标题标题标题标题……</view
  208. >
  209. <view class="item-flex">
  210. <view class="star">
  211. <u-rate :count="count" v-model="value" :size="14" />
  212. <text class="line">|</text>
  213. <text class="points">4.93分</text>
  214. </view>
  215. <view>989单</view>
  216. </view>
  217. <view class="list-item">
  218. <view>
  219. <view class="price"
  220. >券后价
  221. <text class="price-item">¥</text>
  222. <text class="price-count">19</text>
  223. </view>
  224. <view class="gate-rate">
  225. <text>门市价</text>
  226. <text class="gate-rate-item">¥30</text>
  227. </view>
  228. </view>
  229. <view class="appoint">
  230. <text class="appoint-item">预约</text>
  231. <text class="Buy">购买</text>
  232. </view>
  233. </view>
  234. </view>
  235. </view>
  236. </view>
  237. </view>
  238. </template>
  239. <script>
  240. export default {
  241. data() {
  242. return {
  243. count: 5,
  244. value: 3,
  245. list3: [
  246. 'https://cdn.uviewui.com/uview/swiper/swiper3.png',
  247. 'https://cdn.uviewui.com/uview/swiper/swiper2.png',
  248. 'https://cdn.uviewui.com/uview/swiper/swiper1.png',
  249. ],
  250. list1: [
  251. { name: '全部' },
  252. { name: '养车' },
  253. { name: '维修' },
  254. { name: '改装' },
  255. { name: '补胎' },
  256. { name: '补胎' },
  257. { name: '其他' },
  258. ],
  259. };
  260. },
  261. methods: {
  262. click(item) {
  263. console.log('item', item);
  264. },
  265. },
  266. };
  267. </script>
  268. <style lang="scss" scoped>
  269. .detail {
  270. min-height: 100vh;
  271. background-color: #efefef;
  272. }
  273. // 轮播图
  274. .carousel-map {
  275. background-color: #fff;
  276. padding: 0 20rpx;
  277. .carousel-item {
  278. height: 90rpx;
  279. display: flex;
  280. background-color: #fff7e0;
  281. border-radius: 0 0 10rpx 10rpx;
  282. .mark {
  283. background-color: #ff4b04;
  284. color: #fff;
  285. padding: 20rpx;
  286. border-radius: 0 0 0 10rpx;
  287. box-sizing: border-box;
  288. .mark-item {
  289. text-align: center;
  290. }
  291. }
  292. .good-item {
  293. font-size: 24rpx;
  294. color: #a39c85;
  295. line-height: 90rpx;
  296. margin-left: 40rpx;
  297. }
  298. }
  299. }
  300. // 商家信息
  301. .merchant-info {
  302. padding: 20rpx;
  303. background-color: #fff;
  304. margin-bottom: 20rpx;
  305. .info-title {
  306. display: flex;
  307. justify-content: center;
  308. font-size: 40rpx;
  309. font-weight: bold;
  310. .info-mark {
  311. font-size: 12px;
  312. font-weight: normal;
  313. color: #999;
  314. margin: 20rpx 0 20rpx 30rpx;
  315. }
  316. }
  317. .info-tag {
  318. width: 160rpx;
  319. padding: 10rpx;
  320. text-align: center;
  321. border: 1px solid #5992bb;
  322. color: #5992bb;
  323. margin-bottom: 10rpx;
  324. }
  325. .info-item {
  326. display: flex;
  327. justify-content: space-between;
  328. .info-text {
  329. font-size: 30rpx;
  330. line-height: 58rpx;
  331. color: #212020;
  332. font-weight: 600;
  333. .distance {
  334. font-size: 26rpx;
  335. color: #555252;
  336. font-weight: normal;
  337. }
  338. }
  339. .info-icon {
  340. display: flex;
  341. }
  342. .info-map {
  343. padding: 10rpx;
  344. font-size: 28rpx;
  345. margin-top: 120rpx;
  346. }
  347. }
  348. }
  349. // 分类
  350. .sort {
  351. background-color: #fff;
  352. .list {
  353. height: 250rpx;
  354. background-color: #fff;
  355. padding: 0 20rpx;
  356. margin-bottom: 20rpx;
  357. display: flex;
  358. Image {
  359. width: 180px;
  360. height: calc(100% - 20rpx);
  361. margin: 10rpx 20rpx 10rpx 0;
  362. }
  363. .item-text {
  364. font-weight: bold;
  365. margin: 10rpx 0 10rpx;
  366. color: #333;
  367. }
  368. .item-flex {
  369. display: flex;
  370. justify-content: space-between;
  371. font-size: 28rpx;
  372. margin: 0 20rpx 10rpx 0;
  373. color: #0d0d0d66;
  374. .star {
  375. display: flex;
  376. .line {
  377. margin-left: 16rpx;
  378. margin-top: 5rpx;
  379. font-size: 22rpx;
  380. }
  381. .points {
  382. color: #ff4b04;
  383. font-size: 22rpx;
  384. margin-top: 6rpx;
  385. margin-left: 10rpx;
  386. }
  387. }
  388. }
  389. .list-item {
  390. display: flex;
  391. justify-content: space-between;
  392. .price {
  393. font-size: 32rpx;
  394. font-weight: bold;
  395. color: #fa3534;
  396. .price-item {
  397. font-size: 24rpx;
  398. margin-left: 10rpx;
  399. }
  400. .price-count {
  401. font-size: 44rpx;
  402. }
  403. }
  404. .gate-rate {
  405. color: #c9c9c9;
  406. font-size: 26rpx;
  407. margin: 16rpx 0 0 40rpx;
  408. .gate-rate-item {
  409. text-decoration: line-through;
  410. }
  411. }
  412. .appoint {
  413. width: 80px;
  414. height: 32px;
  415. display: flex;
  416. margin-top: 20px;
  417. font-size: 14px;
  418. .appoint-item {
  419. width: 40px;
  420. height: 32px;
  421. line-height: 32px;
  422. text-align: center;
  423. display: inline-block;
  424. box-sizing: border-box;
  425. border-radius: 16px 0 0 16px;
  426. border: 1px solid #ec5729;
  427. }
  428. .Buy {
  429. width: 40px;
  430. height: 32px;
  431. color: #fff;
  432. line-height: 32px;
  433. text-align: center;
  434. display: inline-block;
  435. border-radius: 0 16px 16px 0;
  436. background-color: #ec5729;
  437. }
  438. }
  439. }
  440. }
  441. }
  442. </style>