Commit 860b12b6 authored by jiangjiantao's avatar jiangjiantao

bugfixed

parent b77a8902
...@@ -850,7 +850,7 @@ Page({ ...@@ -850,7 +850,7 @@ Page({
//清空商品信息 //清空商品信息
clearGood(e) { clearGood(e) {
this.setData({ goods: [] }) this.setData({ goods: [],discCouponPrice:0 })
this.calculation([]); this.calculation([]);
}, },
...@@ -1122,6 +1122,12 @@ Page({ ...@@ -1122,6 +1122,12 @@ Page({
}, },
//使用券 //使用券
useCoupon(e) { useCoupon(e) {
if(this.data.goods.length == 0){
this.showToast("请先录入商品")
return
}
this.setData({ discCouponState: 1 }) this.setData({ discCouponState: 1 })
var request = {}; var request = {};
request.discCouponState = 1; request.discCouponState = 1;
......
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