|
|
|
@ -25,6 +25,12 @@ |
|
|
|
|
<input type="digit" name="name" v-model.trim="productData.price" placeholder-class="corf6 font15" |
|
|
|
|
class=" flex-1 " placeholder="请输入团购价格(保留两位小数)"> |
|
|
|
|
</view> |
|
|
|
|
<view class="dis-flex marb10 bor-botm1"> |
|
|
|
|
<view class="group-title marRight10 fontwig6 padleft15 paddtright10 flex-s0">团购原价: |
|
|
|
|
</view> |
|
|
|
|
<input type="digit" name="name" v-model.trim="productData.originalPrice" placeholder-class="corf6 font15" |
|
|
|
|
class=" flex-1 " placeholder="请输入团购价格(保留两位小数)"> |
|
|
|
|
</view> |
|
|
|
|
<view class="dis-flex marb10 bor-botm1"> |
|
|
|
|
<view class="group-title marRight10 fontwig6 padleft15 paddtright10 flex-s0">使用时间: |
|
|
|
|
</view> |
|
|
|
@ -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(","); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|