diff --git a/pages/discount/discount.vue b/pages/discount/discount.vue index 088693d..0c81f58 100644 --- a/pages/discount/discount.vue +++ b/pages/discount/discount.vue @@ -22,11 +22,13 @@ {{ item.name }} {{ item.category }} - {{ item.address }} - - - - {{ item.distance < 1 ? Math.round(item.distance * 1000) + 'm' : Math.round(item.distance) + 'km' }} + + {{ item.address }} + + + {{ item.distance < 1 ? Math.round(item.distance * 1000) + 'm' : Math.round(item.distance) + 'km' }} + + @@ -178,7 +180,6 @@ export default { } .list-area { - padding: 12px; } .venue-card { @@ -187,11 +188,10 @@ export default { background-color: #ffffff; border: 1px solid #f2f2f7; border-radius: 6px; - width: 702rpx; - padding: 24px 12px; + padding: 12px; gap: 12px; box-shadow: 0 2px 3px #f2f2f7; - margin-bottom: 12px; + margin: 12px; } .card-img { @@ -206,12 +206,18 @@ export default { display: flex; flex-direction: column; gap: 0; + width: 100%; + min-width: 0; } .card-name { font-size: 16px; font-weight: 500; color: #000000; + width: 100%; + overflow: hidden; + text-overflow: ellipsis; + white-space: nowrap; } .card-category { @@ -220,14 +226,22 @@ export default { margin-top: 8px; } +.card-bottom { + display: flex; + align-items: center; + justify-content: flex-end; + margin-top: 8px; + gap: 8px; +} + .card-address { + flex: 1; font-size: 14px; color: #727272; - margin-top: 8px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; - max-width: 200px; + min-width: 0; } .card-distance { diff --git a/pages/index/index.vue b/pages/index/index.vue index 67de28b..6c5b779 100644 --- a/pages/index/index.vue +++ b/pages/index/index.vue @@ -102,11 +102,17 @@ .page { height: 100vh; background-color: #f5f5f5; - overflow: hidden; + overflow-y: auto; display: flex; flex-direction: column; } + .banner { + width: 100%; + max-height: 300px; + overflow: hidden; + } + .banner-img { width: 100%; display: block; diff --git a/pages/venue/venue.vue b/pages/venue/venue.vue index 81d101f..5b55375 100644 --- a/pages/venue/venue.vue +++ b/pages/venue/venue.vue @@ -22,11 +22,13 @@ {{ item.name }} {{ item.category }} - {{ item.address }} - - - - {{ item.distance < 1 ? Math.round(item.distance * 1000) + 'm' : Math.round(item.distance) + 'km' }} + + {{ item.address }} + + + {{ item.distance < 1 ? Math.round(item.distance * 1000) + 'm' : Math.round(item.distance) + 'km' }} + + @@ -178,7 +180,6 @@ export default { } .list-area { - padding: 12px; } .venue-card { @@ -187,11 +188,10 @@ export default { background-color: #ffffff; border: 1px solid #f2f2f7; border-radius: 6px; - width: 702rpx; - padding: 24px 12px; + padding: 12px; gap: 12px; box-shadow: 0 2px 3px #f2f2f7; - margin-bottom: 12px; + margin: 12px; } .card-img { @@ -206,12 +206,18 @@ export default { display: flex; flex-direction: column; gap: 0; + width: 100%; + min-width: 0; } .card-name { font-size: 16px; font-weight: 500; color: #000000; + width: 100%; + overflow: hidden; + text-overflow: ellipsis; + white-space: nowrap; } .card-category { @@ -220,14 +226,22 @@ export default { margin-top: 8px; } +.card-bottom { + display: flex; + align-items: center; + justify-content: flex-end; + margin-top: 8px; + gap: 8px; +} + .card-address { + flex: 1; font-size: 14px; color: #727272; - margin-top: 8px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; - max-width: 200px; + min-width: 0; } .card-distance {