Commit be95517e authored by pengguangpu's avatar pengguangpu

Merge branch 'dev-1.0' of…

Merge branch 'dev-1.0' of https://gitlab.infra.miyatech.com/pengguangpu/doublescreen-front into dev-1.0
parents f6cab93b 86a0775d
...@@ -31,10 +31,12 @@ Page({ ...@@ -31,10 +31,12 @@ Page({
data: null data: null
}, },
success: (res) => { success: (res) => {
e.preventDefault(); console.log(`sendBuddyMessage success: ${JSON.stringify(res)}`);
// e.preventDefault();
my.navigateBack();
}, },
fail: (res) => { fail: (res) => {
console.info(`sendBuddyMessage failed: ${JSON.stringify(res)}`); console.log(`sendBuddyMessage failed: ${JSON.stringify(res)}`);
} }
}); });
} }
...@@ -48,6 +50,7 @@ Page({ ...@@ -48,6 +50,7 @@ Page({
}, },
onLoad(options) { onLoad(options) {
console.log("balance onLoad==>" + JSON.stringify(options)); console.log("balance onLoad==>" + JSON.stringify(options));
var totalQuantity = options.totalQuantity var totalQuantity = options.totalQuantity
var totalPrice = options.totalPrice var totalPrice = options.totalPrice
...@@ -108,10 +111,6 @@ Page({ ...@@ -108,10 +111,6 @@ Page({
} }
}); });
},
onShow() {
console.log("balance onShow");
my.ix.onBuddyMessage({ my.ix.onBuddyMessage({
success: (res) => { success: (res) => {
console.info(`onBuddyMessage success: ${JSON.stringify(res)}`); console.info(`onBuddyMessage success: ${JSON.stringify(res)}`);
...@@ -129,6 +128,12 @@ Page({ ...@@ -129,6 +128,12 @@ Page({
} }
} }
}); });
},
onShow() {
console.log("balance onShow");
//这个界面接受事件是在onLoad,去除监听是在onUnload
}, },
onHide() { onHide() {
......
...@@ -365,7 +365,7 @@ Page({ ...@@ -365,7 +365,7 @@ Page({
printer.printNowDate(), printer.printNowDate(),
]; ];
if (null != printLastOrder_goodsList && printLastOrder_goodsList.length > 0) { if (null != printLastOrder_goodsList && printLastOrder_goodsList.length > 0) {
cmds.push(printer.printDivide("-")), cmds.push(printer.printDivide("-")),
cmds.push(printer.printText("活动商品")), cmds.push(printer.printText("活动商品")),
cmds.push(printer.printText("商品名称 " + " 编码 " + " 数量")) cmds.push(printer.printText("商品名称 " + " 编码 " + " 数量"))
for (var i = 0; i < printLastOrder_goodsList.length; i++) { for (var i = 0; i < printLastOrder_goodsList.length; i++) {
...@@ -375,7 +375,7 @@ Page({ ...@@ -375,7 +375,7 @@ Page({
cmds.push(printer.printTwoText(printLastOrder_goodsList[i].barcode, printLastOrder_goodsList[i].quantity + "")); cmds.push(printer.printTwoText(printLastOrder_goodsList[i].barcode, printLastOrder_goodsList[i].quantity + ""));
} }
} }
cmds.push(printer.setAlign(printer.ALIGN_LEFT)); cmds.push(printer.setAlign(printer.ALIGN_LEFT));
cmds.push(printer.printDivide("-")); cmds.push(printer.printDivide("-"));
cmds.push(printer.printText("应收金额:" + printLastOrder_orderPriceYuan)); cmds.push(printer.printText("应收金额:" + printLastOrder_orderPriceYuan));
......
...@@ -129,6 +129,7 @@ Page({ ...@@ -129,6 +129,7 @@ Page({
let req = {} let req = {}
req.discCouponMsg = "超额优惠券" req.discCouponMsg = "超额优惠券"
req.discCouponState = 4; req.discCouponState = 4;
req.discCouponPrice = this.data.totalDisc
this.useCouponCallback(ACTION_USE_COUPON, req) this.useCouponCallback(ACTION_USE_COUPON, req)
return return
} }
......
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