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; }