From 1899ebf226cdef424280671af0aae3a186adadfe Mon Sep 17 00:00:00 2001 From: Agent Date: Wed, 1 Apr 2026 16:14:42 +0000 Subject: [PATCH] =?UTF-8?q?fix:=20=E7=82=B9=E5=87=BB=E5=95=86=E5=93=81?= =?UTF-8?q?=E7=9B=B4=E6=8E=A5=E9=80=89=E4=B8=AD=EF=BC=8C=E6=98=BE=E7=A4=BA?= =?UTF-8?q?=E9=95=BF=E5=AE=BD=E9=9D=A2=E7=A7=AF=E4=B8=8E=E9=A2=9C=E8=89=B2?= =?UTF-8?q?=E5=90=8C=E4=B8=80=E8=A1=8C?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/pages/product/select.vue | 28 ++++++++++++++++++++++++++-- 1 file changed, 26 insertions(+), 2 deletions(-) diff --git a/src/pages/product/select.vue b/src/pages/product/select.vue index 13251aa..ed84290 100644 --- a/src/pages/product/select.vue +++ b/src/pages/product/select.vue @@ -27,10 +27,13 @@ - + {{ item.name }} - {{ item.spec || '-' }} + + {{ item.spec || '-' }} + {{ item.length }} x {{ item.width }} = {{ item.area }} m² + ¥{{ item.price }} @@ -116,6 +119,12 @@ export default { this.getProducts() }, methods: { + selectProduct(item) { + const pages = getCurrentPages() + const prevPage = pages[pages.length - 2] + prevPage.$vm.addProduct(item) + uni.navigateBack() + }, calcArea() { const length = parseFloat(this.selectedProduct.length) || 0 const width = parseFloat(this.selectedProduct.width) || 0 @@ -278,6 +287,21 @@ export default { color: #999; } +.product-row { + display: flex; + align-items: center; + flex-wrap: wrap; + gap: 8rpx; +} + +.product-size { + font-size: 22rpx; + color: #667eea; + background: #f0f0ff; + padding: 2rpx 8rpx; + border-radius: 4rpx; +} + .product-price { text-align: right; }