From e3e29f7f18a6661f90349a756648cfe03fe1b350 Mon Sep 17 00:00:00 2001 From: tangxinyue <524779910@qq.com> Date: Sat, 30 May 2026 11:18:21 +0800 Subject: [PATCH 1/2] =?UTF-8?q?=E4=BC=98=E5=8C=96=E8=B0=83=E6=95=B4pdd?= =?UTF-8?q?=E8=B4=AD=E7=89=A9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../pdd/components/list-card/list-card.vue | 28 ++++++++++++++++--- pages/shopping/pdd/list-index.vue | 24 +++++++++++++++- .../pdd/order-detail/order-detail.vue | 27 ++++++++++-------- 3 files changed, 62 insertions(+), 17 deletions(-) diff --git a/pages/shopping/pdd/components/list-card/list-card.vue b/pages/shopping/pdd/components/list-card/list-card.vue index ad5a6ca..f3b8734 100644 --- a/pages/shopping/pdd/components/list-card/list-card.vue +++ b/pages/shopping/pdd/components/list-card/list-card.vue @@ -224,8 +224,7 @@ const toDetail = (id) => { .product-box { padding: 0 24rpx; padding-bottom: 14rpx; - margin-bottom: 10rpx; - border-bottom: 1rpx solid #EFEFEF; + // border-bottom: 1rpx solid #EFEFEF; .product-img-box { width: 148rpx; @@ -328,6 +327,7 @@ const toDetail = (id) => { margin-bottom: 16rpx; padding: 0 16rpx; padding-bottom: 14rpx; + padding-top: 10rpx; &::after { content: ""; @@ -337,8 +337,20 @@ const toDetail = (id) => { right: 0; width: 100%; height: 1px; - transform: scaleY(0.3); - background-color: #D2D2D2; + transform: scaleY(0.5); + background-color: #EFEFEF; + } + + &::before { + content: ""; + position: absolute; + top: 0; + left: 0; + right: 0; + width: 100%; + height: 1px; + transform: scaleY(0.5); + background-color: #EFEFEF; } .avatar-group { @@ -474,13 +486,21 @@ const toDetail = (id) => { } .delivery-content { + display: flex; + align-items: center; font-size: 24rpx; + white-space: nowrap; .green-text { color: #2BB40C; } .gray-text { + flex: 1; + overflow: hidden; + white-space: nowrap; + text-overflow: ellipsis; + width: 100px; color: #595959; margin-left: 10rpx; } diff --git a/pages/shopping/pdd/list-index.vue b/pages/shopping/pdd/list-index.vue index 1634efb..aa23430 100644 --- a/pages/shopping/pdd/list-index.vue +++ b/pages/shopping/pdd/list-index.vue @@ -132,7 +132,29 @@ const buttonGroup = [ chooseImage(); }, 400); } - }, + }, { + name: "切换优惠券", + click: () => { + scrollIntoId.value = ''; + setTimeout(() => { + scrollIntoId.value = 'bottom-anchor'; + }, 50); + setTimeout(() => { + chooseImage(); + }, 400); + } + }, { + name: "显示618活动券", + click: () => { + scrollIntoId.value = ''; + setTimeout(() => { + scrollIntoId.value = 'bottom-anchor'; + }, 50); + setTimeout(() => { + chooseImage(); + }, 400); + } + } ] onLoad(() => { diff --git a/pages/shopping/pdd/order-detail/order-detail.vue b/pages/shopping/pdd/order-detail/order-detail.vue index 2aabe1c..5423e31 100644 --- a/pages/shopping/pdd/order-detail/order-detail.vue +++ b/pages/shopping/pdd/order-detail/order-detail.vue @@ -259,7 +259,7 @@