From 5d3c0e08ed0b4a3a430e898fe4dae4f67f7a7ca9 Mon Sep 17 00:00:00 2001 From: wangfukang <15630117759@163.com> Date: Thu, 20 Aug 2026 18:34:19 +0800 Subject: [PATCH] 1 --- package2/myCenter/addGoods.vue | 27 ++++++++++++++------------- 1 file changed, 14 insertions(+), 13 deletions(-) diff --git a/package2/myCenter/addGoods.vue b/package2/myCenter/addGoods.vue index 77257e2..703ee46 100644 --- a/package2/myCenter/addGoods.vue +++ b/package2/myCenter/addGoods.vue @@ -56,7 +56,9 @@ - 删除 + + + 新增拼团 @@ -436,7 +438,6 @@ submit() { let that = this; this.syncLunchBoxByMoreBuy() - this.normalizeGroupBuyPrices() if (!this.validateProductSpecs()) { return } @@ -532,17 +533,6 @@ } return true }, - normalizeGroupBuyPrices() { - if (!Array.isArray(this.formData.productGroupBuyPrices)) { - this.formData.productGroupBuyPrices = [] - return - } - this.formData.productGroupBuyPrices = this.formData.productGroupBuyPrices.filter((item) => { - const groupCount = item && item.groupCount !== undefined && item.groupCount !== null ? String(item.groupCount).trim() : '' - const groupPrice = item && item.groupPrice !== undefined && item.groupPrice !== null ? String(item.groupPrice).trim() : '' - return groupCount !== '' || groupPrice !== '' - }) - }, isValidPrice(value) { return /^\d+(\.\d{1,2})?$/.test(value) && Number(value) > 0 }, @@ -1032,6 +1022,17 @@ box-sizing: border-box; min-width: 0; } + .group-delete-btn { + flex: 0 0 70rpx; + width: 70rpx; + height: 70rpx; + margin-left: 20rpx; + display: flex; + align-items: center; + justify-content: center; + background: #fff; + border-radius: 10rpx; + } .keyboard-safe-bottom { height: 260rpx; }