Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
B
bh_face_counter
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
黄天晨
bh_face_counter
Commits
50ad59e0
Commit
50ad59e0
authored
Jan 26, 2021
by
chenxu
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
小票功能
parent
7a454a1c
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
2 deletions
+2
-2
Printer.js
src/utils/Printer.js
+1
-1
config.js
src/utils/config.js
+1
-1
No files found.
src/utils/Printer.js
View file @
50ad59e0
...
...
@@ -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
);
...
...
src/utils/config.js
View file @
50ad59e0
...
...
@@ -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/'
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment