Commit 10c9710e authored by jiangjiantao's avatar jiangjiantao

bugfix

parent 7df4cb78
......@@ -263,7 +263,7 @@ Page({
isPrinting: false
});
} else {
//打印小票
//打印小票
context.setData({
printResult: "正在打印小票...",
payResultPrintSuccessHint: "提示顾客拿好小票",
......@@ -280,8 +280,9 @@ Page({
context.goPage('payresult');
} else if (res.action == ACTION_DIRECT_PAYMENT) {
//直接收款
context.clearGood();
if (res.data != null) {
context.setData({ waitOperateAmount: res.data })
context.setData({ waitOperateAmount: res.data ,goods: [],discCouponPrice:0})
}
context.goPage('waitoperate');
} else if (res.action == ACTION_CONVERT_COUPON) {
......@@ -848,6 +849,8 @@ Page({
this.setData({ scene: 2 })
},
//清空商品信息
clearGood(e) {
this.setData({ goods: [],discCouponPrice:0 })
......
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