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(",");