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
297f4bf5
Commit
297f4bf5
authored
Feb 26, 2020
by
jiangjiantao
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
优惠券bugfix
parent
e3d9e953
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
1 deletion
+5
-1
scan.js
pages/scan/scan.js
+1
-1
scan.js
utils/scan.js
+4
-0
No files found.
pages/scan/scan.js
View file @
297f4bf5
...
...
@@ -70,7 +70,7 @@ Page({
my
.
reLaunch
({
url
:
"/pages/home/home"
,
});
}
else
if
(
res
.
action
==
ACTION_
CONVERT
_COUPON
)
{
}
else
if
(
res
.
action
==
ACTION_
USE
_COUPON
)
{
//优惠券
context
.
setData
({
scanDialogDisplay
:
res
.
data
.
discCouponState
,
...
...
utils/scan.js
View file @
297f4bf5
...
...
@@ -15,6 +15,10 @@ export default class scan {
isScaning
=
true
code
=
(
r
.
keyCode
-
7
)
+
''
setTimeout
(()
=>
{
//兼容扫描枪
if
(
code
.
endsWith
(
"5913"
)){
code
=
code
.
substring
(
0
,
code
.
length
-
4
)
}
cur
.
onKeyPress
.
call
(
cur
,
code
);
isScaning
=
false
},
700
);
...
...
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