index.vue 8.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347
  1. <template>
  2. <div class="page">
  3. <div class="page-top"></div>
  4. <div class="page-content">
  5. <!-- 搜索区域 -->
  6. <div class="search flex justify-center">
  7. <input type="text" placeholder="搜索店铺" />
  8. </div>
  9. <!-- 地区筛选 -->
  10. <div class="city"></div>
  11. <!-- 标题 -->
  12. <div class="title">距你最近...</div>
  13. <!-- 机构列表 -->
  14. <div class="list">
  15. <div class="section flex items-center">
  16. <img src="https://picsum.photos/200/200" class="cover" />
  17. <div class="info">
  18. <div class="name">美丽肌肤体验店</div>
  19. <div class="line"></div>
  20. <div class="mobile">0755-25777189</div>
  21. <div class="address">深圳市宝钢区一时路街188号好吃不上火...</div>
  22. <div class="distance">9999km</div>
  23. </div>
  24. </div>
  25. <div class="section flex items-center">
  26. <img src="https://picsum.photos/200/200" class="cover" />
  27. <div class="info">
  28. <div class="name">美丽肌肤体验店</div>
  29. <div class="line"></div>
  30. <div class="mobile">0755-25777189</div>
  31. <div class="address">深圳市宝钢区一时路街188号好吃不上火...</div>
  32. <div class="distance">9999km</div>
  33. </div>
  34. </div>
  35. </div>
  36. </div>
  37. </div>
  38. </template>
  39. <script>
  40. export default {
  41. layout: 'app-ldm',
  42. }
  43. </script>
  44. <style scoped lang="scss">
  45. @media screen and (min-width: 768px) {
  46. .page-top {
  47. height: 596px;
  48. background: url(https://static.caimei365.com/www/authentic/pc/ldm-bg-club.png)
  49. no-repeat center;
  50. background-size: auto 596px;
  51. }
  52. .page-content {
  53. width: 836px;
  54. margin: 0 auto;
  55. overflow: hidden;
  56. .search {
  57. width: 836px;
  58. position: relative;
  59. margin: 69px auto 40px;
  60. input {
  61. display: block;
  62. width: 100%;
  63. height: 56px;
  64. border: 0.1vw solid #000000;
  65. box-sizing: border-box;
  66. padding-left: 80px;
  67. font-size: 24px;
  68. }
  69. &::after {
  70. position: absolute;
  71. left: 33px;
  72. top: 50%;
  73. transform: translateY(-50%);
  74. content: '';
  75. display: block;
  76. width: 37px;
  77. height: 37px;
  78. background: url(https://static.caimei365.com/www/authentic/pc/ldm-icon-search.png)
  79. no-repeat center;
  80. background-size: 37px;
  81. }
  82. }
  83. .title {
  84. text-align: right;
  85. font-size: 22px;
  86. color: #000;
  87. }
  88. .list {
  89. padding-top: 24px;
  90. display: flex;
  91. align-items: center;
  92. justify-content: space-between;
  93. flex-wrap: wrap;
  94. .section {
  95. width: 409px;
  96. background: #f1f1f1;
  97. border-radius: 20px;
  98. padding: 16px;
  99. box-sizing: border-box;
  100. margin-bottom: 20px;
  101. .cover {
  102. width: 92px;
  103. height: 92px;
  104. border-radius: 17px;
  105. }
  106. .info {
  107. position: relative;
  108. width: 263px;
  109. margin-left: 23px;
  110. .name {
  111. width: 200px;
  112. position: relative;
  113. font-size: 15px;
  114. color: #000;
  115. font-weight: bold;
  116. text-overflow: ellipsis;
  117. white-space: nowrap;
  118. overflow: hidden;
  119. padding-left: 20px;
  120. line-height: 20px;
  121. &::after {
  122. content: '';
  123. display: block;
  124. width: 20px;
  125. height: 20px;
  126. position: absolute;
  127. left: 0;
  128. top: 50%;
  129. transform: translateY(-50%);
  130. background-size: 14px 14px;
  131. background-repeat: no-repeat;
  132. background-position: left center;
  133. }
  134. }
  135. .name {
  136. &::after {
  137. background-image: url(https://static.caimei365.com/www/authentic/pc/ldm-icon-store.png);
  138. }
  139. }
  140. .line {
  141. height: 1px;
  142. margin: 14px 0;
  143. background: rgba(0, 0, 0, 0.3);
  144. }
  145. .mobile,
  146. .address {
  147. position: relative;
  148. font-size: 12px;
  149. color: #000000;
  150. padding-left: 20px;
  151. line-height: 20px;
  152. text-overflow: ellipsis;
  153. white-space: nowrap;
  154. overflow: hidden;
  155. &::after {
  156. content: '';
  157. display: block;
  158. width: 20px;
  159. height: 20px;
  160. position: absolute;
  161. left: 0;
  162. top: 50%;
  163. transform: translateY(-50%);
  164. background-size: 14px 14px;
  165. background-repeat: no-repeat;
  166. background-position: left center;
  167. }
  168. }
  169. .mobile {
  170. &::after {
  171. background-image: url(https://static.caimei365.com/www/authentic/pc/ldm-icon-contact.png);
  172. }
  173. }
  174. .address {
  175. &::after {
  176. background-image: url(https://static.caimei365.com/www/authentic/pc/ldm-icon-address.png);
  177. }
  178. }
  179. .distance {
  180. position: absolute;
  181. font-size: 12px;
  182. color: #404040;
  183. top: 0.2vw;
  184. right: 0;
  185. }
  186. }
  187. }
  188. }
  189. }
  190. }
  191. @media screen and (max-width: 768px) {
  192. .page-top {
  193. height: 59.6vw;
  194. background: url(https://static.caimei365.com/www/authentic/h5/ldm-bg-club.png);
  195. background-size: auto 59.6vw;
  196. }
  197. .page-content {
  198. overflow: hidden;
  199. .search {
  200. width: 86vw;
  201. position: relative;
  202. margin: 7.6vw auto 5.6vw;
  203. input {
  204. display: block;
  205. width: 100%;
  206. height: 8vw;
  207. border: 0.1vw solid #000000;
  208. box-sizing: border-box;
  209. padding-left: 10.5vw;
  210. }
  211. &::after {
  212. position: absolute;
  213. left: 2.9vw;
  214. top: 50%;
  215. transform: translateY(-50%);
  216. content: '';
  217. display: block;
  218. width: 5.4vw;
  219. height: 5.4vw;
  220. background: url(https://static.caimei365.com/www/authentic/h5/ldm-icon-search.png)
  221. no-repeat center;
  222. background-size: 5.4vw;
  223. }
  224. }
  225. .title {
  226. text-align: right;
  227. padding-right: 6.6vw;
  228. font-size: 3.5vw;
  229. color: #000;
  230. }
  231. .list {
  232. display: flex;
  233. flex-direction: column;
  234. align-items: center;
  235. .section {
  236. width: 95.1vw;
  237. background: #f1f1f1;
  238. border-radius: 2vw;
  239. padding: 3.2vw;
  240. box-sizing: border-box;
  241. margin: 5.7vw 0;
  242. .cover {
  243. width: 21.5vw;
  244. height: 21.5vw;
  245. border-radius: 1.7vw;
  246. }
  247. .info {
  248. position: relative;
  249. width: 61.3vw;
  250. margin-left: 5.8vw;
  251. .name {
  252. width: 46vw;
  253. position: relative;
  254. font-size: 3.5vw;
  255. color: #000;
  256. font-weight: bold;
  257. text-overflow: ellipsis;
  258. white-space: nowrap;
  259. overflow: hidden;
  260. padding-left: 5vw;
  261. line-height: 5vw;
  262. &::after {
  263. content: '';
  264. display: block;
  265. width: 4vw;
  266. height: 4vw;
  267. position: absolute;
  268. left: 0;
  269. top: 50%;
  270. transform: translateY(-50%);
  271. background-size: 3.6vw 3.6vw;
  272. background-repeat: no-repeat;
  273. }
  274. }
  275. .name {
  276. &::after {
  277. background-image: url(https://static.caimei365.com/www/authentic/h5/ldm-icon-store.png);
  278. }
  279. }
  280. .line {
  281. height: 0.1vw;
  282. margin: 2.8vw 0;
  283. background: rgba(0, 0, 0, 0.3);
  284. }
  285. .mobile,
  286. .address {
  287. position: relative;
  288. font-size: 3vw;
  289. color: #000000;
  290. padding-left: 5vw;
  291. line-height: 5vw;
  292. text-overflow: ellipsis;
  293. white-space: nowrap;
  294. overflow: hidden;
  295. &::after {
  296. content: '';
  297. display: block;
  298. width: 4vw;
  299. height: 4vw;
  300. position: absolute;
  301. left: 0;
  302. top: 50%;
  303. transform: translateY(-50%);
  304. background-size: 3.6vw 3.6vw;
  305. background-repeat: no-repeat;
  306. }
  307. }
  308. .mobile {
  309. &::after {
  310. background-image: url(https://static.caimei365.com/www/authentic/h5/ldm-icon-contact.png);
  311. }
  312. }
  313. .address {
  314. &::after {
  315. background-image: url(https://static.caimei365.com/www/authentic/h5/ldm-icon-address.png);
  316. }
  317. }
  318. .distance {
  319. position: absolute;
  320. font-size: 3vw;
  321. color: #404040;
  322. top: 0.2vw;
  323. right: 0;
  324. }
  325. }
  326. }
  327. }
  328. }
  329. }
  330. </style>