Commit 9211a3a6 authored by jiangjiantao's avatar jiangjiantao

直接收款不打印

parent 194b3a14
...@@ -140,6 +140,16 @@ Page({ ...@@ -140,6 +140,16 @@ Page({
}); });
} }
//数据是空代表是直接收款 不打印
if(null == this.data.goodsList || this.data.goodsList.length == 0){
printEnabledLocal = false
this.setData({
isShowPrinting: false,
printerStatus: "支付成功,期待下次光临!"
});
}
//开启后屏监听 //开启后屏监听
my.ix.onBuddyMessage({ my.ix.onBuddyMessage({
success: (res) => { success: (res) => {
...@@ -165,5 +175,12 @@ Page({ ...@@ -165,5 +175,12 @@ Page({
onHide() { onHide() {
//关闭后屏监听 //关闭后屏监听
my.ix.offBuddyMessage(); my.ix.offBuddyMessage();
//清理支付数据
my.removeStorage({
key: 'paySuccessGoodsList',
success: function () {
}
});
} }
}); });
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