diff --git a/pages/ancient/ancient.vue b/pages/ancient/ancient.vue index 7947d4e..21da3eb 100644 --- a/pages/ancient/ancient.vue +++ b/pages/ancient/ancient.vue @@ -9,7 +9,7 @@ :refresher-triggered="refreshing" @refresherrefresh="onRefresh" > - + .page { - background: #F5F0E7; + background: #FAF8F3; } .scroll-container { @@ -155,24 +155,26 @@ export default { width: 100%; min-height: 100vh; display: flex; - align-items: flex-start; + align-items: center; flex-direction: column; - padding: 0 15rpx; padding-bottom: 40rpx; box-sizing: border-box; } .temple-list { - width: 100%; + margin-top: 20rpx; display: flex; flex-direction: column; - gap: 20rpx; - padding: 20rpx 0; + justify-content: center; + align-items: center; + gap: 30rpx; + } .temple-card { width: 100%; - margin-bottom: 20rpx; + //margin-bottom: 20rpx; + align-items: center; } .no-data { @@ -214,16 +216,4 @@ export default { object-fit: cover; // 保持图片比例 } } - -// 响应式设计 -@media (max-width: 768px) { - .temple-list { - gap: 15rpx; - padding: 15rpx 0; - } - - .temple-card { - margin-bottom: 15rpx; - } -} \ No newline at end of file diff --git a/pages/ancient/commponts/ancientItem.vue b/pages/ancient/commponts/ancientItem.vue index 7d7db55..808a075 100644 --- a/pages/ancient/commponts/ancientItem.vue +++ b/pages/ancient/commponts/ancientItem.vue @@ -54,110 +54,111 @@ export default { \ No newline at end of file