Commit 50ad59e0 by chenxu

小票功能

parent 7a454a1c
......@@ -176,7 +176,7 @@ if (_Printer) {
await Printer.setFont(0, 0, 0, 1, 0); // 设置加粗
await Printer.printTable('商品,数量,单价,金额', ',', 384, row);
await Printer.setPrinter(Command.PRINT_AND_WAKE_PAPER_BY_LINE, 1); // 换行
await Printer.printText(`电话:${params.phone}`); //门店
(await params.phone) && Printer.printText(`商家电话:${params.phone}`); //门店
await Printer.setPrinter(Command.PRINT_AND_WAKE_PAPER_BY_LINE, 0); // 换行
await Printer.setFont(0, 0, 0, 1, 0); // 默认字体
await Printer.setPrinter(Command.ALIGN, Command.ALIGN_CENTER);
......
......@@ -2,7 +2,7 @@ const app = ''; // eg: .25h/.eg
export const isProd = process.env.NODE_ENV === 'production';
export const host = isProd
? `https://api${app}.vs-u.com`
: 'http://192.168.88.88:7001';
: 'http://192.168.88.166:7001';
export const login = `https://m${app}.vs-u.com`;
export const qrHost = login;
export const imgUrl = 'http://barcod.oss-cn-shenzhen.aliyuncs.com/images/';
......
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