From 698a728b86313c1e2d6495c69a0bb3144b38ac84 Mon Sep 17 00:00:00 2001
From: youmengting <2080639302@qq.com>
Date: Tue, 31 Oct 2023 10:22:25 +0800
Subject: [PATCH] =?UTF-8?q?=E5=9B=A2=E8=B4=AD=E4=BA=A7=E5=93=81=E9=85=8D?=
=?UTF-8?q?=E7=BD=AE=E5=9F=BA=E6=9C=AC=E4=BF=A1=E6=81=AF=EF=BC=8C=E6=B7=BB?=
=?UTF-8?q?=E5=8A=A0=E5=8E=9F=E4=BB=B7?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
.../groupProduct/groupProduct.vue | 4 ++++
.../groupProduct/groupProductAdd.vue | 19 ++++++++++++++++++-
2 files changed, 22 insertions(+), 1 deletion(-)
diff --git a/subpackages/groupBuyingConfiguration/groupProduct/groupProduct.vue b/subpackages/groupBuyingConfiguration/groupProduct/groupProduct.vue
index c752ba8..076e1af 100644
--- a/subpackages/groupBuyingConfiguration/groupProduct/groupProduct.vue
+++ b/subpackages/groupBuyingConfiguration/groupProduct/groupProduct.vue
@@ -42,6 +42,10 @@
价格
{{productDetail.price}}
+
+ 原价
+ {{productDetail.originalPrice}}
+
限制
{{productDetail.astrict}}
diff --git a/subpackages/groupBuyingConfiguration/groupProduct/groupProductAdd.vue b/subpackages/groupBuyingConfiguration/groupProduct/groupProductAdd.vue
index cd06e08..dfd6598 100644
--- a/subpackages/groupBuyingConfiguration/groupProduct/groupProductAdd.vue
+++ b/subpackages/groupBuyingConfiguration/groupProduct/groupProductAdd.vue
@@ -25,6 +25,12 @@
+
+ 团购原价:
+
+
+
使用时间:
@@ -180,6 +186,7 @@
productData: { //基本信息
name: '', //名称
price: '', //价格
+ originalPrice:'',//原价
astrict: '', //限制
storeId: '', //门店id
img: '', //图片
@@ -258,9 +265,18 @@
this.productData.price = "";
return false
}
+ if (!reg.test(this.productData.originalPrice) || this.productData.originalPrice == 0) {
+ uni.showToast({
+ title: "请输入正确的金额格式",
+ icon: "none"
+ })
+ this.productData.originalPrice = "";
+ return false
+ }
+
- if (!this.productData.name || !this.productData.price || !this.productData.astrict || !this.productData
+ if (!this.productData.name || !this.productData.price || !this.productData.originalPrice || !this.productData.astrict || !this.productData
.serviceTime || !this.productData.validity) {
uni.showToast({
title: "请填写完整哦!",
@@ -323,6 +339,7 @@
this.productData.img = res.return_data.img;
this.productData.serviceTime = res.return_data.serviceTime;
this.productData.validity = res.return_data.validity;
+ this.productData.originalPrice = res.return_data.originalPrice;
this.imgValue = this.productData.img.split(",");