Commit b6352574 authored by leiqingsong's avatar leiqingsong

创建优惠券开始时间与结束时间

parent 9e9cc8e2
...@@ -97,13 +97,13 @@ ...@@ -97,13 +97,13 @@
<div class="award-coupon"> <div class="award-coupon">
<img class="bg_img" src="/img/coupon.png" alt="coupon" /> <img class="bg_img" src="/img/coupon.png" alt="coupon" />
<div class="other"> <div class="other">
<!-- <p>{{ awardGood.coupon.type }}</p> --> <p>{{ awardGood.coupon.type }}</p>
<p>代金券</p> <!-- <p>代金券</p> -->
<div class="split"> <div class="split">
<img src="../../../public/img/split.png" alt="split" /> <img src="../../../public/img/split.png" alt="split" />
</div> </div>
<!-- <p>{{ awardGood.coupon.unit }}元</p> --> <p>{{ awardGood.coupon.unit }}元</p>
<p>2000元</p> <!-- <p>2000元</p> -->
</div> </div>
</div> </div>
<p style="font-size: 20px;font-weight: bold;">OLAY全场通用抵扣券</p> <p style="font-size: 20px;font-weight: bold;">OLAY全场通用抵扣券</p>
...@@ -384,6 +384,9 @@ export default { ...@@ -384,6 +384,9 @@ export default {
setOffStep(len) { setOffStep(len) {
let offset = 0; let offset = 0;
switch (len) { switch (len) {
case 2:
offset = 0.5;
break;
case 4: case 4:
offset = 0.75; offset = 0.75;
break; break;
......
...@@ -351,11 +351,10 @@ export default { ...@@ -351,11 +351,10 @@ export default {
this.$toast("请输入结束时间"); this.$toast("请输入结束时间");
return false; return false;
} }
// if (!this.addForm.couponIds) { if(new Date(this.beginDate) >= new Date(this.endDate)) {
// this.$toast("请输入优惠券ID"); this.$toast("开始时间不能大于等于结束时间!");
// return false; return false;
// } }
if (!this.addForm.limitOfUse) { if (!this.addForm.limitOfUse) {
this.$toast("请输入总限制次数"); this.$toast("请输入总限制次数");
return false; return false;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment