Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in
Toggle navigation
D
doublescreen-front
Project
Project
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
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
pengguangpu
doublescreen-front
Commits
2488a09a
Commit
2488a09a
authored
Mar 02, 2020
by
jiangjiantao
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
bugfixed
parent
b32a1077
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
14 additions
and
9 deletions
+14
-9
paysuccess.js
pages/paysuccess/paysuccess.js
+14
-9
No files found.
pages/paysuccess/paysuccess.js
View file @
2488a09a
...
...
@@ -69,16 +69,21 @@ Page({
printer
.
printText
(
"收银员账号:"
+
this
.
data
.
paySuccessResponse
.
operatorId
),
printer
.
printText
(
"订单号:"
+
this
.
data
.
paySuccessResponse
.
tradeNo
),
printer
.
printNowDate
(),
printer
.
printDivide
(
"-"
),
printer
.
printText
(
"活动商品"
),
printer
.
printText
(
"商品名称 "
+
" 编码 "
+
" 数量"
),
];
for
(
var
i
=
0
;
i
<
this
.
data
.
goodsList
.
length
;
i
++
)
{
//循环取出商品数据
cmds
.
push
(
printer
.
setAlign
(
printer
.
ALIGN_LEFT
));
cmds
.
push
(
printer
.
printText
(
this
.
data
.
goodsList
[
i
].
name
));
cmds
.
push
(
printer
.
printTwoText
(
this
.
data
.
goodsList
[
i
].
barcode
,
this
.
data
.
goodsList
[
i
].
quantity
+
""
));
}
if
(
null
!=
this
.
data
.
goodsList
&&
this
.
data
.
goodsList
.
length
>
0
){
cmds
.
push
(
printer
.
printDivide
(
"-"
))
,
cmds
.
push
(
printer
.
printText
(
"活动商品"
)),
cmds
.
push
(
printer
.
printText
(
"商品名称 "
+
" 编码 "
+
" 数量"
))
for
(
var
i
=
0
;
i
<
this
.
data
.
goodsList
.
length
;
i
++
)
{
//循环取出商品数据
cmds
.
push
(
printer
.
setAlign
(
printer
.
ALIGN_LEFT
));
cmds
.
push
(
printer
.
printText
(
this
.
data
.
goodsList
[
i
].
name
));
cmds
.
push
(
printer
.
printTwoText
(
this
.
data
.
goodsList
[
i
].
barcode
,
this
.
data
.
goodsList
[
i
].
quantity
+
""
));
}
}
cmds
.
push
(
printer
.
setAlign
(
printer
.
ALIGN_LEFT
));
cmds
.
push
(
printer
.
printDivide
(
"-"
));
cmds
.
push
(
printer
.
printText
(
"应收金额:"
+
this
.
data
.
orderPriceYuan
));
...
...
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